Fix airflow info --anonymize leaking the machine hostname - #73074
Open
roykoand wants to merge 3 commits into
Open
Fix airflow info --anonymize leaking the machine hostname#73074roykoand wants to merge 3 commits into
roykoand wants to merge 3 commits into
Conversation
The uname line in `airflow info` reports platform.uname(), whose node field is the machine hostname. On managed devices this hostname often encodes an asset tag or device name, but --anonymize never masked it even though it already redacts the home directory, OS username, and database credentials elsewhere in the report. Co-Authored-By: Claude Sonnet 5 <[email protected]>
roykoand
requested review from
bugraoz93,
dheerajturaga,
henry3260 and
potiuk
as code owners
September 13, 2026 10:55
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Building a synthetic uname_result inline is clearer than caching a real one at import time to work around mock.patch timing. Co-Authored-By: Claude Sonnet 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
airflow info --anonymizeis meant to strip personally identifying information. It already redacts the home directory, OS username, and database credentials but it never touched theunameline, which leaks the machine hostname.The problem
platform.uname()returns a named tuple whosenodefield is the machine hostname, and on manageddevices that hostname routinely encodes a real name or an asset tag:
Before / after, same machine:
Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Sonnet 5) following the guidelines
🤖 Generated with Claude Code