You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the Credentials’ _connection_keys method […] will return the keys that should be displayed in the output of the dbt debug command. As a general rule, it’s good to return all the arguments used in connecting to the actual database except the password (even optional arguments).
longer-term solution?
potential 2.0 work item would be to invert that current pattern and have a place to define sensitive keys that should not be printed to stdout, and by default include all others?
Expected/Previous Behavior
dbt debug will not print sensitive connection information to stdout
Steps To Reproduce
use dbt-bigquery version 1.6.0.
have a sensitive-field that isn't password defined.
execute dbt debug
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
[Regression] debug outputs sensitive information
[ADAP-851] [Regression] debug outputs sensitive information
Aug 28, 2023
Is this a regression in a recent version of dbt-bigquery?
Current Behavior
related: dbt-labs/dbt-snowflake#754
this change was introduced in #754 (core PR: dbt-labs/dbt-core#7741) and landed in version 1.6.0
dbt debug
will return the following profile target attributes if the user has them in their profile:token
client_secret
keyfile_json
The solution is to modify
BigQueryCredentials._connection_keys()
(see below)dbt-bigquery/dbt/adapters/bigquery/connections.py
Lines 174 to 194 in d7fb235
._connection_keys()
contextour Building a new Adapter: editing the connection manager stipulates
longer-term solution?
potential 2.0 work item would be to invert that current pattern and have a place to define sensitive keys that should not be printed to stdout, and by default include all others?
Expected/Previous Behavior
dbt debug
will not print sensitive connection information to stdoutSteps To Reproduce
password
defined.dbt debug
The text was updated successfully, but these errors were encountered: