Skip to content

Warn against world-accessible Kerberos ccache default in docs#66557

Merged
vatsrahul1001 merged 1 commit into
apache:mainfrom
potiuk:docs/kerberos-ccache-non-tmp
May 18, 2026
Merged

Warn against world-accessible Kerberos ccache default in docs#66557
vatsrahul1001 merged 1 commit into
apache:mainfrom
potiuk:docs/kerberos-ccache-non-tmp

Conversation

@potiuk
Copy link
Copy Markdown
Member

@potiuk potiuk commented May 7, 2026

Summary

The Kerberos integration docs ship a default ccache path of /tmp/airflow_krb5_ccache, which sits in a world-readable directory on most Unix systems and would let any other local user on the host read or modify the Airflow service principal's credential cache.

Add a warning recommending a non-world-accessible directory (a per-service runtime dir like /run/airflow/krb5_ccache or a private user-scoped location) and chmod 0700 on the parent — mirroring the guidance the docs already give for the keytab.

Documentation-only change; no code paths affected.

Reported by

L3 ASVS sweep — apache/tooling-agents#23 (FINDING-175).


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

Generated-by: Claude Code (Opus 4.7) following the guidelines

The Kerberos integration docs ship a default ccache path of
`/tmp/airflow_krb5_ccache`, which sits in a world-readable directory on
most Unix systems and would let any other local user on the host read
or modify the Airflow service principal's credential cache.

Add a warning recommending a non-world-accessible directory (a per-service
runtime dir like `/run/airflow/krb5_ccache` or a private user-scoped
location) and `chmod 0700` on the parent — mirroring the guidance the
docs already give for the keytab.

Reported by the L3 ASVS sweep at apache/tooling-agents#23 (FINDING-175).
@potiuk potiuk force-pushed the docs/kerberos-ccache-non-tmp branch from d259eb0 to 743ec9c Compare May 17, 2026 19:39
@potiuk
Copy link
Copy Markdown
Member Author

potiuk commented May 17, 2026

I'd love to get this one merged — and would love it in 3.2.2 if it's not too late. cc @vatsrahul1001 (3.2.2 RM)


Drafted-by: Claude Code (Opus 4.7); reviewed by @potiuk before posting

@potiuk potiuk added this to the Airflow 3.2.2 milestone May 17, 2026
@potiuk potiuk added the backport-to-v3-2-test Mark PR with this label to backport to v3-2-test branch label May 17, 2026
@vatsrahul1001 vatsrahul1001 merged commit da03584 into apache:main May 18, 2026
70 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

Backport successfully created: v3-2-test

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
v3-2-test PR Link

vatsrahul1001 pushed a commit that referenced this pull request May 18, 2026
…docs (#66557) (#67085)

The Kerberos integration docs ship a default ccache path of
`/tmp/airflow_krb5_ccache`, which sits in a world-readable directory on
most Unix systems and would let any other local user on the host read
or modify the Airflow service principal's credential cache.

Add a warning recommending a non-world-accessible directory (a per-service
runtime dir like `/run/airflow/krb5_ccache` or a private user-scoped
location) and `chmod 0700` on the parent — mirroring the guidance the
docs already give for the keytab.

Reported by the L3 ASVS sweep at apache/tooling-agents#23 (FINDING-175).
(cherry picked from commit da03584)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
vatsrahul1001 pushed a commit that referenced this pull request May 20, 2026
…docs (#66557) (#67085)

The Kerberos integration docs ship a default ccache path of
`/tmp/airflow_krb5_ccache`, which sits in a world-readable directory on
most Unix systems and would let any other local user on the host read
or modify the Airflow service principal's credential cache.

Add a warning recommending a non-world-accessible directory (a per-service
runtime dir like `/run/airflow/krb5_ccache` or a private user-scoped
location) and `chmod 0700` on the parent — mirroring the guidance the
docs already give for the keytab.

Reported by the L3 ASVS sweep at apache/tooling-agents#23 (FINDING-175).
(cherry picked from commit da03584)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
vatsrahul1001 pushed a commit that referenced this pull request May 20, 2026
…docs (#66557) (#67085)

The Kerberos integration docs ship a default ccache path of
`/tmp/airflow_krb5_ccache`, which sits in a world-readable directory on
most Unix systems and would let any other local user on the host read
or modify the Airflow service principal's credential cache.

Add a warning recommending a non-world-accessible directory (a per-service
runtime dir like `/run/airflow/krb5_ccache` or a private user-scoped
location) and `chmod 0700` on the parent — mirroring the guidance the
docs already give for the keytab.

Reported by the L3 ASVS sweep at apache/tooling-agents#23 (FINDING-175).
(cherry picked from commit da03584)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
vatsrahul1001 pushed a commit that referenced this pull request May 21, 2026
…docs (#66557) (#67085)

The Kerberos integration docs ship a default ccache path of
`/tmp/airflow_krb5_ccache`, which sits in a world-readable directory on
most Unix systems and would let any other local user on the host read
or modify the Airflow service principal's credential cache.

Add a warning recommending a non-world-accessible directory (a per-service
runtime dir like `/run/airflow/krb5_ccache` or a private user-scoped
location) and `chmod 0700` on the parent — mirroring the guidance the
docs already give for the keytab.

Reported by the L3 ASVS sweep at apache/tooling-agents#23 (FINDING-175).
(cherry picked from commit da03584)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-to-v3-2-test Mark PR with this label to backport to v3-2-test branch kind:documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants