Vault k8s injector load file to env

I use vault-injector, and it works well.

I receive /vault/secrets/file in format of
Data: map [ key1: “val1”, key2: “val2” ]

This map is pretty dynamic, and i want to have envs
key1
key2
etc…

How can I load this file into system envs?

Hello,

You can give a try to secret templates. With it you can use Go templates (Consul templates) to render the format that you need. You can find more info here.

Hope it helps !
Martin