Repository navigation
Description
Background
#5328 (PR #5345) wired the OBO external-auth type through the operator dispatch sites and the MCPExternalAuthConfig reconciler, surfacing Valid=False / Reason=EnterpriseRequired on the MCPExternalAuthConfig itself in upstream-only builds.
The original AC for #5328 also called for the consumer CRDs (MCPServer, MCPRemoteProxy, VirtualMCPServer) to surface a parallel Valid=False / EnterpriseRequired condition. That parity does not exist in the codebase today — a grep of cmd/thv-operator/controllers/ confirms only one site sets the ConditionTypeExternalAuthConfigValidated condition (for the multi-upstream rejection), not as a general propagation from MCPExternalAuthConfig.Status. PR #5345's tests verify the dispatch error path, not the parallel-condition propagation.
Per .claude/rules/operator.md's Status Condition Parity rule ("a gap means one type silently accepts invalid config that the other rejects"), this remains a real parity gap. It was deferred from #5345 as out-of-scope cross-cutting work.
Why this matters now
#5329 (CRD enum admission) is what makes obo reachable in production. Before #5329 lands, an OBO-typed MCPExternalAuthConfig referenced from a consumer CR fails the consumer's reconcile silently (the dispatch error propagates up the runconfig-build error path but no Valid=False/EnterpriseRequired condition surfaces on the consumer's own Status.Conditions).
Acceptance criteria
- When an
MCPServerreferences anMCPExternalAuthConfigwhoseValidcondition isFalse/EnterpriseRequired, theMCPServer.Status.Conditionssurfaces a parallelValid=False/Reason=EnterpriseRequiredcondition (or equivalent — confirm the reason taxonomy with the operator-rules owner). - Same for
MCPRemoteProxy. - Same for
VirtualMCPServer. - Integration tests under
cmd/thv-operator/test-integration/mcp-external-auth/verify the propagation end-to-end against envtest, with CRD-enum bypass per Wire OBO dispatch arms and reconciler branch; add integration tests #5328's documented strategy. - Must merge before Admit obo in MCPExternalAuthConfig CRD enum and regenerate manifests #5329, so production users see the failure on the consumer CR they applied (not buried in the referenced
MCPExternalAuthConfig).
References
- PR Wire OBO dispatch arms and reconciler branch #5345 — the dispatch-wiring work that exposed this gap (reviewer F1)
- Wire OBO dispatch arms and reconciler branch; add integration tests #5328 — the issue PR Wire OBO dispatch arms and reconciler branch #5345 closed; AC4 is the parallel-condition criterion
- Admit obo in MCPExternalAuthConfig CRD enum and regenerate manifests #5329 — CRD enum admission, downstream of this
.claude/rules/operator.mdStatus Condition Parity section
Activity
oboexternal auth type and function-pointer override hooks #5325Consolidate mirror helpers; tighten error+test contract
Mirror MCPExternalAuthConfig Valid=False onto consumer CR conditions
Consolidate mirror helpers; tighten error+test contract
Mirror MCPExternalAuthConfig Valid=False onto consumer CR conditions (#…