Repository navigation
fix(profiles): close post-merge review gaps in connect rotation, offline guard, preview, attribution and CLI hints (Spec 108-retro-go) - #1454
Merged
Conversation
…tial Commit finalizes, and preview the recorded binding on reconnect
…while require_mcp_auth is off
…ped callers see their own policy_decision and prompt_get rows
…o filters cannot mislabel it
12 tasks
Deploying mcpproxy-docs with
|
| Latest commit: |
80bd9ca
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://decde729.mcpproxy-docs.pages.dev |
| Branch Preview URL: | https://108-retro-sol-fixes-backend.mcpproxy-docs.pages.dev |
A keyless connect mints nothing and so never reached connectMinter.Issue, the only place the FR-021a in-flight claim was checked. It could rewrite a client's config while another connect held the claim and answered 200 instead of 409 connect_in_progress. Add CredentialMinter.CheckIdle (claim check without taking a claim) and call it from credentialHandle.secret() on the keyless path, right before the backup and write. Lint note: the only golangci-lint finding (internal/runtime/event_bus.go reflect.Ptr) is pre-existing and untouched.
Contributor
📦 Build ArtifactsWorkflow Run: View Run Available Artifacts
How to DownloadOption 1: GitHub Web UI (easiest)
Option 2: GitHub CLI gh run download 36846382636 --repo smart-mcp-proxy/mcpproxy-go
|
|
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
…he default HOME config
…ackend # Conflicts: # ROADMAP.md
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.
Closes the seven verified post-merge review findings of Spec 108 PRs 108-c2, 108-e and 108-g. Spec:
specs/108-profiles-v3(Phase 14, tasks T140 to T146). Go only: no frontend or macOS change, and the generated TypeScript contract types are unchanged.What changes for users, per surface
Connect (REST, Web UI, macOS, CLI)
rotate,rotate/finalizeor binding change of the same client is refused with409 connect_in_progress, and the staged-rotation reconciler leaves both secrets alone. Previously a reconcile or second connect landing between the stage and the config write could roll the new secret back and leave the client holding a dead secret while the call answered 200.409 credential_superseded; a deliberate forget is never blocked and wins.GET /connect/{client}/preview, and the Web UI and macOS reconnect dialogs that render it) now shows the binding the write will actually apply: a reconnect with no profile shows the client's recorded profile and mode instead of the defaults. Preview and write share one resolution rule.mcpproxy connect, no daemon reachable) refuses a re-point or mode change of an already bound client whilerequire_mcp_authis off, with the usual guard text andFixes:list. A reconnect that keeps the recorded binding still works offline, so rotation does not need the daemon.Activity (REST, SSE, CLI, MCP)
policy_decisionandprompt_getrows with their attribution and finds them by?token=<own name>; before, those rows read as foreign and were filtered out or blanked. The prefix is never in any REST shape, export, CSV or SSE frame. Records written before this change keep reading as foreign to a scoped caller (fail closed); there is no backfill because the prefix was never stored.internal_tool_callrecords and events take their attribution from the request context like the call they wrap, so a REST/tools/callrecord carries the same profile, token and client as itstool_calltwin, andactivity watchfor a scoped caller keeps its owninternal_tool_callevents.CLI and MCP
mcpproxy access explainprintsmcpproxy upstream approve <server> <tool>for a tool-approval failure, so following the hint approves that tool only; the bare server form is kept for a quarantined server.GET /profiles/{name}/effective-toolsand the MCPprofilestooleffective_toolsoperation gain an administrator-onlystale_classification_reasonsmap (annotatedormissing), computed over the unfiltered tool set.mcpproxy profile show --effectiveuses it, so a--serveror--reasonfilter no longer mislabels an annotated tool as "not found"; against an older daemon a filtered request prints a neutralclassification ignored.Audit finding ids fixed
pr1430:F1,pr1430:F2,pr1430:F3,pr1436:sol:A.1+sol:C.1,pr1436:sol:B.1+sol:6.1,pr1441:F1.1,pr1441:F2.1.Implementation notes
connect_in_progressandcredential_supersededmap to409 {error, code}in the shared profiles error mapping, so the/clients/*routes,POST /connect/{client}and the MCPprofilestool agree; the CLI prints their text and exits 1. Swagger descriptions are updated andoas/regenerated.connect.CredentialMintergainsReleaseandPreviewBinding.runtime.StrictOfflineBindingGuardis new and used only by the offline CLI.ConservativeBindingGuardis unchanged because other callers depend on its documented re-point allowance.emitActivityInternalToolCalland its truncated variant take the request context as their first parameter; every call site passes its handler context (none needed a background context). No frozen golden changed.Tests
New tests were written before the code: the in-flight and race scenarios (including a full-stack test through a real connect service), commit verification, release on an ambiguous write, preview equals write for every record state, the strict offline guard and its CLI behaviour, owner-by-persisted-prefix, scoped caller finding its own policy and prompt rows, the prefix never appearing in any projection, REST and event attribution of
internal_tool_call, the approve hint, and stale reasons with and without filters. Unit suites for the touched packages pass under-race(server also with the CI skip regex), the server edition builds, and both golangci-lint runs report only findings that already exist on main in files this PR does not touch.Follow-ups
stale_classification_reasons(needscmd/generate-types,frontend/src/types/contracts.tsandProfilesModels.swift, out of scope here).pr1436:sol:E.1(Activity.vue scope params) and the macOS findings ofpr1442andpr1427.