davido912 commented on issue #9638: URL: https://github.com/apache/airflow/issues/9638#issuecomment-653905800
I'll give an example of my use case, I'm using the Snowflake hook (which is based on the dbapihook). The hook itself prints to the logs the SQL queries it sends. Snowflake has a SQL query that requires feeding AWS credentials. These are ingested into the SQL string by pulling them from the Airflow metadatabase connections and fired via the Snowflake Hook. However, this hook prints to the Airflow logs the credentials. Posting this on the Slack channel was answered with this: ![image](https://user-images.githubusercontent.com/48397009/86536583-2378d400-bee9-11ea-922f-fec7bf227fa4.png) I am not quite sure what's the bug, however, I am still wondering whether a way exists to mask this kind of sensitive information. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org