Repository navigation
Closed
4 / 44 of 4 issues completedLabels
Description
Description
Phase 2 of the DCR story (#4976). Wire RFC 7591 Dynamic Client Registration into pkg/authserver/ upstream initialization so an OAuth2 upstream can be configured without a pre-issued client_id.
This issue has been broken into four sub-issues, each targeting a ≤1000 line PR, with CRD changes deferred to the last PR so the operator API evolves only after the authserver plumbing is fully merged and stable.
Sub-Issues
- Authserver DCR: discovery function and config structs (Phase 2, Steps 2a/2b/2e) #5037 — Discovery function and config structs (Steps 2a/2b/2e):
FetchAuthorizationServerMetadata,DCRUpstreamConfig,OAuth2Config.Validate()XOR check. Purely additive, no behavior change, no CRD changes. - Authserver DCR: credential store and resolver (Phase 2, Steps 2f/2c) #5038 — Credential store and resolver (Steps 2f/2c):
DCRCredentialStoreinterface + in-memory implementation,resolveDCRCredentialswith full RFC 7591/7592/8414 flow. - Authserver DCR: wire resolver into authserver and add structured logs (Phase 2, Steps 2d/2g) #5039 — Wiring, observability, and integration tests (Steps 2d/2g): thread DCR resolver into
buildUpstreamConfigs, three structured-log upgrades, end-to-end integration tests. - Authserver DCR: expose DCR config in operator CRD (Phase 2, CRD surface) #5040 — Operator CRD surface (CRD changes last): expose
DCRConfigon theOAuth2UpstreamConfigCRD type, conversion from CRD → authserver config, regenerate manifests.
Dependency Chain
#4977 (Phase 1 rename, pkg/oauthproto exists)
└─► #5037 (discovery fn + authserver config structs)
└─► #5038 (credential store + resolver)
└─► #5039 (wiring + logs + integration tests)
└─► #5040 (operator CRD surface — CRD changes last)
└─► #4979 (Phase 3 persistent backends)
Out of Scope
- Persistent
DCRCredentialStorebackends (memory + Redis) — Phase 3, Persistent DCRCredentialStore backends (memory + Redis) #4979. - Authserver OTEL metrics + tracing.
- Automatic re-register on
invalid_clientat the upstream token endpoint. - CLI persistence of
registration_client_uriinpkg/auth/remote/config.go. - RFC 8707 resource-indicator confirmation for the existing upstream flow.
- RFC 7592
client_secretrotation via PUT. - Provider-specific quirks (
login.microsoftonline.comresourceparam,mcp.zoho.comaccess_type). - Initial access token rotation / refresh.
- Any change to
CommonOAuthConfig.Validate(). - Any change to
pkg/authserver/server/handlers/dcr.gobeyond the single log-level upgrade at line 98.
References
- Parent story: Authserver-driven DCR for upstream OAuth 2.1 MCP servers #4976 — "Authserver-driven DCR for upstream OAuth 2.1 MCP servers".
- Upstream dependency: Rename pkg/oauth to pkg/oauthproto and relocate DCR primitives #4977 (Phase 1 rename must land first).
- Downstream consumer: Persistent DCRCredentialStore backends (memory + Redis) #4979 (Phase 3 persistent backends drop in behind the
DCRCredentialStoreinterface). .claude/rules/go-style.md— SPDX headers, copy-before-mutate, drain-response-body, write-durable-first, no-secrets-in-logs, constructor fail-loud validation..claude/rules/testing.md— testify overt.Fatal,t.Cleanupoverdefer, no Ginkgo in this area..claude/rules/pr-creation.md— 400-LOC / 10-file PR cap.CLAUDE.md— always usetask(nevergo test/golangci-lintdirectly).- RFC 7591 (Dynamic Client Registration); RFC 7592 (DCR Management Protocol); RFC 8414 (OAuth 2.0 Authorization Server Metadata); RFC 6749 §5.2 (
invalid_clienterror); RFC 8252 (loopback redirect URIs).
Sub-issues
Collapse Sub-issuesSub-issues
Loading 4 sub-issues
Activity
Rename pkg/oauth to pkg/oauthproto and move DCR primitives
Add authserver DCR discovery and config surface
Rename pkg/oauth to pkg/oauthproto and move DCR primitives
Rename pkg/oauth to pkg/oauthproto and move DCR primitives
Rename pkg/oauth to pkg/oauthproto and move DCR primitives (#5036)
Add authserver DCR discovery and config surface
Add authserver DCR discovery and config surface
Add authserver DCR discovery and config surface
Add authserver DCR discovery and config surface
Add authserver DCR discovery and config surface (#5041)