Repository navigation
feat(google): add GCS V4 signing options and trusted endpoints - #1149
Merged
Merged
Conversation
PsiACE
approved these changes
Nov 30, 2026
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GCS V4 URL signing excludes
Authorizationand supports additional case-insensitive header exclusions. The signature always coversHost, 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_uristays metadata until the caller explicitly selects it. With a custom IAM base URI, the signer still builds thesignBlobresource 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.