mirror of
https://github.com/YuzuZensai/Zen-Sync.git
synced 2026-09-13 10:49:13 +00:00
Redact AWS credentials in CLI config output (#1)
* Initial plan * fix: redact aws credentials in configure output --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
parent
f593a0c6a4
commit
cf96da7c9f
@@ -130,7 +130,9 @@ def handle_configure(args, config):
|
||||
config.save_config()
|
||||
|
||||
display_config = json.loads(json.dumps(config.config))
|
||||
if display_config['aws'].get('secret_access_key'):
|
||||
if 'access_key_id' in display_config['aws']:
|
||||
display_config['aws']['access_key_id'] = "***HIDDEN***"
|
||||
if 'secret_access_key' in display_config['aws']:
|
||||
display_config['aws']['secret_access_key'] = "***HIDDEN***"
|
||||
|
||||
print("\nConfiguration updated:")
|
||||
|
||||
Reference in New Issue
Block a user