Repository navigation
fix: validate Google service-account token URI - #11
Merged
Merged
Conversation
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
somethingwithproof
force-pushed
the
fix/gcp-token-uri-allowlist-10
branch
from
November 9, 2026 01:42
2d8fcbd to
8657333
Compare
|
TheWitness
approved these changes
Nov 11, 2026
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.



Fixes #10
Validate the GCP service-account
token_uribefore signing or sending the JWT. Accept only Google's current and legacy HTTPS OAuth token endpoints. Reject malformed, non-string, or otherwise unsupported values.Add offline provider tests for the default, current, and legacy endpoints and invalid inputs. Include the GCP driver in Clover reporting and make the POT check include nested plugin PHP source.
Validation: 116 Pest tests (1003 assertions), 100% changed-line coverage (13/13), PHP lint, manifest, gettext catalog, and POT checks pass locally. SonarCloud passes. In PHP 8.2, 8.3, and 8.4 CI, install, tests, coverage, and poller steps pass; the final log scan fails on Cacti RRD shared-ownership warnings from generated core files. Local PHP 8.4 lacks LDAP, so the temporary test vendor copy bypassed only Composer's LDAP platform guard.