Skip to content
Discussion options

You must be logged in to vote

The OPA Authorizer plugin uses Guava to provide the caching. So these parameters are IIRC pretty muhc just passed to that. So the Guava docs might give you the details. But if I should explain it:

  • For every action you take, Kafka will call the authorizer with some authorization request
  • The OPA Authorizer would take this request and
    • Check whether the decision for this request is in the cache
    • If it is in the cache, it will use this decision and return it to main Kafka code
    • If it is not in the cache, it will call OPA with the authorization request to get the decision
    • The result is stored in the cache and returned to main Kafka code

The cache has expiration ... so every result stays ther…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@jesussancheztellomm
Comment options

@jesussancheztellomm
Comment options

@scholzj
Comment options

@jesussancheztellomm
Comment options

Answer selected by jesussancheztellomm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants