-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow access to health endpoint as per defined roles #2632
Conversation
…Azure/data-api-builder into dev/sezalchug/healthConfigFiles
…lthCheckExecution
… dev/sezalchug/healthCheckExecution
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need more tests/assertion on the Rest Query/GraphQL query execution.
nit: please provide a better title to the PR that explains what this PR is doing. |
… dev/sezalchug/rolesHealthCheck
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/azp run |
Azure Pipelines successfully started running 6 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 6 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thanks for addressing all the concerns specially about the role headers!
/azp run |
Azure Pipelines successfully started running 6 pipeline(s). |
Why make this change?
Closes #2531
What is this change?
This PR involves creating another parameter in the runtime config which defines the allowed roles for the health endpoint.
src/Config/Converters/RuntimeHealthOptionsConvertorFactory.cs
which takes care of serialization and deserialization of runtime config custom way.Scenarios
How was this tested?
Sample Request(s)
Roles: ["authenticated"]


Mode: Development or Production
Roles: Not Configured

Mode: Development
Mode: Production

Roles: ["admin"]

Mode: Development or Production