question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Connection Base Hook printing out password in Airflow logs,

See original GitHub issue

I have recently upgraded to airflow:2.1.0.

I am finding the issue of password being printed from within the connection objects in Airflow logs. Earlier they used to be covered with several Xs in the logs.

This should be the source code which causes it to print the password.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

0reactions
ashbcommented, Jul 14, 2021

@raajpackt Masking happens when tasks are run – where do you have the code that is triggering that behaviour?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Store and access password using Apache airflow
You can store the password in a Hook - this will be encrypted so long as you have setup your fernet key. Here...
Read more >
Managing Connections — Airflow Documentation
For connections stored in the Airflow metadata database, Airflow uses Fernet to encrypt password and other potentially sensitive data.
Read more >
How to Mask the connection Passwords in airflow logs #24435
This masks secret values in logs for Connections and Variables. It behaves as follows: Connection passwords are always masked, where-ever they appear. This ......
Read more >
[GitHub] [airflow] raajpackt edited a comment on issue #16558
[GitHub] [airflow] raajpackt edited a comment on issue #16558: Connection Base Hook printing out password in Airflow logs,.
Read more >
Managing Connections - Apache Airflow Documentation
Airflow needs to know how to connect to your environment. Information such as hostname, port, login and passwords to other systems and services...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found