Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mask secrets in stdout for CLI command #24362

Merged
merged 1 commit into from
Jun 12, 2022

Conversation

uranusjr
Copy link
Member

Same as #21281, but rebased and simplified.

Close #21281, fix #17476.

A stdout redirector is implemented to mask all values to stdout and
redact any secrets in it with the secrets masker. This redirector is
applied to the 'airflow.task' logger.
@potiuk potiuk merged commit 3007159 into apache:main Jun 12, 2022
@ephraimbuddy ephraimbuddy added this to the Airflow 2.3.3 milestone Jul 5, 2022
@ephraimbuddy ephraimbuddy added the type:bug-fix Changelog: Bug Fixes label Jul 5, 2022
ephraimbuddy pushed a commit that referenced this pull request Jul 5, 2022
A stdout redirector is implemented to mask all values to stdout and
redact any secrets in it with the secrets masker. This redirector is
applied to the 'airflow.task' logger.

Co-authored-by: Alex Kennedy <alex.kennedy@astronomer.io>
(cherry picked from commit 3007159)
ephraimbuddy pushed a commit that referenced this pull request Jul 5, 2022
A stdout redirector is implemented to mask all values to stdout and
redact any secrets in it with the secrets masker. This redirector is
applied to the 'airflow.task' logger.

Co-authored-by: Alex Kennedy <alex.kennedy@astronomer.io>
(cherry picked from commit 3007159)
@ashb ashb deleted the 17476-secret-redact-cli-test branch September 30, 2022 13:54
@ashb
Copy link
Member

ashb commented Sep 30, 2022

@dimberman we should add similar redaction on the new dags test command!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sensitive variables don't get masked when rendered with airflow tasks test
5 participants