Skip to content

fix(link): require owner authority for explicit SSH routes - #8806

Closed
luvs01 wants to merge 1 commit into
lidge-jun:devfrom
luvs01:fix/link-probe-owner-authority
Closed

luvs01 wants to merge 1 commit into
lidge-jun:devfrom
luvs01:fix/link-probe-owner-authority

Conversation

@luvs01

@luvs01 luvs01 commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Require an operator-paired dashboard session or an authenticated admin token on trusted loopback ingress before accepting a caller-supplied explicit SSH route.
  • Apply the check in the common route parser used by probe, host confirmation, and apply, before SSH, file inspection, host-state mutation, or operation replay.
  • Preserve ordinary dashboard SSH-alias enrollment and the existing route-mismatch, request-form, authorized pairing/admin, and journal replay behavior.
  • Update the owning contracts and English/Spanish Remote Link guidance.

Verification

Recorded local validation:

  • Before the production change, the first 10 authentication cases produced 3 passed / 7 failed; after the change, the same cases all passed. The final candidate adds 12 authentication/compatibility cases.
  • bun test tests/server/link-enrollment-explicit-route.test.ts tests/server/link-enrollment.test.ts tests/server/link-enrollment-operation.test.ts tests/server/link-enrollment-ephemeral-child.test.ts tests/server/link-management-routes.test.ts --timeout 30000: 203 passed, 1 Windows-only skip, 1,695 assertions.
  • Tests use real session bootstrap, pairing-grant redemption, management admission and dispatch with fake SSH/lifecycle effects. They cover request refusal without effects, preserved owner confirmation, omitted-route reuse, paired/admin success, ordinary alias enrollment, and operation replay.
  • bun run typecheck: passed, 2,536 source files.
  • bun run structure:check, bun run privacy:scan, git diff --cached --check: passed.

For current head 39daa919732be8683f849e813078b466a2ae3709, main pull-request CI and Catalog async contracts completed successfully. These are the configured pull-request checks; skipped platform jobs do not establish Windows/macOS acceptance.

CodeRabbit has not reviewed this Draft PR. Maintainer security review and installed/live application validation remain separate. This PR remains Draft; it does not claim merge or release acceptance.

Checklist

  • Scope stays focused and avoids unrelated cleanup.
  • Docs or release notes were updated when needed.
  • Security-sensitive changes were reviewed for secrets, auth, and unsafe defaults.

The security checkbox records implementation review; explicit maintainer security review remains required before merge.

@coderabbitai

coderabbitai Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

Copy link
Copy Markdown
Contributor

✅ Deterministic PR hygiene checks passed.

@github-actions github-actions Bot added the bug Something isn't working label Nov 16, 2026
lidge-jun added a commit that referenced this pull request Nov 17, 2026
… gate explicit SSH routes (#8868)

Lane R4 of the 2026-11-17 triage round: refuse redirects on Anthropic bearer requests (#8758), keep caller restrictions visible to the Chat tool-dispatch guard (#8814), and require owner authority for explicit SSH routes (#8806).

Co-authored-by: Vadym O <[email protected]>
Co-authored-by: Epinephrine <[email protected]>
@lidge-jun

Copy link
Copy Markdown
Owner

Thank you. This change was carried, with your authorship kept as a Co-authored-by trailer, in #8868, which is now merged into dev as bfdb2bc (2026-11-17 triage round). Closing as superseded; see #8868 for any follow-up changes made during review.

@lidge-jun lidge-jun closed this Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants