Replies: 1 comment 2 replies
-
Hi Paul, the policies updated in the REST api like this are not persisted to disk. You might want to look into using the bundle service API instead to allow OPA to load policies over the network: https://www.openpolicyagent.org/docs/latest/management-bundles/ Bundles have a setting |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using docker contanier to start OPA as server, I want to get the policy from the host after I put a example policy into opa by the manual https://www.openpolicyagent.org/docs/latest/rest-api/#create-or-update-a-policy
But I can't find the policy anywhere on the host.
I use below command to start the OPA Server
docker run --rm --privileged -d -p 8181:8181 \ -v /data/server/opa_rules:/policies --name=opa2 openpolicyagent/opa:0.35.0 \ run --server /policies --log-format=json-pretty --set=decision_logs.console=true
Beta Was this translation helpful? Give feedback.
All reactions