Repository navigation
Labels
apiItems related to the APIbreaking-changecontrollerenhancementNew feature or requestkubernetesItems related to Kubernetesoperatorsize/XLExtra large PR: 1000+ lines changed
Description
As a platform engineer deploying MCP servers,
I want MCPServer, MCPRemoteProxy, and VirtualMCPServer to reference shared MCPOIDCConfig and MCPTelemetryConfig resources,
so that workloads use centralized configuration without duplication.
Size: XL
Dependencies: STORY-02 (MCPOIDCConfig), STORY-03 (MCPTelemetryConfig)
Labels: operator, api, controller
Context
With MCPOIDCConfig and MCPTelemetryConfig CRDs available (STORY-02, STORY-03), workload CRDs need to be updated to reference them. Each workload can either reference a shared config CRD or specify inline configuration. Workload controllers must resolve references, merge per-server overrides, and fail closed if a referenced config is missing or not ready.
Acceptance Criteria
- MCPServer spec accepts
oidcConfigRefpointing to an MCPOIDCConfig with per-serveraudienceandscopesoverrides - MCPServer spec accepts
telemetryConfigRefpointing to an MCPTelemetryConfig with per-serverserviceName - Inline config remains supported — CEL enforces
refandinlineare mutually exclusive - MCPRemoteProxy spec accepts
oidcConfigRefwith same pattern - VirtualMCPServer spec accepts
oidcConfigReffor incoming auth - MCPServer controller resolves config refs, merges per-server overrides, and passes resolved config to workload
- MCPRemoteProxy controller resolves OIDC config refs
- VirtualMCPServer controller resolves OIDC config ref
- All workload controllers fail closed: if a referenced config CRD does not exist or is not
Ready, the workload entersFailedphase with a descriptive condition - Config hash tracked in workload status for change detection
- Unit tests cover ref resolution, inline fallback, fail-closed behavior, and override merging
- Integration tests in
cmd/thv-operator/test-integration/cover cross-CRD reference resolution for all workload types - Architecture documentation (
docs/arch/09-operator-architecture.md) updated with new reference patterns - Helm chart RBAC examples updated for platform team / app team separation
- Example manifests and migration guide provided
Deferred / tracked separately
- MCPRemoteProxy + VirtualMCPServer
telemetryConfigRef: Deferred — only MCPServer has telemetry config ref support currently - Default audience generation (
{kind}/{namespace}/{name}): Deferred for later discussion - Status condition persistence bug: Tracked in Status condition not persisted when OIDCConfigHash unchanged after transient error #4511
Sub-issues
Collapse Sub-issuesSub-issues
Loading 5 sub-issues
Metadata
Metadata
Assignees
Labels
apiItems related to the APIbreaking-changecontrollerenhancementNew feature or requestkubernetesItems related to Kubernetesoperatorsize/XLExtra large PR: 1000+ lines changed
Activity
Add MCPOIDCConfig CRD types and generated manifests
Add MCPOIDCConfig controller for lifecycle management
Add MCPOIDCConfig CRD types and MCPServer reference field (#4461)
Add MCPOIDCConfig controller for lifecycle management (#4462)
Wire MCPOIDCConfig into MCPServer controller
Wire MCPOIDCConfig into MCPServer controller (stacklok#4481)
Wire MCPOIDCConfig into VirtualMCPServer controller
Wire MCPOIDCConfig into VirtualMCPServer controller
Wire MCPOIDCConfig into VirtualMCPServer controller
Wire MCPOIDCConfig into VirtualMCPServer controller
Wire MCPOIDCConfig into VirtualMCPServer controller (stacklok#4493)