Skip to content

Redact secrets from LLMRetryPolicy classification prompts - #70229

Merged
Lee-W merged 2 commits into
apache:mainfrom
astronomer:improve-LLMRetryPolicy-security-doc
Jul 31, 2026
Merged

Redact secrets from LLMRetryPolicy classification prompts#70229
Lee-W merged 2 commits into
apache:mainfrom
astronomer:improve-LLMRetryPolicy-security-doc

Conversation

@Lee-W

@Lee-W Lee-W commented Jul 22, 2026

Copy link
Copy Markdown
Member

Why

LMRetryPolicy sends the failing task's exception message to a third-party LLM, which can leak connection strings, credentials, or PII.

What

The message now passes through Airflow's secrets masker by default; set redact_exception=False to send the raw text when it is known to be safe.


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

Generated-by: [Claude] following the guidelines


  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@Lee-W
Lee-W force-pushed the improve-LLMRetryPolicy-security-doc branch 4 times, most recently from 22eec13 to 8e9bcf5 Compare July 23, 2026 09:46
@Lee-W Lee-W changed the title Document sensitive-data exposure risk in LLMRetryPolicy Redact secrets from LLMRetryPolicy classification prompts Jul 23, 2026
@Lee-W
Lee-W marked this pull request as ready for review July 23, 2026 10:36
@Lee-W
Lee-W force-pushed the improve-LLMRetryPolicy-security-doc branch 2 times, most recently from e18e6e1 to 747c0b9 Compare July 23, 2026 11:53
@Lee-W Lee-W self-assigned this Jul 27, 2026
@Lee-W
Lee-W force-pushed the improve-LLMRetryPolicy-security-doc branch 2 times, most recently from bb97259 to 2a0e8e2 Compare July 29, 2026 13:38
Lee-W and others added 2 commits July 31, 2026 11:37
LLMRetryPolicy sends the failing task's exception message to a third-party
LLM, which can leak connection strings, credentials, or PII. The message
now passes through Airflow's secrets masker by default; set
redact_exception=False to send the raw text when it is known to be safe.
The Parameters table and "How it works" walkthrough for LLMRetryPolicy
didn't mention that the exception message is redacted through
Airflow's secrets masker by default, and the "Local LLM support"
section read as if that were the only safeguard against leaking
exception data to a third-party LLM.
@Lee-W
Lee-W force-pushed the improve-LLMRetryPolicy-security-doc branch from 2a0e8e2 to 5548267 Compare July 31, 2026 03:40
@Lee-W
Lee-W merged commit 694e5b5 into apache:main Jul 31, 2026
83 checks passed
@Lee-W
Lee-W deleted the improve-LLMRetryPolicy-security-doc branch July 31, 2026 05:35
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.

3 participants