Skip to content

Mask all connection extra and variable values in API audit log#68049

Open
potiuk wants to merge 1 commit into
apache:mainfrom
potiuk:mask-audit-log-connection-extra-and-variable-values
Open

Mask all connection extra and variable values in API audit log#68049
potiuk wants to merge 1 commit into
apache:mainfrom
potiuk:mask-audit-log-connection-extra-and-variable-values

Conversation

@potiuk
Copy link
Copy Markdown
Member

@potiuk potiuk commented Jun 5, 2026

The API audit-log writer (action_logging) recorded connection extra
values and variable values selectively, based on whether each field's key
name matched the secrets masker's sensitive-key list. Values stored under
other key names were written to the audit log verbatim.

This records only which extra fields were present (masking every value)
and masks the variable value unconditionally — the audit log captures that
a connection or variable changed, not its contents.

Was generative AI tooling used to co-author this PR?
  • Yes — Claude Opus 4.8 (1M context)

Generated-by: Claude Opus 4.8 (1M context) following the guidelines at https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions

The API audit-log writer recorded connection `extra` values and variable
values selectively, by matching the field's key name against the secrets
masker's sensitive-key list — so values stored under other key names were
written to Log.extra verbatim. Record only which `extra` fields were present
(masking every value) and mask the variable value unconditionally, so the
audit log captures that a connection or variable changed without persisting
the values themselves.
@potiuk potiuk force-pushed the mask-audit-log-connection-extra-and-variable-values branch from d670359 to 01ecbce Compare June 5, 2026 14:03
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.

1 participant