Skip to content

Where can we set up decision log config through OPAL? #93

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

You must be logged in to vote

Hi @hongbo-miao, you can definitely use OPAL to configure OPA's decision logs:

Running with standalone OPA

If running OPA standalone (in its own container), you can use the OPA --config-file option described here and pass a YAML with the options.

Running with inline OPA (recommended)

If you run OPA inline (by using the official opal-client docker image), you can use the OPAL_INLINE_OPA_CONFIG env var to setup the runtime options when the OPA process is invoked. The value of that env var is a dict that matches the OpaServerOptions pydantic schema, and inside this schema - you need to pass the path to the OPA configuration YAML inside config_file.

Since the config_file key expects a path ac…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hongbo-miao
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