diff options
author | Jake Hunsaker <jhunsake@redhat.com> | 2020-08-26 11:53:22 -0400 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2020-09-02 10:27:24 -0400 |
commit | ef4bccbb4a3d576ae181e69aab1f23ccb914f7e0 (patch) | |
tree | 0b99065f9221a4ecd7149528b7e8c41d0ecc3c1a /man/en | |
parent | f51c9b7e3a1d5dfb4b6ecc842134b0775080a3e6 (diff) | |
download | sos-ef4bccbb4a3d576ae181e69aab1f23ccb914f7e0.tar.gz |
[Policy] Allow upload username/password provided via environment vars
The username and password used by `Policy` when `--upload` is used may
now be read via environment variables to avoid sensitive information
from being included in `ps` output if they were provided via
command-line options instead of the interactive prompts.
Upload username may now be provided via the SOSUPLOADUSER variable.
Upload password may now be provided via the SOSUPLOADPASSWORD variable.
Resolves: #2216
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
Diffstat (limited to 'man/en')
-rw-r--r-- | man/en/sos-report.1 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/man/en/sos-report.1 b/man/en/sos-report.1 index f4de8083..0a571d18 100644 --- a/man/en/sos-report.1 +++ b/man/en/sos-report.1 @@ -299,6 +299,12 @@ If a vendor does not provide a default user for uploading, specify the username If this option is unused and upload is request, and a vendor default is not set, you will be prompted for one. If --batch is used and this option is omitted, no username will be collected and thus uploads will fail if no vendor default is set. + +You also have the option of providing this value via the SOSUPLOADUSER environment +variable. If this variable is set, then no username prompt will occur and --batch +may be used provided all other required values (case number, upload password) +are provided. + .TP .B \-\-upload-pass PASS Specify the password to use for authentication with the destination server. @@ -312,6 +318,11 @@ Note that this will result in the plaintext string appearing in `ps` output that be collected by sos and be in the archive. If a password must be provided by you for uploading, it is strongly recommended to not use --batch and enter the password when prompted rather than using this option. + +You also have the option of providing this value via the SOSUPLOADPASSWORD environment +variable. If this variable is set, then no password prompt will occur and --batch may +be used provided all other required values (case number, upload user) are provided. + .TP .B \--upload-directory DIR Specify a directory to upload to, if one is not specified by a vendor default location |