Skip to content

Conversation

wonwuakpa-msft
Copy link
Member

@wonwuakpa-msft wonwuakpa-msft commented Sep 4, 2025

Description

Type of Change

  • Bug fix
  • New feature
  • Documentation update required
  • Code quality improvement
  • Other (describe):

How Has This Been Tested?

  • Added a new test in TestLogSanitizer

Thank you for your contribution to AzCopy!

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds redaction of the x-amz-credential parameter from logs to prevent sensitive AWS credential information from being exposed in AzCopy logs.

  • Adds x-amz-credential constant and redaction logic in URL sanitization
  • Updates log sanitizer to include "credential" as a sensitive query parameter
  • Adds test case to verify AWS credential redaction functionality

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
common/extensions.go Adds constant for x-amz-credential and implements redaction logic in URL sanitization
common/logSanitizer.go Adds "credential" to the list of sensitive query string keys for log redaction
common/zt_logSanitizer_test.go Adds test case to verify x-amz-credential redaction works correctly

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Member

@gapra-msft gapra-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just address the Copilot comments, otherwise lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants