Skip to content

[v3-4-test] Mask XCom values in the audit log (#73791) - #75113

Merged
potiuk merged 1 commit into
v3-4-testfrom
backport-a26eb12-v3-4-test
Oct 19, 2026
Merged

potiuk merged 1 commit into
v3-4-testfrom
backport-a26eb12-v3-4-test

Conversation

@github-actions

Copy link
Copy Markdown
Contributor
  • Mask XCom values in the audit log

The audit log masks the value of Variable and Connection writes
unconditionally, because it records that something was written rather
than what. XCom create and update requests fell through to per-key
name redaction, so their values were stored in the audit log as sent.
Mask the XCom value the same way; the key and map index are kept.

Generated-by: Claude Opus 5

  • Add newsfragment

Generated-by: Claude Opus 5

  • Keep the targeted XCom in the audit log when an update has a body

Replacing the path/query context with the request body dropped xcom_key, so an update_xcom_entry row no longer said which XCom was changed.
(cherry picked from commit a26eb12)

Co-authored-by: Jarek Potiuk [email protected]
Generated-by: Claude Opus 5

* Mask XCom values in the audit log

The audit log masks the value of Variable and Connection writes
unconditionally, because it records that something was written rather
than what. XCom create and update requests fell through to per-key
name redaction, so their values were stored in the audit log as sent.
Mask the XCom value the same way; the key and map index are kept.

Generated-by: Claude Opus 5

* Add newsfragment

Generated-by: Claude Opus 5

* Keep the targeted XCom in the audit log when an update has a body

Replacing the path/query context with the request body dropped xcom_key, so an update_xcom_entry row no longer said which XCom was changed.
(cherry picked from commit a26eb12)

Co-authored-by: Jarek Potiuk <[email protected]>
Generated-by: Claude Opus 5
@boring-cyborg boring-cyborg Bot added the area:API Airflow's REST/HTTP API label Oct 19, 2026
@potiuk
potiuk marked this pull request as ready for review October 19, 2026 16:26
@potiuk
potiuk merged commit 0624e83 into v3-4-test Oct 19, 2026
72 of 73 checks passed
@potiuk
potiuk deleted the backport-a26eb12-v3-4-test branch October 19, 2026 16:26
@github-actions github-actions Bot added this to the Airflow 3.4.1 milestone Oct 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor Author

Hi maintainer, this PR was merged without a milestone set.
We've automatically set the milestone to Airflow 3.4.1 based on: merged to version branch
If this milestone is not correct, please update it to the appropriate milestone.

This comment was generated by Milestone Tag Assistant.

vatsrahul1001 pushed a commit that referenced this pull request Oct 20, 2026
* Mask XCom values in the audit log

The audit log masks the value of Variable and Connection writes
unconditionally, because it records that something was written rather
than what. XCom create and update requests fell through to per-key
name redaction, so their values were stored in the audit log as sent.
Mask the XCom value the same way; the key and map index are kept.

Generated-by: Claude Opus 5

* Add newsfragment

Generated-by: Claude Opus 5

* Keep the targeted XCom in the audit log when an update has a body

Replacing the path/query context with the request body dropped xcom_key, so an update_xcom_entry row no longer said which XCom was changed.
(cherry picked from commit a26eb12)


Generated-by: Claude Opus 5

Co-authored-by: Jarek Potiuk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants