Skip to content

feat(google): add GCS V4 signing options and trusted endpoints - #1149

Merged
Xuanwo merged 3 commits into
mainfrom
xuanwo/gcs-signed-header-exclusions
Nov 30, 2026
Merged

Xuanwo merged 3 commits into
mainfrom
xuanwo/gcs-signed-header-exclusions

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Nov 30, 2026

Copy link
Copy Markdown
Member

GCS V4 URL signing excludes Authorization and supports additional case-insensitive header exclusions. The signature always covers Host, and the signer preserves the caller's wire headers. Callers can use a fixed time and apply a signed clock offset to the timestamp and credential scope.

The signer accepts trusted OAuth token URIs and IAM Credentials base URIs using the existing HTTP(S) validation. The selected OAuth URI sets the JWT audience and partitions cached tokens. A credential file's token_uri stays metadata until the caller explicitly selects it. With a custom IAM base URI, the signer still builds the signBlob resource path for the resolved account and checks OAuth token validity for the RPC.

Offline tests compare complete URLs and local RSA signatures against independently assembled canonical requests. Injected HTTP tests verify the request payloads and destinations, endpoint precedence, and request atomicity when signing fails.

Closes #1095.

Keep required extension headers signed and validate the adjusted query timestamp before remote signing. Use the dispatched OAuth URI serialization as the assertion audience.
Share GCS signing key selection and IAM signBlob between URLs and POST policies. Keep URL signing time and header validation separate from caller-supplied POST policy fields.
@Xuanwo
Xuanwo merged commit 0aecefd into main Nov 30, 2026
34 checks passed
@Xuanwo
Xuanwo deleted the xuanwo/gcs-signed-header-exclusions branch November 30, 2026 12:22
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.

feat(google): support excluded headers, configurable signing time/clock skew, and custom endpoints in RequestSigner

2 participants