Repository navigation
fix(storage): correct client-credential stage error and make forget atomic - #1419
Merged
Merged
Conversation
StageClientCredentialRotation returned ErrClientCredentialActive for a revoked/expired record (the opposite of reality); add ErrClientCredentialNotActive. ForgetClientCredential now resolves and revokes in one bbolt transaction under the manager lock, so a concurrent mint cannot leave it revoking a newer record and returning a stale one. Add the missing expired-variant test for mint replacement.
4 tasks
Deploying mcpproxy-docs with
|
| Latest commit: |
61c45ec
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://ebd4be95.mcpproxy-docs.pages.dev |
| Branch Preview URL: | https://fix-low-1395-client-credenti.mcpproxy-docs.pages.dev |
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Contributor
📦 Build ArtifactsWorkflow Run: View Run Available Artifacts
How to DownloadOption 1: GitHub Web UI (easiest)
Option 2: GitHub CLI gh run download 36572654419 --repo smart-mcp-proxy/mcpproxy-go
|
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
Addresses items 1-3 of the Spec 108-c review follow-ups:
StageClientCredentialRotationnow returns a newErrClientCredentialNotActivefor a revoked/expired record instead of the inverseErrClientCredentialActive.ForgetClientCredentialresolves and revokes inside a single bbolt transaction under the manager lock (same shape as the other client-credential mutations), so the returned record is the one actually revoked.Item 4 (FR-028 identity stamping at session initialize) is intentionally not part of this PR.
Refs #1395