Skip to content

fix: improve SigV4 diagnostic logging - #7587

Open
jencymaryjoseph wants to merge 2 commits into
masterfrom
jencyjos/log-canonical-request-hash
Open

jencymaryjoseph wants to merge 2 commits into
masterfrom
jencyjos/log-canonical-request-hash

Conversation

@jencymaryjoseph

@jencymaryjoseph jencymaryjoseph commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Motivation and Context

The current and legacy SigV4 signers log the full canonical request at DEBUG, which can include request details that should not be retained in application logs.

Modifications

Updated both signer implementations to log the existing canonical-request hash computed during signing.

Testing

Added signing and presigning regression tests for both current and legacy signers, verifying that the canonical request hash is logged and signing output remains unchanged.

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance improvement (non-breaking change which improves latency, throughput, or resource use)
  • Deprecation (marks existing functionality as deprecated)
  • Removal (removes previously deprecated functionality)
  • Documentation (changes to documentation only)
  • Other (tests, build, CI, or refactoring with no customer-visible change)

Checklist

  • I have read the CONTRIBUTING document
  • Local run of mvn install succeeds
  • My code follows the code style of this project
  • My change requires a change to the Javadoc documentation
  • I have updated the Javadoc documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed
  • I have added a changelog entry. Adding a new entry must be accomplished by running the scripts/new-change script and following the instructions. Commit the new file created by the script in .changes/next-release with your changes.
  • My change is to implement 1.11 parity feature and I have updated LaunchChangelog

AI tools

  • I wrote this pull request description myself, not with an AI tool
  • I have reviewed all changes in this pull request myself, including any generated by AI tools

License

  • I confirm that this pull request can be released under the Apache 2 license

- Update diagnostic logging in the current and legacy SigV4 signers.
- Reuse the canonical request hash already computed during signing.
- Preserve signed request and signature behavior.
- Add regression tests
@jencymaryjoseph
jencymaryjoseph requested a review from a team as a code owner November 25, 2026 19:13
Updated SigV4 diagnostic logging to provide more specific information.

This branch has not been deployed

No deployments
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.

2 participants