Secure by default,
honest about the rest
Echowa controls Docker, which is close to root on your server. So it has one admin, no sign-up page and an optional second factor, encrypts every secret, checks the signature of every update, and says plainly what it leaves to you.
curl -fsSL https://get.echowa.dev/install.sh | sudo bashWho does what
What Echowa protects, and what's on you
Echowa can lock down its own UI, its secrets and its updates. It can't stand in for a firewall, or vouch for the images you deploy.
What Echowa does
- Encrypts env vars, database passwords and registry tokens at rest
- Creates one admin from a one-time link, with no sign-up page
- Asks for a code from an authenticator app, once you turn it on
- Signs you out after the idle time you choose
- Limits login attempts per email and per client
- Checks a CSRF token on every form, and the origin of every terminal
- Sends a Content-Security-Policy, HSTS and frame protection
- Verifies every update's signature before installing it
- Sends each registry token only to its own registry
- Runs as its own user, outside Docker
- Shows what the server needs, from security updates to a restart
What's on you
- Firewalling ports Docker publishes, which skip ufw
- HTTPS or a tunnel for a UI on the internet
- Backing up APP_KEY apart from the database
- The images you deploy, and what's in them
- Encrypting your backup bucket, which Echowa doesn't do
- Patching the OS, which Echowa shows but never does
Three ways to reach the UI
The installer asks which one you want, and you can change it later.
HTTP on port 8192
The default, for trying Echowa out. Passwords travel unencrypted, so the installer warns you not to use it on the open internet.
HTTPS on your domain
Through Traefik with a Let's Encrypt certificate, on port 8192, so your provider's firewall can close the UI to everyone but you while your apps stay open.
Cloudflare Tunnel
The safest. Echowa listens only on loopback, and Cloudflare Access checks who you are before a request reaches the server.
The Docker socket is root
Echowa deploys apps by talking to Docker through /var/run/docker.sock, and anyone who controls Docker controls the server. Everything else on this page follows from that. Echowa treats its login page as the front door to the whole machine, and you should too.
It runs as a systemd service under its own echowa user, whose only privilege is membership of the docker group. It isn't a container itself, so no container ever needs the socket mounted.
Signing in
There's one admin account and no public registration. The installer prints a one-time link to the page that creates it, and that page doesn't open without the link. Lost the password? sudo echowa-artisan user:create sets a new one and signs every browser out. There's no password-reset email to intercept.
Login allows 5 attempts a minute per email and client, and 20 per client. Session cookies are HttpOnly, SameSite=Lax and, over HTTPS, Secure. Live log streams end after 15 minutes and reconnect, so none outlives a logout by more.
Two-factor sign-in is in Settings, Security. Scan the QR code with any authenticator app, and logging in then takes a six-digit code as well as the password. A code works once, codes are rate limited per account as well as per address, and turning two-factor off takes a code too. There are no recovery codes: if you lose the phone, sudo echowa-artisan user:disable-two-factor on the server turns it off.
A session ends after the time you choose with no activity: 2 hours by default, or 8 hours, 1 day, 7 days or 30 days. Only what you do counts, not a page refreshing itself, so a tab left open still signs out. There's no remember me.
Echowa has no single sign-on. For that, put Cloudflare Access in front of the UI.
The terminal
An app's Terminal runs a shell in the app's container, not on the server. Echowa accepts its WebSocket only when the request's origin is the UI's own host, allows 5 sessions per app, and closes one after 30 minutes idle, when you sign out and when Echowa stops.
Secrets
Env values, database passwords, registry tokens, S3 keys and notification secrets are encrypted in the database with the server's APP_KEY. Pages receive the names, never the values, until you click Reveal. Secrets stay out of logs and deploy output, and registry credentials are passed to Docker per pull, never stored in the Docker daemon.
Without APP_KEY, the encrypted values can't be read, by an attacker or by you. Back it up, from /etc/echowa/env, somewhere other than the database backups.
Updates
Every release is signed with minisign, an Ed25519 signature, using a key kept offline behind a passphrase. The public key is built into Echowa, which checks the release list and every binary against it before using them. The updater only moves forward, so nobody can push an older, signed release with a known hole. If a new version fails to start, the updater puts the old binary and its database back.
The server underneath
Echowa never acts on the host. It runs without root, and the root updater only updates Echowa. It does read, as its own user, what the server needs: security and other updates, a restart a new kernel needs, failed services, whether automatic security updates are on, and a release near the end of its support. They show on the Server page, each with the command to run over SSH, and on the dashboard, and the Server icon on the rail gets a dot when something serious is due.
It can't see services still running old libraries, memory kills outside your apps' containers or disk health, since reading those needs more access than Echowa's sandbox allows, and it doesn't send alerts about any of it. On Debian, the end of support needs the distro-info-data package; without it, that row is left out rather than guessed.
Behind a proxy
Rate limits need the real client address. Echowa reads it from CF-Connecting-IP behind cloudflared or X-Real-IP behind Traefik, and believes the header only on requests from loopback or a proxy you list. It never trusts X-Forwarded-For from the network.
Reporting a problem
Report a vulnerability privately through GitHub's advisory form, not an issue. You'll get a reply within 3 working days, and an advisory with credit once it's fixed. SECURITY.md says what's in scope. Only the newest release gets fixes, and servers update from Settings in a click.
Before the first public release, all of Echowa's code was reviewed for security, and the medium-severity findings were fixed before it shipped.
Questions
Straight answers about access, secrets and updates.
Is it safe to put Echowa's UI on the internet?
Over HTTPS or a Cloudflare Tunnel, yes, with a strong password. The HTTP option sends your password unencrypted, so keep it to trying Echowa out. HTTPS access also puts the UI on its own port, so your provider's firewall can limit it to your address.
Does Echowa support two-factor sign-in or SSO?
Two-factor, yes: codes from any authenticator app, turned on in Settings, Security. If you lose the phone, sudo echowa-artisan user:disable-two-factor on the server turns it off. There's no SSO; for that, put Cloudflare Access in front of the UI, which the installer's tunnel option sets up.
How long does a session last?
As long as you choose, from 2 hours to 30 days without activity, in Settings, Security. The default is 2 hours. A page refreshing itself isn't activity, so an open tab still signs out.
What happens if I lose APP_KEY?
The encrypted values can't be recovered: env vars, database passwords, registry tokens, S3 keys and notification secrets. Apps keep running, but you'd re-enter every secret. Back up the key apart from the database.
Why do Docker's ports skip my firewall?
Docker writes its own iptables rules for the ports it publishes, ahead of ufw's. Traefik's 80 and 443, the UI's 8192 with HTTPS access and any database with External access are published that way, so use your cloud provider's firewall for them.
Does Echowa touch containers it didn't create?
No. It only changes Swarm services labelled echowa.managed=true, and the daily image prune only removes images from your apps' own repositories.
How do I report a vulnerability?
Privately, through GitHub's security advisory form, as SECURITY.md describes. Please don't open a public issue.
Deploy it.
Then see everything.
One server, every deploy, every number.
curl -fsSL https://get.echowa.dev/install.sh | sudo bash