8000 Overview · gominimal/min-cursor · GitHub
[go: up one dir, main page]

Skip to content

Security: gominimal/min-cursor

Security

docs/security.md

What never leaves the host

  • Only the public key enters the box. Each session gets its own ed25519 key under ~/.local/state/min-cursor/sessions/NAME, and the box gets it in ~/.ssh/min-cursor/authorized_keys.
  • The one opt-in exception: min-cursor worker. It keeps your Cursor login in that box, and anything running there can use it. You log in inside the box, so the credential never passes through min-cursor. It stays until min-cursor worker --logout NAME or until the box is destroyed. While a worker runs, the agent loop runs in Cursor's cloud, so the file contents, terminal output and diffs it needs go to Cursor, and artifacts upload by default.
  • ~/.ssh/config is yours. Nothing under ~/.ssh is touched until min-cursor ssh-config runs. That adds two marked lines at the top of ~/.ssh/config and keeps the stanzas in ~/.ssh/min-cursor.conf; --remove restores ~/.ssh/config byte for byte. A dated backup is taken before every write.
  • settings.json is yours. Nothing in it is touched until min-cursor config runs; then only a marked block and the min-cursor.* entries of remote.SSH.remotePlatform change, with a backup first.
  • What the box reports is checked. The user name, home, sshd path and host key a box prints are validated before any of them reaches known_hosts, a stanza or an ssh option.
  • The box's host key is pinned (StrictHostKeyChecking=yes, never accept-new), and re-pinned by _proxy on every connect, so only the box min itself reaches can present it.
  • Destroy always asks [y/N], default No; -y is the only way past it. gc asks for each session.
  • No agent or X11 forwarding. Each stanza sets ForwardAgent no, ForwardX11 no, ForwardX11Trusted no before any Host * of yours can turn them on, and the box's sshd runs with AllowAgentForwarding=no and X11Forwarding=no. An explicit ssh -A min-cursor.NAME still wins on the client; then only the box's sshd refuses it (defence in depth, not a boundary). Port forwards work.
  • Boxes are never woken to be asked. gc and status read the host's process table to tell what is in use; no box is contacted to find out.

There aren't any published security advisories

0