Repository navigation
fix(auth): add ES256 length validation - #20949
Merged
Merged
Conversation
This PR mostly propagates similar length validation from googleapis/google-api-go-client#3668 into the corresponding package in google-cloud-go
shollyman
marked this pull request as ready for review
November 21, 2026 02:23
Contributor
There was a problem hiding this comment.
Code Review
This pull request adds a validation check to ensure that ES256 signatures have the correct length of exactly twice the es256KeySize before parsing, preventing potential out-of-bounds errors. Additionally, it introduces a new test function TestValidateES256Length to verify this validation logic and refactors createES256JWT to use FillBytes for cleaner signature generation. There are no review comments, and I have no feedback to provide.
AlexGhiondea
approved these changes
Nov 22, 2026
Merged
shollyman
pushed a commit
that referenced
this pull request
Nov 25, 2026
🤖 I have created a release *beep* *boop* --- <details><summary>auth: 0.24.5</summary> ## [0.24.5](auth/v0.24.4...auth/v0.24.5) (2026-11-25) ### Bug Fixes * **auth/credentials/downscope:** Update universe resolution ([#20967](#20967)) ([16e0475](16e0475)) * **auth:** Add ES256 length validation ([#20949](#20949)) ([35958cc](35958cc)) * **auth:** Improve directpath resolution ([#21004](#21004)) ([ceeb6a1](ceeb6a1)) </details> <details><summary>bigquery: 1.86.4</summary> ## [1.86.4](bigquery/v1.86.3...bigquery/v1.86.4) (2026-11-25) ### Bug Fixes * **bigquery/storage/managedwriter:** Address panic on client close ([#20932](#20932)) ([7a5e14f](7a5e14f)) </details> <details><summary>profiler: 0.7.2</summary> ## [0.7.2](profiler/v0.7.1...profiler/v0.7.2) (2026-11-25) ### Bug Fixes * **profiler:** Universe resolution improvements ([#20991](#20991)) ([5cec789](5cec789)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
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.
This PR propagates similar length validation from googleapis/google-api-go-client#3668 into the corresponding package in google-cloud-go.