Repository navigation
Conversation
Rework the opening and why-use sections of pkg/authserver/README.md around the common challenges in agentic and MCP authorization so prospective adopters can quickly evaluate why it helps and what it replaces, while keeping a concise Capabilities at a glance summary and trimming low-level package details. Co-authored-by: Mecatl <[email protected]>
Tighten pkg/authserver/README.md after the agentic-auth rework so it leads clearly with the AI agent and MCP problem statement while staying concise: - Lead the opening paragraph with the agentic authorization framing, clarify the Fosite/production-server sentence, and position general-purpose Go embedding positively. - Remove duplicate prose across the opening, architecture subsections, and standards tables without dropping substantive details. Co-authored-by: Mecatl <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7316 +/- ##
=======================================
Coverage 82.14% 82.15%
=======================================
Files 930 930
Lines 94288 94288
=======================================
+ Hits 77455 77462 +7
+ Misses 16828 16821 -7
Partials 5 5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
rdimitrov
reviewed
Nov 25, 2026
rdimitrov
left a comment
Member
There was a problem hiding this comment.
The challenge-first framing is a good rewrite of the README, but several new claims don't match the code and docs/arch, so I'd fix them before merge.
Design: a README is the right place for this and nothing links to the removed section anchors, so the restructure is safe. The risk is that a pitch-style doc now states things as defaults that are opt-in, Go-embedder-only or single-replica, and drops caveats the old README carried.
Findings:
README.md(Upstream identity providers, consent paragraph): "pre-registered clients only, not dynamically registered ones" is wrong.internal/consentpolicy/consentpolicy.goIsEligibleClientonly requires a confidential client with thecoderesponse type and a redirect URI, anddocs/arch/11-auth-server-storage.md:350-352says allowlisted DCR-issued clients can qualify. Say "confidential clients only; URL-shaped (CIMD) IDs excluded", and noteConsentExemptClientIDshas no config tag, so it is Go/runner-option only.README.md:37-38: "vMCP builds on these hooks to enforce single-call, single-use MCP tool tokens" overclaims. Enforcement lives inpkg/vmcp/callbinding, nothing registers themcp_tool_calldetails type by default (docs/arch/17), ID-JAG still refuses the parameter, and the default single-use record is in-memory and covers one replica only (callbinding/binding.go:47). Say vMCP can enforce it when an embedder registers the type and mints such tokens.README.md:34-36: "per-client lifespans down to 2 seconds" reads as applying to RAR tokens generally.config.go:410-416saysaccess_token_lifespanapplies only to tokens redeemed from an ID-JAG (2s to 24h,server/provider.go:51).- Challenge 6: "discovery, CIMD, DCR, PKCE, and consent out of the box" overclaims. CIMD is opt-in (
CIMDRunConfig.Enabled) and the README's own standards table says "Opt-in, partial draft". README.md:13-16: the old caveat thatAllowedAudiencesis required for MCP compliance is gone, but startup still fails without it (config.go:2446), and the generic-OAuth-server pitch will mislead. Restore that sentence and the list of shared packages the server imports.- Dropped accurate content: Redis is needed for multi-replica deployments and restart continuity, and key/HMAC rotation keeps tokens valid across restarts and scaling. The storage section now only calls Memory "single-instance". Also restore the "Go embedders only" qualifiers for
sub_id(SubjectIdentifierAudiencesis not a RunConfig field,config.go:3634) andActorTokenValidator.
🤖 Reviewed with Claude Code
rdimitrov
approved these changes
Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Review feedback on "Add README for pkg/authserver" (#7301) asked for the README to make it obvious why someone building agent-aware applications or deployments should use the auth server: why it helps, how it helps, and what it saves. The merged README listed features by mechanism, so a reader had to work out which problem each one solves.
pkg/authserveranswers what may it do, and for whom? General-purpose embedding is still mentioned, second.pkg/authserverhelps", six problem-first entries, each ending with what you would otherwise have to build:act,client_id, SPIFFEact.sub)private_key_jwt)Type of change
Test plan
Checked the claims in the new section against the code on this branch: 1h default access token lifespan, the
client_idclaim on issued tokens,actconstruction for exchanged and SPIFFE tokens, consent-exempt client eligibility, and the merged call-binding PRs ("Process the ID-JAG authorization_details claim" (#7290), "Enforce call-bound access tokens at the vMCP" (#7302), "Add a per-client access token lifespan for ID-JAG redemption" (#7284)). Read the rendered Markdown.Special notes for reviewers
authorization_detailsfrom a redeemed ID-JAG into the access token, and the vMCP enforces them. Signing those details into ID-JAGs this server mints is "Sign authorization_details into minted ID-JAGs" (Sign authorization_details into minted ID-JAGs #7305), still open, so the README does not claim it yet.