Skip to content

rgw/s3vectors: API should use SigV4 and not SigS3V4 - #68654

Closed
yuvalif wants to merge 1 commit into
ceph:wip-s3vectorfrom
yuvalif:wip-vector-sigv4
Closed

yuvalif wants to merge 1 commit into
ceph:wip-s3vectorfrom
yuvalif:wip-vector-sigv4

Conversation

@yuvalif

@yuvalif yuvalif commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@yuvalif
yuvalif requested review from cbodley and mmgaggle April 28, 2026 14:29
@yuvalif
yuvalif requested a review from a team as a code owner April 28, 2026 14:29
@yuvalif

yuvalif commented May 6, 2026

Copy link
Copy Markdown
Contributor Author

commit merged into: #66066

@yuvalif yuvalif closed this May 6, 2026
mmgaggle added a commit to mmgaggle/ceph that referenced this pull request May 12, 2026
…bypass)

Mirrors the s3vectors pattern from PR ceph#68654:

* Add 21 RGW_OP_S3FILES_* op-types covering the full v1 surface.
* Each per-op class now overrides get_type() with its specific
  enum (was RGW_OP_UNKNOWN previously).
* Add those op-types to is_non_s3_op() in rgw_auth_s3.cc so the
  AWS auth path uses the service-aware canonical-request hash
  rather than the S3-style fallback.
* In RGWRESTMgr_S3Files::get_handler, pre-read the request body
  for PUT/POST and set the `PayloadHash` arg to the SHA256 of
  the body (rgw::auth::s3::calc_v4_payload_hash). The auth
  engine consumes that arg when is_non_s3_op() returns true,
  matching what boto3 signs at service=s3files.
* The pre-read body is moved into RGWHandler_REST_S3Files via
  its constructor, then handed off to body-bearing ops
  (Create*/Put*/Update*/Tag*) via their own constructors.
  Bodies are no longer re-read inside init_processing — they
  come from the handler's stored bufferlist.
* Restore RGWHandler_REST_S3Files::authorize to the proper
  RGW_Auth_S3::authorize call path (was a temporary
  access-key-only bypass shipped earlier this session).

Verified at the unit level against the existing MemoryStore
tests; runs against vstart-RGW pending the next push.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Signed-off-by: Kyle Bader <[email protected]>
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.

2 participants