Skip to content

fix: validate Google service-account token URI - #11

Merged
TheWitness merged 2 commits into
mainfrom
fix/gcp-token-uri-allowlist-10
Nov 11, 2026
Merged

TheWitness merged 2 commits into
mainfrom
fix/gcp-token-uri-allowlist-10

Conversation

@somethingwithproof

@somethingwithproof somethingwithproof commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Fixes #10

Validate the GCP service-account token_uri before 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.

Comment thread tests/Unit/GcpTokenUriTest.php Fixed
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
@somethingwithproof
somethingwithproof force-pushed the fix/gcp-token-uri-allowlist-10 branch from 2d8fcbd to 8657333 Compare November 9, 2026 01:42
@sonarqubecloud

sonarqubecloud Bot commented Nov 9, 2026

Copy link
Copy Markdown

@TheWitness
TheWitness merged commit ead8956 into main Nov 11, 2026
7 checks passed
@TheWitness
TheWitness deleted the fix/gcp-token-uri-allowlist-10 branch November 11, 2026 23:05
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.

Restrict Google service-account token exchanges to Google OAuth endpoints

3 participants