Skip to content

Commit

Permalink
fix bug in config redaction (#233)
Browse files Browse the repository at this point in the history
fix bump in config redaction
  • Loading branch information
sfowl authored Oct 30, 2024
1 parent edf666b commit edee2e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rapidast.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ def dump_redacted_config(config_file_location: str, destination_dir: str) -> boo

logging.info(f"Redacting sensitive information from configuration {config_file_location}")
for key in config.keys():
if not isinstance(config[key], dict):
continue
if config[key].get("authentication") and config[key]["authentication"].get("parameters"):
for param in config[key]["authentication"]["parameters"]:
config[key]["authentication"]["parameters"][param] = "*****"
Expand Down

0 comments on commit edee2e9

Please sign in to comment.