Skip to content

Check whether the opal-client has latest policy #148

Answered by asafc
hongbo-miao asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @hongbo-miao, welcome back from vacaction :)

You can either use the update callbacks feature or the healthcheck policy feature to achieve this.
Go over this document which explains about both of these features.

In essence:

The healthcheck policy is special OPA policy that (if activated) is loaded into OPA as the system.opal rego package. This special policy can be used to make sure that OPA is ready to accept authorization queries, and than its state is not out of sync due to failed data updates.

The update callback feature will trigger a callback (HTTP call to a configurable url) after every successful data update or policy update. It allows you to track which updates completed succes…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@hongbo-miao
Comment options

@asafc
Comment options

@asafc
Comment options

Answer selected by hongbo-miao
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