Skip to content

conflicting rule for data path after POSTing a policy with a default value #230

Discussion options

You must be logged in to vote

Hi @valbisson! And thanks for reaching out 😃

The "Data API" should not be mistaken for serving only "static" JSON data such as that provided in a data.json file. In fact, the data API is what serves pretty much all decisions OPA makes! See the docs on the OPA document model to learn more about base documents vs. virtual documents, and how they both contribute to building the OPA data document.

With that said, I'm not sure I understand why you need to GET the policies and data from a running OPA instance? If your users provide their policies, data, and possibly tests as well.. why not just accept those files as they are, run opa check --strict, opa test, and so on, before packaging them in…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by valbisson
Comment options

You must be logged in to vote
2 replies
@anderseknert
Comment options

@valbisson
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants