How to update a connection password (secret rotation)? #63862
Unanswered
AchimGaedkeLynker
asked this question in
Q&A
Replies: 1 comment
-
|
For that you should use secrets managers - and use Secrets manager's to update APIs. Generally the idea is that connections are largerly "read only" for Airflow and rotation is managed outside. When your Dag gets a password that has been rotated - it's something that should not happen - your password should be rotated in airflow connection from outside WHEN it is rotated - not when random Dag finds that it should be rotated. It's not only too late but also brittle (which taks is changing it) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I failed to google this question and find an answer specific to 3.x - as the direct access to the ORM is prevented (used to do this in airflow 2.x)
I try to create an airflow task, which:
And then the downstream tasks will use the updated connection via the connection id.
I get stuck in the last step, how do I update an airflow connection within an airflow DAG run?
One solution might be "obvious": I call a subprocess in the LocalExecutor to use the CLI...
but surely, there must be something better out there.
Beta Was this translation helpful? Give feedback.
All reactions