-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
OPA server ready check doesn't account for discovery bundles #2015
Labels
Comments
patrick-east
added a commit
to patrick-east/opa
that referenced
this issue
Jan 28, 2020
The health check now supports a `?plugin` option which will make the response depend on whether or not all configured plugins are in an OK state. The `bundle` parameter will now use the bundle *and* discovery plugin statuses to determine if the bundles are ready. This corrects an issue where discovery bundles, and bundles defined by the discovery dynamic config, were not included with `/health?bundle=true` checks. The URL parameter parsing has also changed to allow for omitting the value for the `bundle` option. It will default to `true` so that `/health?bundle=true` can be shortened to `/health?bundle`. Fixes: open-policy-agent#2010 Fixes: open-policy-agent#2015 Signed-off-by: Patrick East <east.patrick@gmail.com>
patrick-east
added a commit
to patrick-east/opa
that referenced
this issue
Feb 7, 2020
The health check now supports a `?plugin` option which will make the response depend on whether or not all configured plugins are in an OK state. The `bundle` parameter will now use the bundle *and* discovery plugin statuses to determine if the bundles are ready. This corrects an issue where discovery bundles, and bundles defined by the discovery dynamic config, were not included with `/health?bundle=true` checks. The URL parameter parsing has also changed to allow for omitting the value for the `bundle` option. It will default to `true` so that `/health?bundle=true` can be shortened to `/health?bundle`. Fixes: open-policy-agent#2010 Fixes: open-policy-agent#2015 Signed-off-by: Patrick East <east.patrick@gmail.com>
tsandall
pushed a commit
that referenced
this issue
Feb 7, 2020
The health check now supports a `?plugin` option which will make the response depend on whether or not all configured plugins are in an OK state. The `bundle` parameter will now use the bundle *and* discovery plugin statuses to determine if the bundles are ready. This corrects an issue where discovery bundles, and bundles defined by the discovery dynamic config, were not included with `/health?bundle=true` checks. The URL parameter parsing has also changed to allow for omitting the value for the `bundle` option. It will default to `true` so that `/health?bundle=true` can be shortened to `/health?bundle`. Fixes: #2010 Fixes: #2015 Signed-off-by: Patrick East <east.patrick@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Behavior
If configuring a ready check for OPA using
/health?bundle=true
and a discovery service that requires a bundle to be downloaded, and then additional normal bundles, I expect that it wouldn't return true until after all the bundles are activated for the first time.Actual Behavior
The ready check including bundles
/health?bundle=true
doesn't account for discovery bundles, or bundles found after discovery.Steps to Reproduce the Problem
200 OK
responseThe text was updated successfully, but these errors were encountered: