I would like to use a databricks secret in an init script.
I can manually set an environment variable with ENVVAR={{/secrets/myscope/mysecret}} and then use ENVVAR in the init script. However doing it this way I would have to manually set that environment variable on each cluster, and any new ones, which won't work in my scenario.
Ideally I would like to manage it with cluster policies, but I don't see that being available there.
I've also tried to have a separate init script with
export ENVVAR="{{secrets/myscope/mysecret}}"
But doing this when I try to echo that ENVVAR it returns nothing so I assume it is failing.
Does anyone have an idea on how I can achieve this?
Thanks Mat