#!Env blueprint YAML tag - has anyone gotten it to work?

1 messages · Page 1 of 1 (latest)

chrome flicker
#
k exec -it deployment/ak-worker -c authentik -- printenv | grep TEST
AUTHENTIK_TEST_SVC_KEY=str

k  exec -it deployment/ak-worker -c authentik -- ak dump_config | grep test
    "test_svc_key": "str",

My blueprint snippet

- attrs:
    attributes:
      test: !Env test_svc_key, changeme
      test2: !Env AUTHENTIK_TEST_SVC_KEY, changeme

Looking at the user however, both attributes are null

test: null
test2: null
chrome flicker
#

looking at authentik/authentik/blueprints/v1/common.py its using os env var, so only test2 should have a value

chrome flicker
#

Okay, guess I misunderstood, it should be !Env [AUTHENTIK_TEST_SVC_KEY, changeme]