rajesh created HDDS-17928:
-----------------------------

             Summary: S3 Gateway audit parameters include presigned URL 
authentication query parameters
                 Key: HDDS-17928
                 URL: https://issues.apache.org/jira/browse/HDDS-17928
             Project: Apache Ozone
          Issue Type: Bug
          Components: s3gateway
            Reporter: rajesh
            Assignee: rajesh


{{AuditUtils.getAuditParameters}} adds every path and query parameter of an S3 
request to the audit parameters. For a presigned (query-authenticated) request 
this includes the authentication parameters {{X-Amz-Signature}}, 
{{X-Amz-Credential}} and {{X-Amz-Security-Token}} (and {{Signature}} / 
{{AWSAccessKeyId}} for SigV2), so they are written to the S3 Gateway audit log 
in clear text, for both the {{AUTH}} failure entry and the operation entry (for 
example {{GET_BUCKET}}).

These values are credentials and are not needed for auditing: the caller is 
already recorded in the {{user}} field. With HDDS-17593 the audit parameters 
are also added to the current tracing span, so the same values would reach the 
trace collector.

Proposed fix: leave the S3 authentication query parameters out of the audit 
parameters in {{AuditUtils.getAuditParameters}}, so neither the audit log nor 
spans contain them, and add a test with a presigned request asserting that the 
signature, credential and session token are not present.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to