> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/continuous-delivery/troubleshooting-and-resources/armory/general/policy-engine-opa-for-styra-das-deployments.md).

# Policy Engine - OPA for STYRA DAS Deployments

### Issue <a href="#issue" id="issue"></a>

Policy Engine will return errors when using the OPA configuration using the following format for the OPA URL when also using Styra DAS (Declarative Authorization Service): `.../v1/data` For example, the following OPA URL: `http://opa.tempcompany.com:8181/v1/data`

### Cause <a href="#cause" id="cause"></a>

Styra DAS deployments require changes to the OPA URL to read policies. Policy Engine expects that policies are in separate file/package namespaces for OPA to consume. Styra DAS deployments place all policies in a single `rules.rego` package instead. The OPA URL needs to be adjusted as the policies will be in a different location for consumption.
