Repository navigation
fix(mcp): accept google issuer without scheme - #38258
Conversation
|
Local Java test run: PASSED — details
Tests run locally
Broader coverage not executed by this focused run
Impacted, not run locally (2)
Commandsmvn -B package -pl openmetadata-mcp,openmetadata-service -am -Dspring-boot.repackage.skip=true -Dtest=IdTokenValidatorTest,ProviderTokenValidatorTest -Dsurefire.failIfNoSpecifiedTests=false |
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
Code Review ✅ Approved 🔴 High riskMCP issuer validation now accepts Google’s schemeless issuer, altering the authentication trust boundary; a validation mistake could admit tokens from outside the configured provider. Accepts Google ID tokens whose issuer is VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Describe your changes:
Fixes #38254
accounts.google.com. Google documents that form next tohttps://accounts.google.com, and the UI login already accepts both.ProviderTokenValidator.isGoogleSchemelessIssuer), so there is one rule and not a copy. It applies only when the expected issuer is Google's; every other mismatch is still refused.Type of change:
High-level design:
N/A, small change.
Tests:
Use cases covered
https://.accounts.google.comis still refused when the configured provider is not Google.Unit tests
IdTokenValidatorTest(googleIssuerWithoutASchemeIsAccepted,googleIssuerWithoutASchemeIsRefusedForAnotherProvider).Backend integration tests
GoogleSsoSignInUIITandGoogleSsoBootstrapUIIT, which run only in the nightly.Local Java test run: PASSED
6e5d3c30ac55(baseorigin/main)--scope full).Manual testing performed
Checklist:
Fixes #<issue-number>above.REVIEW.mdand fixed every 🔴 finding, or answered it on the line below.6e5d3c30ac5. No 🔴. Not fixed here: multi-tenant Entra ID likely fails the same check, filed as MCP sign-in may fail for multi-tenant Entra ID #38256.

Confidence Score: 5/5
The PR appears safe to merge; the exception stays limited to Google's exact issuer alias.Summary
MCP sign-in now accepts Google's issuer without
https://, using the same helper as UI login.Reviews (2) · Last reviewed commit: "Merge branch 'main' into mcp-google-issu..." · Reviewed by Greptile