Skip to content

Make log redaction safer in edge case when redaction has an error - #54046

Merged
ashb merged 1 commit into
apache:mainfrom
astronomer:safer-redaction-fallback
Aug 2, 2025
Merged

ashb merged 1 commit into
apache:mainfrom
astronomer:safer-redaction-fallback

Conversation

@ashb

@ashb ashb commented Aug 2, 2025 •

Copy link
Copy Markdown
Member

Previously this both logged the item, and returned the unable-to-be-redacted item unchanged.

Lets play it safe, only log the type that failed and return a known-to-be-safe string in cases like this.

Previously this both logged the item, and returned the unable-to-be-redacted
item unchanged.

Lets play it safe, only log the type that failed and return a known-to-be-safe
string in cases like this.
@ashb
ashb merged commit 93ba1c5 into apache:main Aug 2, 2025
@ashb
ashb deleted the safer-redaction-fallback branch August 2, 2025 08:51
github-actions Bot pushed a commit that referenced this pull request Aug 2, 2025
…an error (#54046)

(cherry picked from commit 93ba1c5)

Co-authored-by: Ash Berlin-Taylor <[email protected]>
@github-actions

github-actions Bot commented Aug 2, 2025

Copy link
Copy Markdown
Contributor

Backport successfully created: v3-0-test

Status Branch Result
✅ v3-0-test PR Link

ashb added a commit that referenced this pull request Aug 2, 2025
…an error (#54046) (#54048)

* [v3-0-test] Make log redaction safer in edge case when redaction has an error (#54046)
(cherry picked from commit 93ba1c5)

* Fix bad mocking in test

Co-authored-by: Ash Berlin-Taylor <[email protected]>
github-actions Bot pushed a commit to guan404ming/airflow that referenced this pull request Aug 2, 2025
…an error (apache#54046)

(cherry picked from commit 93ba1c5)

Co-authored-by: Ash Berlin-Taylor <[email protected]>
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