Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ADAP-849] removes some user connection details from stdout #756

Merged
merged 37 commits into from
Aug 28, 2023

Conversation

McKnight-42
Copy link
Contributor

resolves #754
docs dbt-labs/docs.getdbt.com/#

Problem

user credentials private_key and private_key_passphrase can show up in logs due to dbt debug stdout, these creds are some may not want in logs.

Solution

remove needed creds from _connection_keys method in connections.py to remove them from adapter specific stdout.

Checklist

  • I have read the contributing guide and understand what's expected of me
  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • This PR has no interface changes (e.g. macros, cli, logs, json artifacts, config files, adapter interface, etc) or this PR has already received feedback and approval from Product or DX

@McKnight-42 McKnight-42 added the Skip Changelog Skips GHA to check for changelog file label Aug 28, 2023
@McKnight-42 McKnight-42 self-assigned this Aug 28, 2023
@cla-bot cla-bot bot added the cla:yes label Aug 28, 2023
@McKnight-42 McKnight-42 marked this pull request as ready for review August 28, 2023 19:00
@McKnight-42 McKnight-42 requested a review from a team as a code owner August 28, 2023 19:00
@McKnight-42 McKnight-42 merged commit e72e8f1 into main Aug 28, 2023
24 checks passed
@McKnight-42 McKnight-42 deleted the mcknight/ADAP-849 branch August 28, 2023 20:53
github-actions bot pushed a commit that referenced this pull request Aug 28, 2023
* update RELEASE_BRANCH env

* remove some connection fields that may be sensitive user information that we don't want showing up in dbt debug commands

* add changelog and comment pointing to docs

(cherry picked from commit e72e8f1)
McKnight-42 added a commit that referenced this pull request Aug 30, 2023
)

* update RELEASE_BRANCH env

* remove some connection fields that may be sensitive user information that we don't want showing up in dbt debug commands

* add changelog and comment pointing to docs

(cherry picked from commit e72e8f1)

Co-authored-by: Matthew McKnight <[email protected]>
philippe-boyd-maxa pushed a commit to maxa-ai/dbt-snowflake that referenced this pull request Nov 27, 2023
…#756)

* update RELEASE_BRANCH env

* remove some connection fields that may be sensitive user information that we don't want showing up in dbt debug commands

* add changelog and comment pointing to docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla:yes Skip Changelog Skips GHA to check for changelog file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ADAP-849] [Bug] debug prints private_key and private_key_passphrase to stdout
2 participants