Filter sensitive information from S3 error messages
Since you can now pass sessionvars to S3 clients, when there is an issue, it can print out the command line that was passed to the S3 subprocesses and that includes the --sessionvars values which can include things like secret_key and token. We should filter out those values before printing if possible.
Hi @romain-intel, is this still open for contribution? I'd like to work on it.
The S3 client debug output still prints the command line containing --s3sessionvars. Would redacting the sensitive values from debug output and error messages, while leaving the actual command unchanged, be the right scope? I'd add regression tests to check that session secrets aren't printed.