Skip to content
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 rego changes #100

Merged
merged 11 commits into from
Mar 20, 2024
Merged

Opa rego changes #100

merged 11 commits into from
Mar 20, 2024

Conversation

qlonik
Copy link
Collaborator

@qlonik qlonik commented Mar 19, 2024

This PR refactors opa server and changes the policy for new input format.

Related to #55

@qlonik qlonik force-pushed the opa-rego-changes branch from 155492d to b17ac25 Compare March 19, 2024 23:16
qlonik and others added 9 commits March 19, 2024 19:24
It seems that while this is not a strict requirement, lots of OPA documentation
suggests to put bundles under `/bundles` path.
This will match the request URL that is done in OPA sdk within golang filter
implementation.
Turns out OPA does not like when there are few defaults for the same variable
across rego files in the package.
A lot of things that are commented out and not needed are removed.
This file exists on opa website under golang SDK tutorial.
@qlonik qlonik force-pushed the opa-rego-changes branch from b17ac25 to ca8d0a0 Compare March 19, 2024 23:57
qlonik added 2 commits March 19, 2024 20:03
Before we would only load one policy file.
This also allows us to replace data items for tests.
@qlonik qlonik force-pushed the opa-rego-changes branch from ca8d0a0 to 946ba79 Compare March 20, 2024 00:03
@qlonik qlonik merged commit d8f3c42 into main Mar 20, 2024
3 checks passed
@qlonik qlonik deleted the opa-rego-changes branch March 20, 2024 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant