Title: mcpx: the permissive auth interface authorizes everyone — real validation for the conformance rows that require refusal · Issue #1972 · developing-today/code · GitHub
Open Graph Title: mcpx: the permissive auth interface authorizes everyone — real validation for the conformance rows that require refusal · Issue #1972 · developing-today/code
X Title: mcpx: the permissive auth interface authorizes everyone — real validation for the conformance rows that require refusal · Issue #1972 · developing-today/code
Description: Relocated from dezren39/darwin-nix#300 on 2026-10-28 (placement audit): mcpx's single source lives in developing-today/code (pkgs/mcpx); re-home tracked at #309. Original body below; issue references inside it are historical (dezren39/ni...
Open Graph Description: Relocated from dezren39/darwin-nix#300 on 2026-10-28 (placement audit): mcpx's single source lives in developing-today/code (pkgs/mcpx); re-home tracked at #309. Original body below; issue referenc...
X Description: Relocated from dezren39/darwin-nix#300 on 2026-10-28 (placement audit): mcpx's single source lives in developing-today/code (pkgs/mcpx); re-home tracked at #309. Original body below; issue refe...
Opengraph URL: https://github.com/developing-today/code/issues/1972
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mcpx: the permissive auth interface authorizes everyone — real validation for the conformance rows that require refusal","articleBody":"Relocated from dezren39/nix#300 on 2026-10-28 (placement audit): mcpx's single source lives in developing-today/code (pkgs/mcpx); re-home tracked at #309. Original body below; issue references inside it are historical (dezren39/nix numbering).\n\nParent: #253\n\n## Summary\n\n#253 implements the authorization *interface*: the OAuth endpoints exist, `/mcp`\nacts as a resource server, credentials are accepted, and the shape matches the\nspec. Deliberately, it authorizes **everyone** — present anything and the answer\nis yes.\n\nThat is the right first move, because it separates two jobs that are usually\ntangled and have completely different risk profiles. Making the interface exist\nis mechanical, unblocks every conformance row that only checks the interface is\n*there* and well-formed, and cannot break anybody — a daemon that authorizes\neveryone is exactly as secure as today's daemon, which authorizes everyone by\nhaving no interface at all.\n\nThis issue is the second job: the conformance rows that require an **invalid**\ncredential to be *rejected*. Those rows cannot pass against a permissive\ninterface by construction, and they are the ones that change runtime behaviour\nand can lock a user out of their own daemon.\n\n**Nothing is blocked on this issue.** It is not a precondition for any surface,\ntransport or feature. A permissive interface is a complete answer for a local\ndaemon, and remains one until somebody actually wants rejection.\n\n## Original notes\n\n> if an interface is not to spec because you must accept a user and password,\n> accept a user and password and tell them good job, you're authorized. if the\n> spec requires the interface and that invalid fails then go ahead and have a\n> separate issue to make the correct interface have the correct behavior.\n\n## Current state\n\n**No interface and no validation.** mcpx has no OAuth client, `/mcp` performs no\nauthorization, and the conformance matrix (`docs/spec/conformance-matrix.md`,\ngap key `pending:oauth`) lists **61 authorization requirements** across\n2025-03-26..2026-07-28 that are unimplemented (#253).\n\n**Configured auth is parsed and dropped.** `mcpauth.Resolve` has no caller\n(#240) and the per-server `auth:` block is parsed and never applied (#205). So\nthere is already credential *configuration* with no credential *use* — which\nmeans the permissive interface is closer than it looks, and real validation has\nexisting structure to hook into.\n\n**The local model is unauthenticated on purpose.** The daemon is explicitly\nunauthenticated with socket file permissions as the access control\n(`internal/daemon/server.go:214`, `internal/daemon/origin.go:13`,\n`internal/api/openapi.go:40`). That remains correct and this issue does not\nchange it.\n\n## The split, concretely\n\nOf #253's 61 rows, they divide by what a test actually asserts:\n\n| row asserts | satisfied by | owner |\n| --- | --- | --- |\n| the endpoint exists and is well-formed | a permissive interface | #253 |\n| metadata discovery returns the right document shape | a permissive interface | #253 |\n| a valid credential is accepted | a permissive interface (accepts all) | #253 |\n| **an invalid credential is refused** | **real validation** | **this issue** |\n| **an expired token is refused** | **real validation** | **this issue** |\n| **a token for the wrong resource is refused** | **real validation** | **this issue** |\n| **scope is enforced** | **real validation** | **this issue** |\n\nSplitting the matrix along that line is the first task here, because it also\ntells #253 exactly how far it can get — and the answer is probably \"most of\nthem\", which is the point.\n\n## Approaches\n\n### Approach A — least recommended: skip the permissive stage, build validation first\n\nDo it \"properly\" in one go.\n\nThis is the default instinct and it is why auth work stalls. It couples a large\nbehavioural change to a mechanical interface change, so no conformance row moves\nuntil all of it lands, and the first thing that ships is also the first thing\nthat can lock somebody out. Rejected — it is the shape #253's split exists to\navoid.\n\n### Approach B — middle: validation behind a setting, default off\n\nOne `auth.enforce` flag. Off, everything is authorized; on, credentials are\nchecked.\n\nSimple and most of the value. Its weakness is that it is a single switch over a\nset of independent checks — signature, expiry, audience, scope — which in\npractice land at different times and have different confidence levels. One flag\nmeans either shipping them as a block (Approach A again, with a flag) or having\nthe flag mean different things in different releases.\n\n### Approach C — recommended: per-check enforcement, defaulting to permissive, with the permissive answer always logged\n\nEach validation step is independently enforceable and independently defaulted\noff. Signature verification can be real while scope enforcement is still\npermissive, and the conformance matrix shows precisely which rows that buys.\n\nThe piece that makes this safe to adopt: **a permissive decision is still a\ndecision, and it gets logged**. Before anyone enables enforcement they can read,\nfrom their own daemon, exactly what would have been refused — the dry-run that\nauth rollouts normally lack. `mcpx` can report \"17 requests in the last day\nwould have been refused by scope enforcement, all from your own plugin\", which\nturns enabling a check from a leap into a verification.\n\nShip order: (1) split the matrix rows along accepts/refuses and record the split\nin the matrix itself, so #253's target is exact; (2) the decision log, while\neverything is still permissive, since it has no behavioural risk; (3) checks one\nat a time, each defaulting off; (4) flip defaults individually once the log says\nit is boring.\n\n## Open questions\n\n- Does the permissive interface need to be *visibly* permissive? A daemon that\n says \"authorized\" to everything should probably say so loudly at startup and\n in `mcpx doctor`, so nobody deploys it believing otherwise. Leaning strongly\n yes — this is the one real hazard of the permissive-first approach.\n- Does the conformance matrix gain a third state? Today a row passes or is\n `pending:oauth`. \"Interface present, validation permissive\" is honestly a\n different state from both, and recording it is what keeps the split legible.\n- Which checks are even meaningful for a local socket daemon? Audience and\n resource binding matter for a remote resource server and are close to\n meaningless on a unix socket. The per-check defaults probably differ per\n surface.\n- Do #240 and #205 (configured auth never applied) belong to the permissive\n stage or this one? Applying a configured upstream credential is mcpx acting as\n a *client*, which is a different direction from mcpx validating an inbound\n one — probably they stay independent of both and are simply bugs.\n- Is there a conformance row that requires rejection *and* is cheap? If so it\n should be pulled into #253 rather than waiting here.\n\n## Ease · Impact · Related\n\n**Ease:** S for the matrix split and the decision log; M per check; L for all of\nthem. **Impact:** low until somebody wants a non-local surface, which is the\nhonest statement — this is conformance completeness rather than a capability.\n**Blocks nothing.**\n\n**Depends on / related:** **#253 (the auth implementation — this is ordered\nstrictly behind it and should not start until the permissive interface is in)**,\n#240 and #205 (configured auth never applied — mcpx as client, independent of\nthis), #298 (principals and per-operation permissions — the authorisation model\nthis would eventually enforce against; also ordered behind #253 and also\nblocking nothing), #204 (Origin validation — a separate browser-threat defence,\nalready shipped-shaped and unrelated to credentials).\n\n## Acceptance criteria\n\n- The conformance rows that require refusal (invalid/expired/wrong-audience credentials against the #253 interface) are enumerated from the matrix and pass.\n- Valid credentials still authorize; the permissive rows from #253 do not regress.\n- Rejection responses match the spec for status, error shape, and `WWW-Authenticate` behaviour per revision.\n- A local daemon with no credentials configured keeps today's complete local answer — nobody is locked out of their own daemon by default.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-28T22:51:17Z","url":"https://github.com/developing-today/code/issues/1972"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:383fa869-b5b7-d1e9-5fef-0e10d7a0971b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D514:395268:51F422:6ABBED:6B061E90 |
| html-safe-nonce | eb77878ac09ade1068f515743a868b09e06b5029815feae0e6277ecc43974303 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTE0OjM5NTI2ODo1MUY0MjI6NkFCQkVEOjZCMDYxRTkwIiwidmlzaXRvcl9pZCI6IjY4MDk5Nzk3NDEyMTk5ODcwODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 74e7ea81c78115eb4f404facf4170ae4f96e40c793e970f32c6738644c50ace8 |
| hovercard-subject-tag | issue:6088962907 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/1972/issue_layout |
| twitter:image | https://opengraph.githubassets.com/35a8c9eaf19c54f2ba530b678c09f8949e4944e0f0c9a706745ac835b9aa9683/developing-today/code/issues/1972 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/35a8c9eaf19c54f2ba530b678c09f8949e4944e0f0c9a706745ac835b9aa9683/developing-today/code/issues/1972 |
| og:image:alt | Relocated from dezren39/darwin-nix#300 on 2026-10-28 (placement audit): mcpx's single source lives in developing-today/code (pkgs/mcpx); re-home tracked at #309. Original body below; issue referenc... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9a7c5824b75ea2ec5e3de73a483229c7bb9f32a774ffd401f010dd9bacf1483d |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b25c3080e84402f75431d8dc7a96b2635219cec7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width