Skip to content

Harden remote MCP connector authentication - #44

Merged
NotY215 merged 7 commits into
mainfrom
phase8-connector-hardening
Nov 28, 2026
Merged

NotY215 merged 7 commits into
mainfrom
phase8-connector-hardening

Conversation

@NotY215

@NotY215 NotY215 commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Harden external OIDC JWT validation: reject malformed temporal claims and unsafe JOSE header features, enforce signing-key usage and RSA-2048 minimums, validate audience/scope/profile/tool claims, and reject duplicate JWKS key IDs.
  • Refresh JWKS once when a token references a newly rotated signing key.
  • Strictly validate configured remote host allowlists and exact HTTPS browser origins; reject wildcard hosts and path-bearing origins.
  • Expand deterministic tests for invalid claims, unsuitable keys, key rotation, and remote host/CORS configuration.
  • Update the remote deployment guide with the stronger validation boundaries.

Validation

  • Latest head: TypeScript typecheck, build, and full Node test suite passed.
  • Python safety tests and Windows compatibility passed.
  • CodeQL JavaScript/TypeScript and Python analyses passed on the preceding implementation commit; the only subsequent change was a test-file line-break correction, and the TypeScript suite passed again on the latest head.

Scope and boundaries

This remains an OAuth/OIDC resource server. Authorization, login, consent, user lifecycle, and token issuance remain responsibilities of an external identity provider. No secrets or live identity-provider credentials are included. The PR remains draft and is not merged.

@NotY215
NotY215 marked this pull request as ready for review November 28, 2026 04:26
@NotY215
NotY215 merged commit be9616a into main Nov 28, 2026
9 checks passed
@NotY215
NotY215 deleted the phase8-connector-hardening branch November 28, 2026 04:26
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.

1 participant