Skip to content

rgw/auth/s3: validate x-amz-content-sha256 for empty payloads#55250

Merged
cbodley merged 1 commit intoceph:mainfrom
cbodley:wip-64084
Feb 11, 2024
Merged

rgw/auth/s3: validate x-amz-content-sha256 for empty payloads#55250
cbodley merged 1 commit intoceph:mainfrom
cbodley:wip-64084

Conversation

@cbodley
Copy link
Copy Markdown
Contributor

@cbodley cbodley commented Jan 19, 2024

when is_v4_payload_empty(), we return a null completer so never try to validate the x-amz-content-sha256 for signed payloads. add this checksum comparison to get_auth_data_v4() before we create the completer

Fixes: https://tracker.ceph.com/issues/64084

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows
  • jenkins test rook e2e

when is_v4_payload_empty(), we return a null completer so never try to
validate the x-amz-content-sha256 for signed payloads. add this
checksum comparison to get_auth_data_v4() before we create the completer

Signed-off-by: Casey Bodley <cbodley@redhat.com>
@github-actions github-actions bot added the rgw label Jan 19, 2024
@cbodley cbodley marked this pull request as ready for review January 23, 2024 17:48
@cbodley cbodley requested a review from a team as a code owner January 23, 2024 17:48
@climb-mountain123
Copy link
Copy Markdown

when I use the shell script to create bucket with the header of x_amz_content_sha256, a error that is ERR_AMZ_CONTENT_SHA256_MISMATCH occurs.

@climb-mountain123
Copy link
Copy Markdown

Sorry, this was a mistake caused by my negligence.

@cbodley
Copy link
Copy Markdown
Contributor Author

cbodley commented Feb 5, 2024

@climb-mountain123 thanks for testing!

@cbodley
Copy link
Copy Markdown
Contributor Author

cbodley commented Feb 11, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants