Description
Implementation and acceptance checklist
Reviewed against main at 9aabbec. The 2.6.0 metadata commit leaves the audited runtime implementation unchanged. Checked items describe the evidenced outcome only. Implementation remaining means a source-backed gap; acceptance unverified means the full criterion is not proven and may include existing code. Fresh runtime/deployment tests were not run in this audit.
Original checkbox reconciliation: 29 criteria; 2 implemented, 6 implementation remaining, 21 acceptance unverified, 0 historical/moved.
Current ownership and sequencing — October 3, 2026
Disposition: partial. Owned scope: Trust-boundary remediation and security qualification across existing product surfaces.
Related owners:
- #208: Shared bounded MRTR/request-input overlay, primitive completion, confirmation and continuation ownership.
- #742: MCP-client OAuth sign-in/recovery and safe read retry after callback; consume scoped observations from #857.
- #766: Semantic ZFS service and guarded rollback plans; integrate shared request-input confirmation from #208.
- #815: Gateway reliability and Depot MCP transport retirement, browser preauth lifecycle, bounded Skills diagnostics and operational qualification.
- #857: Live qualification of shared scoped capability observations; the original zero-count bug is closed in #842.
The implementation audit below is the current baseline. Earlier investigation notes describe their recorded revisions; remaining acceptance gates stay in force for the current owned scope. A merged slice, a closed historical child, or a successful release does not by itself satisfy another owner’s closure criteria.
Detailed criteria and design context
The checkbox classifications are current. Descriptive investigation and version references below retain their original dated context; use the evidenced checklist for current implementation status.
Goal
Systematically harden the gateway without introducing a second authorization system or silently breaking trusted homelab integrations. This is the completion ledger for the hardening review, not a claim that every unchecked item is an exploitable vulnerability.
Current implementation
Work has begun on fix/gateway-hardening-20260926, based on 9b1fdd2e3b3753782409d2fdd2ccf202a6e68724. The initial patch closes explicitly configured bearer-credential fallback and subject-less non-admin Code Mode OAuth fallback. Baseline regressions reproduced five credential-path failures and the shared-subject fallback. The runtime unit suite passes (350 tests); gateway/product verification is still in progress. No production configuration, credential, service, or deployment has been changed.
Completion gates
1. Required credentials and caller identity
- Acceptance unverified: Land the initial patch and its zero-outbound-request / zero-socket-connect / zero-child-spawn regressions for HTTP, Unix sockets, WebSocket, stdio, cancellation, and named protected routes. (A1)
- Implemented: Preserve typed operator-repair errors through lazy dispatch, prohibit stale lower-precedence credential fallback, and retain explicitly anonymous configurations. (A2)
- Acceptance unverified: Prove missing or blank non-admin subjects never select shared credentials in every caller variant, including authority wrappers. Preserve intentional trusted-local/admin service-account policy. (A3)
- Acceptance unverified: Extend Alice/Bob and revocation tests across native tools, Code Mode inner calls, resources, prompts, completion, subscriptions, retained outputs, route/loadout caches, and provider credential generations. Reuse the catalog-invalidation work from fix(gateway): fence OAuth subject catalog refresh against invalidation #738 rather than recreating it. (A3)
2. Read-only and upstream trust
- Implementation remaining: Distinguish declared read-only from provider-enforced read-only in the effective security posture. Qualify read-only credentials, filesystem grants, and provider policies against deliberately misannotated tools. (A4)
- Acceptance unverified: Review catalog, schema, safety-annotation, executable, and package changes that expand an integration's authority; bind decisions to the relevant revision. (A5)
- Implemented: Keep invocation-time exposure and descriptor checks. Do not resurrect the retired
trusted_read_only_toolssetting as a parallel policy source. (A6)
3. Authentication lifecycle
- Implementation remaining: Define and test separate guarantees for local revocation, provider-side disablement, refresh grants, cached connections, and already-issued access JWTs. (A4)
- Acceptance unverified: Qualify audience/issuer binding, refresh races, key-rotation recovery, and narrowly scoped machine/break-glass credentials. (A5)
- Acceptance unverified: Evaluate dynamic-registration reduction against actual supported clients before changing deployment policy. No authentication bypass or token passthrough as a compatibility fix. (A5)
4. Process and device containment
- Acceptance unverified: Qualify approved absolute executable identity, ownership and immutable package/artifact provenance, rather than treating a runtime basename as a sandbox. (A5)
- Acceptance unverified: Test per-upstream filesystem, secret, process-tree, CPU, memory, descriptor, disk and network bounds. Exercise timeout, cancellation, crash, restart and orphan cleanup. (A5)
- Acceptance unverified: Verify Linux host-service/Incus enforcement on actual hosts and document platform differences. Keep administrative daemon sockets and privileged host mounts out of ordinary upstream sandboxes. (A5)
- Acceptance unverified: Verify dedicated SSH identities and remote permissions independently of local containment. (A5)
5. Outbound network policy
- Acceptance unverified: Audit pooled, fallback, OAuth, cancellation, protected-proxy, metadata and URL-fetch clients at the actual connection boundary. Redirect policy must be explicit and tested, not inherited accidentally from HTTP-client defaults. (A5)
- Acceptance unverified: Test DNS rebinding, address-family variants, redirect destinations, credential forwarding, connection reuse and proxy behavior. (A5)
- Implementation remaining: Support narrowly scoped private-service origin/port/address grants. Do not replace homelab access with a blanket private-IP prohibition. (A4)
- Acceptance unverified: Qualify destination restrictions for routes that combine sensitive reads with external writes. (A5)
6. Approval and execution provenance
- Acceptance unverified: Verify that existing destructive-action approval paths bind to the caller, target, exact arguments, policy/tool revision and expiry; reject forged or replayed approval evidence. (A7)
- Implementation remaining: Bind snippet approval and capability review to immutable revisions where approval is applicable. (A4)
- Acceptance unverified: Preserve the existing shared metadata contract: admin and destructive are separate axes. Do not restore the retired Code Mode pause/confirmation gate or make MCP elicitation mandatory. (A8)
7. Availability, audit and operator visibility
- Acceptance unverified: Qualify cold proxy generation, slow/chatty upstream isolation, per-principal/per-upstream/global admission, schema/catalog/decoded-byte bounds, and cancellation cleanup. (A5)
- Acceptance unverified: Never automatically replay an uncertain mutation. Record partial/unknown outcomes and verify idempotency boundaries. (A5)
- Acceptance unverified: Qualify durable redacted security events for authority, credentials, policy/catalog changes and execution outcomes; keep intent records and completion evidence distinguishable. (A5)
- Implementation remaining: Expose effective policy, tested enforcement versus declarations, and actionable failures in the existing UI/notification system. Reuse ongoing Apprise work rather than adding another notification subsystem. (A4)
8. Stash and release qualification
- Acceptance unverified: Qualify principal/team isolation, authorization at open, traversal/symlink defenses, upload and archive-expansion quotas, and parser containment. (A5)
- Implementation remaining: Design and test quarantine/scanning and storage/backup encryption without presenting deferred controls as implemented. Revocation cannot retract already-delivered bytes. (A4)
- Acceptance unverified: Run adversarial/conformance and fault-injection suites with successful authorized baselines and negative tests proving no forbidden side effects. Keep model/unit evidence separate from actual-host proof. (A5)
- Acceptance unverified: Complete focused tests, affected feature slices, lint/docs/schema gates and exact-head CI before merge. Deploy only with explicit operator approval, then reconnect, inspect catalog/health, and invoke a safe tool through LABBY. (A5)
Tracking rule
Close a gate only with linked implementation and verification evidence. A passing compiler, proposed configuration, or checkbox alone is not completion. Keep this parent open until all applicable gates are resolved or an explicit operator decision documents an accepted limitation.
Criterion evidence and limitations
- A1: Transport bearer tests prove HTTP/WebSocket/Unix/stdio/cancellation negative paths, but full named protected-route matrix is not established here; keep entire combined gate unchecked. E1 E2
- A2: Required bearer failure is typed; bearer_required_tests covers zero effect transport boundaries and successful anonymous baseline; patch merged through PR841. E1 E2
- A3: Missing-subject fail-closed source exists and PR871 corrects caller isolation; entire listed wrapper/subject/revocation matrix has not been independently qualified. E3 E4
- A4: The full provider-enforced effective posture/revocation guarantees/private-origin grants/revision-bound approval/UI security posture/quarantine-encryption requirement is not established by the credential patch; implement or record accepted limitation for this exact gate. E5 E6
- A5: This gate requires explicit review, adversarial/provider/actual-host or exact-head/deployment evidence. Existing shared primitives do not prove the full gate; no fresh execution of this criterion was performed. E7 E6
- A6: Invocation exposure and live descriptor checks remain shared pool enforcement; not a separate trusted-read-only catalog. E3
- A7: Binding includes service/action/args/caller/route/TTL and action security flags, but does not establish full immutable upstream tool/schema revision binding; complete revision provenance and qualified forged/replay matrix. E8 E9
- A8: Admin/destructive axes remain separate; instruction to never make elicitation mandatory conflicts with actual Refused no-Form source and needs explicit reconciliation, not a false completed checkbox. E8 E9
Activity
jmagar commentedon Sep 26, 2026
First implementation published: #810
Commit
07e031484bf5c8b56334d475125c13bfb556f6f0onfix/gateway-hardening-20260926closes the demonstrated required-bearer downgrade paths and the subject-less non-admin Code Mode shared-credential fallback. The isolated worktree is committed and pushed. No production settings, credentials, services or deployments were changed.Completed local qualification
The initial baseline reproduced five credential regressions and one identity fallback regression. The broader MCP suite initially required a companion executable; after building this patch's executable, all 549 MCP tests passed. Local builds did not bundle the frontend assets and emitted a macOS linker unwind-size warning, so packaged-UI or Linux/Incus runtime qualification is not claimed.
Open gates
PR #810 remains draft pending exact-head CI and review. Keep this parent open: enforced read-only/provider trust, full cross-surface identity/revocation qualification, connection-time egress/redirect defense, process/device containment, approval provenance, availability/audit/UI/notifications and Stash protections still require their tracked work. Do not infer that the initial fixes implement these broader controls.
Additional dependency-triage item
GitHub's push response reported three moderate default-branch dependency vulnerabilities. Their details are not yet verified: the LABBY GitHub catalog did not expose a Dependabot-alert reader, and the read-only fallback through LABBY -> claude-macpoo -> GitHub CLI ->
repos/dinglebear-ai/labby/dependabot/alertsreturned HTTP 401Requires authentication. No credentials were changed or copied and no alerts were dismissed. Obtain an authorized alert view or perform a separately qualified lockfile advisory audit before declaring dependency hardening complete.Next concrete network audit target
The pooled upstream, fallback connection, cancellation and protected-proxy HTTP client builders need explicit redirect-policy qualification. This is an inspected follow-up target, not a claim that DNS rebinding or egress controls were fixed by #810.