Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opa Configuration #51

Closed
eqvis opened this issue Sep 22, 2021 · 2 comments
Closed

Opa Configuration #51

eqvis opened this issue Sep 22, 2021 · 2 comments

Comments

@eqvis
Copy link

eqvis commented Sep 22, 2021

Hi,
I'm using this plugin successfully for some time now. And I miss a possibility to start OPA with a configuration (option --config-file my-config.yml as command line argument). Is this feature really missing or can I add this to the OPA-command-line anyhow?

Thank you for your good work!
Eqvis

PS: I want to enable logging via config-file

@anderseknert
Copy link
Member

Hi @eqvis! Unless I'm mistaken, the evaluation done by the plugin is done using opa eval which doesn't support providing a config file, since that would essentially require the server to be running (i.e. opa run --server --config file). There's an open issue to have something like an --exec flag for opa run, which would allow running even one-off evaluations with a full configuration, so you might want to track that.

As for logging, the next version of OPA (v0.34.0) due later this week supports a new print built-in, which is already supported by this plugin, and should help to some extent with knowing what's going on during policy evaluation.

@anderseknert
Copy link
Member

Closing, as I don't think there's much to do here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants