How to connect to an externalDatabase with a password from Vault? #567
-
Checks
QuestionHi, I am injecting Vault secrets to Airflow (using annotations not backend engine). I would like to also use it for getting PG database password to connect metastore. I found how this could be done but I suppose just with running Vault backend. Is there a way to supply password from attached folder or environment variables? Thanks! Edit: Based on this it seems there is no way to get password other way. Any chance to adjust it in future? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
@marekargalas Right now the chart only supports getting the password from a Secret resource using While it would be possible to create a value like PS: we also plan to add |
Beta Was this translation helpful? Give feedback.
-
@thesuperzapper thanks for clarification! So |
Beta Was this translation helpful? Give feedback.
-
@marekargalas You are correct that we don't support NOTE: we might want to add the |
Beta Was this translation helpful? Give feedback.
@marekargalas Right now the chart only supports getting the password from a Secret resource using
externalDatabase.passwordSecret
andexternalDatabase.passwordSecretKey
, there are a number of ways to automatically create Secrets from your Vault, for example:While it would be possible to create a value like
externalDatabase.passwordFile
, that specifies the path of a file in the pod which contains the password, I'm not sure how important that feature is, given the secret approach already exists.PS: we also plan to add
externalDatabase.userSecret
andexternalDatabase.userSecretKey
to support getting the username from a Secret also, which will pro…