Skip to content

The efficiency of OPA #129

Feb 21, 2022 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @xwzbupt 👋

I don't think you'll necessarily need a large number of policies for fine grained access control.

OPA uses both policy and data to make policy decisions, and the common pattern is to try and push as much of the dynamic data (i.e. things that are likely to change over time) into data and not policy rules. Granted, there are situations where you'd actually want to have a large number of rules, but those are rare.

  1. Thanks to indexing and other performance optimizations, this is normally dealt with rather quickly.
  2. See the docs on performance optimization for some pointers.
  3. Sure! Although I'd recomend considering upfront what should be policy/rules and what should be treated as d…

Replies: 2 comments 1 reply

Comment options

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

You must be logged in to vote
1 reply
@anderseknert
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