-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
discovery: default decision not picked up #6697
Labels
Comments
Looks like when we update the manager with the discovered config we don't reset the default decision path on the server and hence the default ( |
ashutosh-narkar
added a commit
to ashutosh-narkar/opa
that referenced
this issue
Apr 24, 2024
This change attempts to keep the default decision path used by the server in sync with the one defined on the manager's config. Currently the server only updates the default decision path when it's initialized and when there is a commit on the store. The issue happens when the default decision path is updated via the discovered config. In this case, the manager's config is updated but there could be no store txn. Hence the updated value of default decision path is not taken into account by the server. Fixes: open-policy-agent#6697 Signed-off-by: Ashutosh Narkar <anarkar4387@gmail.com>
ashutosh-narkar
added a commit
that referenced
this issue
Apr 24, 2024
This change attempts to keep the default decision path used by the server in sync with the one defined on the manager's config. Currently the server only updates the default decision path when it's initialized and when there is a commit on the store. The issue happens when the default decision path is updated via the discovered config. In this case, the manager's config is updated but there could be no store txn. Hence the updated value of default decision path is not taken into account by the server. Fixes: #6697 Signed-off-by: Ashutosh Narkar <anarkar4387@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Our docs suggest that the discovery config can be used to provide a new default decision. Now, trying that, I've stumbled upon something confusing:
build a bundle, use python to serve it:
opa build -o disco.tar.gz disco
python -m http.server
Start OPA with a discovery config:
Now the logs look completely fine:
Also, when I query the
/v1/config
API, it seems to be picked up just fine:The surprise comes when querying this:
Am I just confused about something on this nice Monday, or is there something going on here? 💭
The text was updated successfully, but these errors were encountered: