Skip to content

Adds more explanatory message when SecretsMasker is not configured - #17101

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:add-better-explanation-for-secrets-masker-error
Jul 20, 2021
Merged

Adds more explanatory message when SecretsMasker is not configured#17101
potiuk merged 1 commit into
apache:mainfrom
potiuk:add-better-explanation-for-secrets-masker-error

Conversation

@potiuk

@potiuk potiuk commented Jul 20, 2021

Copy link
Copy Markdown
Member

The secrets masker added in 2.1.0 introduced requirement that
at least one SecretsMasker needs to be configured per task.

However this introduced problems for several users who migrated
from Airflow 1.10 and had their custom logging configuration
done without first copying the base airflow configuration.

The message about missing SecretsMasker was pretty cryptic for the
users. This PR changes the message to be much more descriptive
and pointing the user to the right place in documentation
explaining how advanced logging configuration should be done.


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.

The secrets masker added in 2.1.0 introduced requirement that
at least one SecretsMasker needs to be configured per task.

However this introduced problems for several users who migrated
from Airflow 1.10 and had their custom logging configuration
done without first copying the base airflow configuration.

The message about missing SecretsMasker was pretty cryptic for the
users. This PR changes the message to be much more descriptive
and pointing the user to the right place in documentation
explaining how advanced logging configuration should be done.
@github-actions github-actions Bot added the full tests needed We need to run full set of tests for this PR to merge label Jul 20, 2021
@github-actions

Copy link
Copy Markdown
Contributor

The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease.

@potiuk
potiuk merged commit 3a2e162 into apache:main Jul 20, 2021
@potiuk
potiuk deleted the add-better-explanation-for-secrets-masker-error branch July 20, 2021 08:52
@potiuk potiuk added this to the Airflow 2.1.3 milestone Jul 20, 2021
jhtimmins pushed a commit that referenced this pull request Aug 9, 2021
…17101)

The secrets masker added in 2.1.0 introduced requirement that
at least one SecretsMasker needs to be configured per task.

However this introduced problems for several users who migrated
from Airflow 1.10 and had their custom logging configuration
done without first copying the base airflow configuration.

The message about missing SecretsMasker was pretty cryptic for the
users. This PR changes the message to be much more descriptive
and pointing the user to the right place in documentation
explaining how advanced logging configuration should be done.

(cherry picked from commit 3a2e162)
jhtimmins pushed a commit that referenced this pull request Aug 13, 2021
…17101)

The secrets masker added in 2.1.0 introduced requirement that
at least one SecretsMasker needs to be configured per task.

However this introduced problems for several users who migrated
from Airflow 1.10 and had their custom logging configuration
done without first copying the base airflow configuration.

The message about missing SecretsMasker was pretty cryptic for the
users. This PR changes the message to be much more descriptive
and pointing the user to the right place in documentation
explaining how advanced logging configuration should be done.

(cherry picked from commit 3a2e162)
kaxil pushed a commit that referenced this pull request Aug 17, 2021
…17101)

The secrets masker added in 2.1.0 introduced requirement that
at least one SecretsMasker needs to be configured per task.

However this introduced problems for several users who migrated
from Airflow 1.10 and had their custom logging configuration
done without first copying the base airflow configuration.

The message about missing SecretsMasker was pretty cryptic for the
users. This PR changes the message to be much more descriptive
and pointing the user to the right place in documentation
explaining how advanced logging configuration should be done.

(cherry picked from commit 3a2e162)
jhtimmins pushed a commit that referenced this pull request Aug 17, 2021
…17101)

The secrets masker added in 2.1.0 introduced requirement that
at least one SecretsMasker needs to be configured per task.

However this introduced problems for several users who migrated
from Airflow 1.10 and had their custom logging configuration
done without first copying the base airflow configuration.

The message about missing SecretsMasker was pretty cryptic for the
users. This PR changes the message to be much more descriptive
and pointing the user to the right place in documentation
explaining how advanced logging configuration should be done.

(cherry picked from commit 3a2e162)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:logging full tests needed We need to run full set of tests for this PR to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants