8000 Overview · Mooka-Mooka/davish · GitHub
[go: up one dir, main page]

Skip to content

Security: Mooka-Mooka/davish

Security

SECURITY.md

Security

Davish holds the keys to your servers, so its design puts safety before convenience. This page explains what it stores, what it runs on your servers and how to report a vulnerability.

Reporting a vulnerability

Please report privately through GitHub Security Advisories. Do not open a public issue. Include the version, your OS and steps to reproduce. You will get an answer within a few days; a fix ships in a release before the advisory is published.

Only the latest release is supported.

Where secrets live

  • Passwords and passphrases are stored only in the OS keychain (macOS Keychain, Windows Credential Manager, Secret Service on Linux). They are never written to files or logs and never sent to the UI.
  • Private keys stay where they are. Davish stores the path to your key (usually in ~/.ssh/), never a copy. An SSH agent is used when available.
  • sudo passwords are never saved. When a command needs root and sudo asks for a password, Davish asks for it once per server and session and keeps it in memory only: never on disk, in the keychain, in a log or in the command log. It hands the password to sudo on its standard input, never on the command line. It is forgotten after 15 minutes unused (5 minutes, 1 hour or the whole session, in Settings → Security), when you disconnect or the connection drops, when the app locks, or when you choose "Forget sudo password". You can always run the command in a terminal yourself and type the password there instead.
  • The lock password is hashed with argon2id; only the hash is kept, in the keychain.
  • Removing a server also removes its secrets from the keychain.
  • Saved commands are kept in plain text in Davish's settings on your computer. When one looks like it holds a password, token or key, Davish warns you before you save it; leave the secret out and type it when you run the command.

What Davish runs on your server

  • Nothing is installed or left behind. Davish needs only sshd and SFTP and runs everything from your machine over SSH.
  • No new port is opened on the server.
  • Every argument in a command is shell-quoted; user input is never pasted into a command line.
  • Commands that need root run through sudo, after you confirm the exact command. What could lock you out of the server stays in a terminal, with one exception: turning password login off from Security. It first checks that your key logs in over a new connection, backs up the sshd settings, adds one drop-in file, checks the key again after reloading sshd, and undoes the change if the key stops working. The confirmation shows the whole script.
  • Destructive actions (removing files, stopping services, removing containers, replacing a crontab…) show the exact command and wait for your confirmation.
  • The command log records everything Davish ran on your behalf.
  • Saved commands, Spotlight's > command and the command log's "Type into Terminal again" type a command at the prompt; you press Enter.
  • Host keys are checked on every connection. A changed host key refuses the connection; there is no "ignore" button.

Network and telemetry

  • No telemetry, analytics or crash reporting.
  • Besides your servers, Davish talks to one place: the GitHub Releases API, to check for updates. Updates are verified against a signature before they are installed.

Out of scope

The app lock protects against someone using your unlocked computer. It does not encrypt data at rest; use full-disk encryption for that.

There aren't any published security advisories

0