-
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
docs: Add section on the OPA document model #2314
docs: Add section on the OPA document model #2314
Conversation
0f0c818
to
f47cbfd
Compare
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.
The content lgtm.
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
0950f1b
f47cbfd
to
0950f1b
Compare
f02a846
to
9f219f0
Compare
docs/content/philosophy.md
Outdated
in the language. | ||
|
||
Sometimes base documents need to be loaded into OPA synchronously with respect to policy |
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.
A sentence defining synchronous versus asynchrous would help. "Base documents are loaded at 2 different times: (i) when a piece of software asks for a decision (synchronous) and (ii) whenever the external state of the world changes and those changes need to be replicated into OPA (asynchronous).
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.
I'd be tempted to have 3 choices: synchronous -> input, asynchronous -> data, dynamic (http.send) -> local variables, possibly under data.
docs/content/philosophy.md
Outdated
during policy evaluation. Similarly, policies are also cached in-memory to ensure | ||
high-performance and and high-availability. For more information on loading external data | ||
into OPA, including tradeoffs, see the [External Data](../external-data) page. |
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.
Data loaded synchronously is also cached in-memory.
When we refreshed the docs last year we removed the page titled 'how OPA works' and in the process lost the description of the OPA document model that explains the base and virtual document concepts. Since then a bunch of people have referred back to those docs after getting started. This change re-introduces the model and provides an explanation of _why_ the model exists. This change also replaces the infographic with text containing the same content as that feels a bit more inline with the rest of the page. Fixes open-policy-agent#2284 Signed-off-by: Torin Sandall <torinsandall@gmail.com>
9f219f0
to
6bf8653
Compare
When we refreshed the docs last year we removed the page titled 'how
OPA works' and in the process lost the description of the OPA document
model that explains the base and virtual document concepts. Since then
a bunch of people have referred back to those docs after getting
started.
This change re-introduces the model and provides an explanation of
why the model exists.
Fixes #2284
Signed-off-by: Torin Sandall torinsandall@gmail.com