* s3api: sign the virtual-hosted bucket in signature V2
Signature V2 signed only the request path, so a path-style signed or
presigned request replayed with a virtual-host Host header reached
another bucket. Prefix the bucket taken from the Host to the canonical
resource, as AWS does, and refuse a request routed to a different bucket.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* s3api: test signature V2 against virtual-host retargeting
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* s3api: match port-qualified virtual-host domains like the router
With -s3.domainName=s3.test:8333 the router matches the full host:port,
but bucketFromVirtualHost compared the port-stripped host and never found
the bucket, so the virtual-host checks did not apply.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>