Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v2-10-test] Ensure that the the generated airflow.cfg contains a ran… #47755

Open
wants to merge 3 commits into
base: v2-10-test
Choose a base branch
from

Conversation

jscheffl
Copy link
Contributor

…dom jwt_secret and fernet_key (#46966)

  • Ensure that the the generated airflow.cfg contains a random jwt_secret and fernet_key

Backport with adjustments to v2-10-test

ashb and others added 3 commits March 23, 2025 20:40
…dom jwt_secret and fernet_key (apache#46966)

* Ensure that the the generated airflow.cfg contains a random jwt_secret and fernet_key

I don't know exactly when this got broken, and unforutnaltey it wasn't tested,
but I suspect it might have been around the time we swapped the default config
from a config file to the yaml based values. I.e. a while ago!

To make sure it doesn't get broken I've gone and added some unit tests

And to make my next PR and test easier I have done the same thing with the
`auth_jwt_secret` that we do for fernet_key -- of only set it in the config
file if we're generating that file, not always in memory.

* Improve upgrade path by generating and warning about the missing config
(cherry picked from commit 106b872)

Co-authored-by: Ash Berlin-Taylor <[email protected]>
@jscheffl jscheffl force-pushed the backport-106b872-v2-10-test branch from 55b4ea2 to 4c11b56 Compare March 23, 2025 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants