Skip to content

INLINE_OPA_CONFIG didn't support multiple addr/diagnostic-addr? #482

Answered by shaulk
h9ing asked this question in Q&A
Discussion options

You must be logged in to vote

Hi h9ing,

OPAL doesn't currently have a configuration option to add command line arguments to the inline OPA, so your only option (assuming the current code) is to run OPA separately, and set INLINE_OPA_ENABLED false and POLICY_STORE_URL to OPA's URL.

As an alternative, you can set up nginx in front of OPA to serve as the public gateway, by proxying only POST requests to whichever route you want to expose, thus negating the need for listening on two separate ports.

If you want to contribute this functionality, we'd love a PR. You can add support for custom configs to OPAL at opal_client.opa.runner, with a configuration option from opal_client.config.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by h9ing
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