Skip to content

Add AWS STS auth type to MCPExternalAuthConfig CRD#3816

Merged
jhrozek merged 1 commit intomainfrom
aws_sts-pr-7-crds-v2
Feb 13, 2026
Merged

Add AWS STS auth type to MCPExternalAuthConfig CRD#3816
jhrozek merged 1 commit intomainfrom
aws_sts-pr-7-crds-v2

Conversation

@jhrozek
Copy link
Contributor

@jhrozek jhrozek commented Feb 13, 2026

Extends the MCPExternalAuthConfig CRD with a new 'awsSts' authentication type that enables AWS STS token exchange with SigV4 request signing for MCP servers.

The AWSStsConfig supports:

  • Region and service configuration for SigV4 signing
  • Default IAM role ARN for token exchange
  • Role claim-based mapping for multi-tenant scenarios
  • Session name claim for CloudTrail correlation
  • Configurable session duration

This allows vMCP to authenticate with AWS services (like AWS MCP Server) by exchanging incoming OIDC tokens for temporary AWS credentials using STS AssumeRoleWithWebIdentity.

Fixes: #3570

@github-actions github-actions bot added the size/L Large PR: 600-999 lines changed label Feb 13, 2026
@codecov
Copy link

codecov bot commented Feb 13, 2026

Codecov Report

❌ Patch coverage is 47.05882% with 36 lines in your changes missing coverage. Please review.
✅ Project coverage is 66.79%. Comparing base (3fed749) to head (a999985).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...d/thv-operator/pkg/controllerutil/tokenexchange.go 0.00% 29 Missing ⚠️
...ator/api/v1alpha1/mcpexternalauthconfig_webhook.go 91.42% 1 Missing and 2 partials ⚠️
...perator/controllers/virtualmcpserver_deployment.go 0.00% 2 Missing ⚠️
pkg/auth/awssts/middleware.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3816      +/-   ##
==========================================
- Coverage   66.81%   66.79%   -0.02%     
==========================================
  Files         439      439              
  Lines       43437    43503      +66     
==========================================
+ Hits        29021    29058      +37     
- Misses      12168    12194      +26     
- Partials     2248     2251       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jhrozek jhrozek force-pushed the aws_sts-pr-7-crds-v2 branch from edf3c02 to a3e053d Compare February 13, 2026 11:18
@github-actions github-actions bot added size/L Large PR: 600-999 lines changed and removed size/L Large PR: 600-999 lines changed labels Feb 13, 2026
Extends the MCPExternalAuthConfig CRD with a new 'awsSts' authentication type
that enables AWS STS token exchange with SigV4 request signing for MCP servers.

The AWSStsConfig supports:
- Region and service configuration for SigV4 signing
- Default IAM role ARN for token exchange
- Role claim-based mapping for multi-tenant scenarios
- Session name claim for CloudTrail correlation
- Configurable session duration

This allows vMCP to authenticate with AWS services (like AWS MCP Server) by
exchanging incoming OIDC tokens for temporary AWS credentials using STS
AssumeRoleWithWebIdentity.

Fixes: #3570
@jhrozek jhrozek force-pushed the aws_sts-pr-7-crds-v2 branch from a3e053d to a999985 Compare February 13, 2026 11:36
@github-actions github-actions bot added size/L Large PR: 600-999 lines changed and removed size/L Large PR: 600-999 lines changed labels Feb 13, 2026
@jhrozek jhrozek merged commit f1772c6 into main Feb 13, 2026
37 checks passed
@jhrozek jhrozek deleted the aws_sts-pr-7-crds-v2 branch February 13, 2026 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/L Large PR: 600-999 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AWS STS: Add MCPExternalAuthConfig CRD support

3 participants