Replies: 3 comments
-
|
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval. |
Beta Was this translation helpful? Give feedback.
-
|
This is not possible. Airflow will always mask passwords - if you are using "airflow" as a password (which you should not) it will be masked. The description is quite clear about it (it's only about sensitive connection extra keys not passwords).
Since Airflow 3 you can set minimum length of secret Other than that you can likely follow the path of custom logging and adapt configuration of logger to remove secrets masker that is configured as logging filter (see the custom logging config and alirflow_local_settings.py). |
Beta Was this translation helpful? Give feedback.
-
|
Also please next time open discussion not an issue - this is something you have quesiton about not an airflow issue.. I am converting it to a discussion now. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Apache Airflow version
Other Airflow 2/3 version (please specify below)
If "Other Airflow 2/3 version" selected, which one?
2.10.2
What happened?
I am using the AIRFLOW__CORE__HIDE_SENSITIVE_VAR_CONN_FIELDS = False using an -e enviroment variable in an Airflow Podman image.
But I see that this configuration is not respected and I still am getting masked passwords in my Airflow task logs.
How can I fully disable the masking for the task logs ?
What you think should happen instead?
The configuration AIRFLOW__CORE__HIDE_SENSITIVE_VAR_CONN_FIELDS = False should be respected and all masking should be disabled in the Airflow task logs.
How to reproduce
Start Airflow with
podman run -d --name airflow --network airflow-net --cpus 8 --memory 8192m -e AIRFLOW__CORE__EXECUTOR=LocalExecutor -e AIRFLOW_UID=50000 -e AIRFLOW__CORE__HIDE_SENSITIVE_VAR_CONN_FIELDS=False -e AIRFLOW__DATABASE__SQL_ALCHEMY_CONN=postgresql+psycopg2://airflow:airflow@postgres:5432/airflow -v doc-dbt:/opt/airflow/doc-dbt -v airflow-dags:/opt/airflow/dags -v airflow-logs:/opt/airflow/logs -v airflow-plugins:/opt/airflow/plugins -p 8080:8080 apache/airflow:2.10.5 webserverCreate a connection for snowflake_test with a password.
Use the following DAG to test:
Operating System
Windows (Podman Fedora Core OS)
Versions of Apache Airflow Providers
No response
Deployment
Other
Deployment details
Using Podman with Fedora Core OS VM.
podman run -d --name airflow --network airflow-net --cpus 8 --memory 8192m -e AIRFLOW__CORE__EXECUTOR=LocalExecutor -e AIRFLOW_UID=50000 -e AIRFLOW__CORE__HIDE_SENSITIVE_VAR_CONN_FIELDS=False -e AIRFLOW__DATABASE__SQL_ALCHEMY_CONN=postgresql+psycopg2://airflow:airflow@postgres:5432/airflow -v doc-dbt:/opt/airflow/doc-dbt -v airflow-dags:/opt/airflow/dags -v airflow-logs:/opt/airflow/logs -v airflow-plugins:/opt/airflow/plugins -p 8080:8080 apache/airflow:2.10.2 webserverAnything else?
No response
Are you willing to submit PR?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions