Security
Canonical policy lives in SECURITY.md in the repository. This page summarises the parts most operators care about.
Reporting a vulnerability
Email [email protected] with a description and reproduction steps. Do not file a public issue for security bugs. You'll get an acknowledgment within days and a triage within two weeks. Reporters are credited in the release notes unless they prefer to stay anonymous.
Trust boundaries
The daemon runs with the caller's privilege. Two inputs, two trust levels:
- runwisp.toml is trusted. It runs arbitrary commands; treat it like a shell script. Protect it with file permissions.
- The REST API and Web UI are untrusted. They can trigger defined tasks and read run history, but cannot mutate the config or execute arbitrary commands.
Authentication
Two auth paths, one per kind of client:
- Local (Unix socket): Peer UID verified via
SO_PEERCRED/LOCAL_PEERCRED. No password needed for local CLI and TUI access. - Remote (Web UI, REST, remote TUI): a password, sent through a
challenge-response handshake so it never crosses the wire, even over HTTP. The
password comes from
RUNWISP_PASSWORD; if that's unset, the daemon generates a fresh one each boot. It's never written to disk. Only an explicitRUNWISP_AUTH=offturns it off. - Read-only (optional): a second password,
RUNWISP_VIEWER_PASSWORD, whose sessions see everything and change nothing. - Hook tokens: let CI or a webhook control one task or service, limited to the actions the token allows, without the dashboard password.
Release integrity
Every tagged release ships with:
- SHA-256 checksums for every tarball and package in
checksums-sha256.txt, attached to the GitHub Release. - Signed build provenance for the tarballs, checksums and Docker
images. Check a download with
gh attestation verify <file> --repo runwisp/runwisp. - GPG-signed packages: the apt and dnf repositories and their
.rpmfiles. - OIDC Trusted Publisher for npm packages, no hardcoded tokens in CI. Each platform package authenticates via GitHub Actions' OIDC identity.
- Two-stage release: CI builds and creates a draft release; a human reviews and publishes it. No automated push to production.
Not yet in place: SBOM generation (CycloneDX).
Supply chain
- Pure-Go SQLite via
modernc.org/sqlite: no CGo, no system library dependency. - Single static binary: no runtime, no interpreter, no container needed.
- CI on every PR: lint, type-check, unit tests, and Playwright E2E tests on Ubuntu and macOS.
Deployment hardening
Recommendations from the project's security policy:
-
Keep the data directory at
0700. It holds the SQLite database, run logs and the local socket. -
Set
RUNWISP_PASSWORDfor network clients. The generated one changes every boot and logs every browser out. -
Bind to
127.0.0.1(the default) unless you need remote access. If you expose it, serve HTTPS:[daemon] tls = "auto"or a TLS-terminating proxy. Over plain HTTP the handshake protects the password, not the session cookie. -
When running behind a reverse proxy, set
[daemon] trusted_proxiesto the proxy's CIDR. - Run the daemon as an unprivileged user.
- Stay current: security fixes ship only on the latest release; older releases do not receive backports.
What's in scope
Auth bypass, socket trust bypass, session/JWT flaws, path traversal, TOML parser bugs, proxy header misuse, insecure defaults, and vulnerabilities in direct dependencies.
What's out of scope
Arbitrary command execution via runwisp.toml (by design), data-dir access
(trust boundary), operator-initiated DoS, missing HTTP headers for reverse proxy setups,
and missing rate limits on loopback.
Questions
Security concerns: [email protected]. Everything else: GitHub Issues.