metaflow icon indicating copy to clipboard operation
metaflow copied to clipboard

Filter sensitive information from S3 error messages

Open romain-intel opened this issue 3 years ago • 1 comments

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.

romain-intel avatar Apr 14 '23 16:04 romain-intel

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.

ayushmishra-18 avatar Nov 18 '26 13:11 ayushmishra-18