Skip to content

Document how to rotate the Fernet key with the Helm chart#70242

Open
Aaryan123456679 wants to merge 3 commits into
apache:mainfrom
Aaryan123456679:docs/fernet-key-rotation-helm-18509
Open

Document how to rotate the Fernet key with the Helm chart#70242
Aaryan123456679 wants to merge 3 commits into
apache:mainfrom
Aaryan123456679:docs/fernet-key-rotation-helm-18509

Conversation

@Aaryan123456679

Copy link
Copy Markdown
Contributor

The Helm chart docs describe pointing at a custom Fernet key Secret via fernetKeySecretName, but never explain how to actually rotate the key once Airflow is deployed via the chart. This adds a "Fernet Key" section to the production guide covering the standard prepend/rotate/trim procedure, and notes that the chart-generated Secret is only created on helm install (via a pre-install hook) so a self-managed Secret is required to rotate at all.

closes: #18509

Test plan

  • breeze build-docs --package-filter helm-chart succeeded with no warnings/errors
  • prek run --from-ref upstream/main --stage pre-commit passed (including the RST double-backtick check)
  • prek run --from-ref upstream/main --stage manual passed
  • git diff upstream/main...HEAD --stat confirms only the doc file and newsfragment changed

Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Sonnet 5)

Generated-by: Claude Code (Sonnet 5) following the guidelines

@bugraoz93 bugraoz93 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Some nits

Comment thread chart/docs/production-guide.rst
Comment thread chart/docs/production-guide.rst
Comment thread chart/docs/production-guide.rst Outdated
@Aaryan123456679
Aaryan123456679 force-pushed the docs/fernet-key-rotation-helm-18509 branch from ebac38f to a1dbb7b Compare July 22, 2026 17:45

@Miretpl Miretpl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice PR! It will also related to the #47963

Comment thread chart/newsfragments/70242.doc.rst Outdated
Comment thread chart/docs/production-guide.rst Outdated
Comment thread chart/docs/production-guide.rst Outdated
Comment thread chart/docs/production-guide.rst Outdated
Comment thread chart/docs/production-guide.rst Outdated
Comment thread chart/docs/production-guide.rst Outdated
Comment thread chart/docs/production-guide.rst Outdated
@Aaryan123456679
Aaryan123456679 force-pushed the docs/fernet-key-rotation-helm-18509 branch from a1dbb7b to ab32998 Compare July 24, 2026 10:37

@Miretpl Miretpl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good for me, @bugraoz93 good for you too?

@Miretpl Miretpl added the backport-to-chart/v1-2x-test Automatic backport to chart 1.2x maintenance branch label Jul 24, 2026
The Helm chart docs explained how to point at a custom Fernet key
Secret but never how to safely rotate one. The chart also generates
the Fernet key Secret via a pre-install hook, which means it cannot be
updated through helm upgrade, so a self-managed Secret plus the
standard prepend/rotate/trim procedure is required. Document that gap
so operators aren't left guessing or reverse-engineering the chart
templates.

closes: apache#18509
Reviewers pointed out three gaps: the plaintext-key warning didn't
explicitly say not to commit values.yaml to version control, the
kubectl-created Secret example didn't mention that it needs to be
managed as infrastructure so it survives a cluster migration or
redeploy, and the rotation steps described updating the Secret's
value without ever showing the command to do it.

Rename the newsfragment to the PR number (70242) instead of the issue
number (18509) per towncrier convention.
Tighten the wording per reviewer suggestions and drop the newsfragment,
since a docs-only addition does not need one.
@Aaryan123456679
Aaryan123456679 force-pushed the docs/fernet-key-rotation-helm-18509 branch from 29ed5ff to f3a3cf5 Compare July 24, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:helm-chart Airflow Helm Chart backport-to-chart/v1-2x-test Automatic backport to chart 1.2x maintenance branch kind:documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support fernet key rotation

3 participants