Skip to content

Commit

Permalink
fix(cli): suppress secrets in stacktraces (datahub-project#5302)
Browse files Browse the repository at this point in the history
  • Loading branch information
anshbansal authored and maggiehays committed Aug 1, 2022
1 parent ced1f37 commit d91dd86
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions metadata-ingestion/src/datahub/entrypoints.py
Expand Up @@ -169,6 +169,17 @@ def main(**kwargs):
exc,
line_wrap=MAX_CONTENT_WIDTH,
truncate_vals=10 * MAX_CONTENT_WIDTH,
suppressed_vars=[
r".*password.*",
r".*secret.*",
r".*key.*",
r".*access.*",
# needed because sometimes secrets are in url
r".*url.*",
# needed because sqlalchemy uses it underneath
# and passes all params
r".*cparams.*",
],
suppressed_paths=[r"lib/python.*/site-packages/click/"],
**kwargs,
)
Expand Down

0 comments on commit d91dd86

Please sign in to comment.