From 10ee6ebf016fa00c9eb8cd15a09832982b08fe48 Mon Sep 17 00:00:00 2001 From: Artem Goncharov Date: Tue, 16 Nov 2021 16:38:27 +0100 Subject: [PATCH] Add no_log to the log uploading module parameters Use no_log parameter for potentially sensitive log uploading modules Change-Id: I6264f1b028db0e4f1f74ae557847c146c00295da --- roles/upload-logs-base/library/zuul_azure_upload.py | 2 +- roles/upload-logs-base/library/zuul_swift_upload.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/upload-logs-base/library/zuul_azure_upload.py b/roles/upload-logs-base/library/zuul_azure_upload.py index 61defaf24..05b61086b 100644 --- a/roles/upload-logs-base/library/zuul_azure_upload.py +++ b/roles/upload-logs-base/library/zuul_azure_upload.py @@ -233,7 +233,7 @@ def ansible_main(): public=dict(type='bool', default=True), footer=dict(type='str'), prefix=dict(type='str'), - connection_string=dict(type='str'), + connection_string=dict(type='str', no_log=True), ) ) diff --git a/roles/upload-logs-base/library/zuul_swift_upload.py b/roles/upload-logs-base/library/zuul_swift_upload.py index bfa34bcaa..81a35fd90 100755 --- a/roles/upload-logs-base/library/zuul_swift_upload.py +++ b/roles/upload-logs-base/library/zuul_swift_upload.py @@ -294,7 +294,7 @@ def run(cloud, container, files, def ansible_main(): module = AnsibleModule( argument_spec=dict( - cloud=dict(required=True, type='raw'), + cloud=dict(required=True, type='raw', no_log=True), container=dict(required=True, type='str'), files=dict(required=True, type='list'), partition=dict(type='bool', default=False),