Skip to content

nixos: add dot-ssh restricted SSH user (Dot/Aster access route) - #10990

Merged
dezren39 merged 1 commit into
mainfrom
dot-ssh-access
Nov 17, 2026
Merged

dezren39 merged 1 commit into
mainfrom
dot-ssh-access

Conversation

@dezren39

@dezren39 dezren39 commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Declares the laptop side of the Dot SSH route Drew approved 2026-11-16 (draft: #alignment thread 1794871876.785569).

  • New user dot-ssh (uid 1339): non-sudo (no groups), no password (key-only), no authorized keys yet.
  • sshd Match User dot-ssh block via services.openssh.extraConfig: PasswordAuthentication no, KbdInteractiveAuthentication no, AllowTcpForwarding no, AllowAgentForwarding no, X11Forwarding no, PermitTunnel no.
  • Added to the amd host users list only.

Cloudflare side is already built (separate named tunnel dot-ssh, dot-ssh.security.cab -> ssh://localhost:22, dedicated Access app + service token; sandbox-link untouched) and the connector is running on the laptop.

Verified: flake evaluates; the generated sshd.conf-final contains the Match block; sshd -t passes on it; sshd -T -C user=dot-ssh shows the exact restricted posture.

ACTIVATION NOTE: nixos-rebuild switch from current main is currently blocked by a PRE-EXISTING, unrelated build failure: atlas-search 0.1.0 check phase fails (atlas-core detection tests panic: git executable not found in the build sandbox; reproduced standalone from the .drv, independent of this change). Once that is fixed, a normal switch activates this user; until then the account does not exist and the tunnel path dead-ends at an account-less sshd, which is the safe state.

Follow-ups after activation: create the empty ~/.ssh/authorized_keys (600, dot-ssh-owned), then pin Asters VM public key with her health-only forced command when it arrives, declare the connector as a Nix service mirroring sandbox-link-tunnel (it currently runs as a detached laptop-agent job), and run the end-to-end SSH login test.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 17, 2026 05:19
@coderabbitai

coderabbitai Bot commented Nov 17, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 26 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 50217311-d1bc-40e8-a2a8-aab411b6b9f4
Commits

Reviewing files that changed from the base of the PR and between 4009442 and ab7269d.

Files selected for processing: 2

  • nixos/hosts/default.nix
  • nixos/users/dot-ssh/default.nix
  • 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

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-17T05:19:10.527226Z
We couldn’t complete this review. Comment @codex review to try again.
ab7269d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 merged commit 21a9990 into main Nov 17, 2026
1 check passed
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant