Skip to content

Update operator architecture docs for authServerRef#4780

Open
tgrunnagle wants to merge 2 commits intomainfrom
issue_4642_authServerRef-docs
Open

Update operator architecture docs for authServerRef#4780
tgrunnagle wants to merge 2 commits intomainfrom
issue_4642_authServerRef-docs

Conversation

@tgrunnagle
Copy link
Copy Markdown
Contributor

Summary

RFC-0050 introduced authServerRef as a dedicated field for configuring the embedded OAuth 2.0/OIDC authorization server (incoming auth), separating it from externalAuthConfigRef (outgoing auth). After the CRD types and controller logic landed in #4640, the operator architecture documentation needed to reflect this new field, its relationship to existing auth references, and the combined configuration pattern. This PR updates docs/arch/09-operator-architecture.md to document these changes.

Closes #4642

Type of change

  • Documentation

Test plan

  • Manual testing (describe below)

Verified that the Mermaid diagram renders correctly with the new authServerRef edges. Confirmed all cross-references and links remain intact. No code changes, so no automated tests apply.

Changes

File Change
docs/arch/09-operator-architecture.md Document authServerRef across all relevant CRD sections

Does this introduce a user-facing change?

No. This is a documentation-only change that describes existing functionality added in #4640.

Special notes for reviewers

  • The Mermaid diagram now includes authServerRef edges from both MCPServer and MCPRemoteProxy to MCPExternalAuthConfig, alongside the existing externalAuthConfigRef edges.
  • The MCPRemoteProxy section includes a YAML snippet demonstrating the combined auth pattern (embedded auth server + AWS STS on the same resource).
  • A missing telemetryConfigRef edge for MCPRemoteProxy was also added to the Mermaid diagram and key fields list, keeping the documentation consistent with the CRD types.
  • CRD API reference regeneration (task crdref-gen) is not included in this PR as it depends on changes from Add authServerRef CRD types, controller logic, and unit tests #4640 being present in the operator directory; it can be regenerated separately once the full dependency chain is merged.

Generated with Claude Code

@github-actions github-actions bot added the size/XS Extra small PR: < 100 lines changed label Apr 13, 2026
@tgrunnagle tgrunnagle marked this pull request as ready for review April 13, 2026 15:05
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.27%. Comparing base (26aab50) to head (65ae124).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4780      +/-   ##
==========================================
+ Coverage   69.20%   69.27%   +0.06%     
==========================================
  Files         533      533              
  Lines       55258    55258              
==========================================
+ Hits        38244    38278      +34     
+ Misses      14069    14038      -31     
+ Partials     2945     2942       -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.

Comment thread docs/arch/09-operator-architecture.md
Comment thread docs/arch/09-operator-architecture.md
Comment thread docs/arch/09-operator-architecture.md
jhrozek
jhrozek previously approved these changes Apr 13, 2026
Copy link
Copy Markdown
Contributor

@jhrozek jhrozek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Documentation changes verified against CRD type definitions and controller code. All claims are factually accurate — authServerRef fields, status hashes, conflict validation, Mermaid diagrams, and the YAML example all match the implementation.

@tgrunnagle tgrunnagle force-pushed the issue_4642_authServerRef-docs branch from e2a20a5 to 1ada628 Compare April 14, 2026 14:27
@github-actions github-actions bot added size/XS Extra small PR: < 100 lines changed and removed size/XS Extra small PR: < 100 lines changed labels Apr 14, 2026
@tgrunnagle tgrunnagle requested a review from jhrozek April 14, 2026 15:43
jhrozek
jhrozek previously approved these changes Apr 14, 2026
Copy link
Copy Markdown
Contributor

@jhrozek jhrozek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the CI failures are unrelated

@tgrunnagle tgrunnagle force-pushed the issue_4642_authServerRef-docs branch from 1ada628 to 8139ff2 Compare April 15, 2026 17:53
@github-actions github-actions bot added size/XS Extra small PR: < 100 lines changed and removed size/XS Extra small PR: < 100 lines changed labels Apr 15, 2026
jhrozek
jhrozek previously approved these changes Apr 15, 2026
tgrunnagle and others added 2 commits April 16, 2026 09:11
Document the new authServerRef field on MCPServer and MCPRemoteProxy
in docs/arch/09-operator-architecture.md:

- Add authServerRef to CRD relationships Mermaid diagram
- Document authServerRef as the dedicated incoming auth reference
- Explain dual-reference paths on MCPExternalAuthConfig
- Add combined auth pattern YAML example on MCPRemoteProxy
- Document conflict detection and backward compatibility
- Verify CRD API reference docs are up to date

Implements #4642

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Fix issues found during code review of #4642 documentation:
- HIGH: Fix remoteURL to remoteUrl in MCPRemoteProxy YAML example
  to match actual JSON tag (per camelCase rename in 992f2e4)
- MEDIUM: Replace non-standard Mermaid -..-> arrow syntax with
  standard -.-> for authServerRef edges
- MEDIUM: Add missing telemetryConfigRef to MCPRemoteProxy key
  fields list, Mermaid diagram, and Referenced by section

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@tgrunnagle tgrunnagle force-pushed the issue_4642_authServerRef-docs branch from 8139ff2 to 65ae124 Compare April 16, 2026 16:12
@github-actions github-actions bot added size/XS Extra small PR: < 100 lines changed and removed size/XS Extra small PR: < 100 lines changed labels Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Extra small PR: < 100 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update operator architecture documentation for authServerRef

2 participants