From 7e93f1cdc1b7c805848ddfdab058d670c659892a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 30 Aug 2023 12:45:32 -0500 Subject: [PATCH] =?UTF-8?q?[Backport=201.6.latest]=20[ADAP-851]=20remove?= =?UTF-8?q?=20some=20connection=20fields=20that=20may=20be=20sensitive=20u?= =?UTF-8?q?ser=20information=20=E2=80=A6=20(#903)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * remove some connection fields that may be sensitive user information that we don't want showing up in dbt debug commands (#901) (cherry picked from commit 6e7c0fce74dd45b8f5f24fdbbdbe4f64ca1de765) * changelog --------- Co-authored-by: Matthew McKnight <91097623+McKnight-42@users.noreply.github.com> Co-authored-by: Matthew McKnight --- .changes/unreleased/Fixes-20230828-155753.yaml | 6 ++++++ dbt/adapters/bigquery/connections.py | 3 --- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 .changes/unreleased/Fixes-20230828-155753.yaml diff --git a/.changes/unreleased/Fixes-20230828-155753.yaml b/.changes/unreleased/Fixes-20230828-155753.yaml new file mode 100644 index 000000000..e2d6e22bb --- /dev/null +++ b/.changes/unreleased/Fixes-20230828-155753.yaml @@ -0,0 +1,6 @@ +kind: Fixes +body: remove senesitive creds from dbt debug stdout +time: 2023-08-28T15:57:53.641134-05:00 +custom: + Author: McKnight-42 + Issue: "900" diff --git a/dbt/adapters/bigquery/connections.py b/dbt/adapters/bigquery/connections.py index b466fee3b..15c983480 100644 --- a/dbt/adapters/bigquery/connections.py +++ b/dbt/adapters/bigquery/connections.py @@ -186,12 +186,9 @@ def _connection_keys(self): "job_creation_timeout_seconds", "job_execution_timeout_seconds", "keyfile", - "keyfile_json", "timeout_seconds", - "token", "refresh_token", "client_id", - "client_secret", "token_uri", "dataproc_region", "dataproc_cluster_name",