Skip to content

Redact secrets from LLMRetryPolicy classification prompts#70229

Open
Lee-W wants to merge 1 commit into
apache:mainfrom
astronomer:improve-LLMRetryPolicy-security-doc
Open

Redact secrets from LLMRetryPolicy classification prompts#70229
Lee-W wants to merge 1 commit 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 from 8e9bcf5 to e18e6e1 Compare July 23, 2026 10:46
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.
@Lee-W
Lee-W force-pushed the improve-LLMRetryPolicy-security-doc branch from e18e6e1 to 747c0b9 Compare July 23, 2026 11:53
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