ENV Vars not working opa as golang lib #221
Unanswered
Siedlarczyk
asked this question in
OPA and Rego
Replies: 1 comment 7 replies
-
Hi @Siedlarczyk ! This should be what you're looking for. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all, sorry if this is a silly question.
I was trying to use
opa.runtime().env.FOO
in a policy, using embedded opa inside golang as a lib, but that doesn't seem to work at all.Is there something I'm missing here?
When I run
opa run
as the standard binary, works just fine.Can confirm the envs are properly set.
this only works when replacing the env per literal string.
Beta Was this translation helpful? Give feedback.
All reactions