Linux OPACozyFex included in linux opa open policy agent 2021-07-06 87 words One minute Contents OPAInstallationTest PolicyView PoliciesLoad PolicyUnload PolicyOPA Default InformationOPAOPAOPA stands for Open Policy Agent.Policy-based control for cloud native environments.OfficialInstallation1 2 3 export OPA_VERSION=v0.27.1 curl -L -o opa https://github.com/open-policy-agent/opa/releases/download/${OPA_VERSION}/opa_linux_amd64 chmod 755 ./opa 1 ./opa run -s & Test Policy1 ./opa test <rego-file-name> View Policies1 curl http://localhost:8181/v1/policies Load Policy1 2 # Structure curl -X PUT --data-binary @<rego-policy-file-name> http://localhost:8181/v1/policies/<policy-name> 1 2 # Example curl -X PUT --data-binary @sample.rego http://localhost:8181/v1/policies/samplepolicy Unload Policy1 curl -X DELETE http://localhost:8181/v1/policies/<policy-name> 1 curl -X DELETE http://localhost:8181/v1/policies/samplepolicy OPA Default InformationDefault PortLanguage8181Rego