Closed mskanth972 closed 6 months ago
/test pull-aws-efs-csi-driver-unit
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: mskanth972, seanzatzdev-amazon
The full list of commands accepted by this bot can be found here.
The pull request process is described here
Is this a bug fix or adding new feature? Security enhancement
What is this PR about? / Why do we need it? This PR addresses the potential risk of sensitive information being inadvertently logged, despite the EFS CSI Driver not supporting Token Requests. The primary change involves introducing a new utility function called SanitizeRequest. This function accepts a request object and returns a duplicate with the "Secrets" field emptied. It achieves this by creating a new instance of the request object's type, copying all fields from the original request to the new instance, and resetting the "Secrets" field to an empty map, if present.
What testing is done?