Skip to content
Anlyon
Esc
↑↓navigate↵open⌘Jpreview
On this page

Security of a self-hosted install

Where a self-hosted Anlyon install keeps credentials, how the root key protects them, how to read secrets from your own AWS Secrets Manager or HashiCorp Vault, and how to report a vulnerability.

On a self-hosted install, the credentials your agents act with never leave your infrastructure, except in the requests Anlyon sends to the provider each one belongs to. This page says where they are kept and what protects them.

Know where credentials live

What Where it is kept
Stored secrets and connected accounts’ tokens Your Postgres, encrypted under keys derived from the root key
Secret instance settings: the SMTP password, OAuth client secrets, the licence key Your Postgres, encrypted. The console shows only whether each one is set
The root key /opt/anlyon/.env on your server, readable by root only
Backups /opt/anlyon/backups and /opt/anlyon/backup-keys, readable by root only. The root key is never in the archive

Your agents never hold a provider credential. An agent names an action, and Anlyon adds the credential to the request at the moment of the call. See Secrets.

The root key

ANLYON_ROOT_KEY in .env is the one secret of the install. Every key the server needs, for sessions, API keys, stored secrets and connected accounts, is derived from it.

  • If it is lost, stored secrets and connected accounts can never be read again. Nobody can recover them, including Anlyon.
  • If it changes, everyone is signed out and every API key stops working.
  • The console never shows it.

Keep a copy somewhere other than the server, such as a password manager or a vault, from the moment you install. Each backup writes it to its own keys file, apart from the archive: copy the two to different places, because whoever has both can read the stored secrets and connected accounts. See Back up and restore.

Read secrets from your own secret store

On the Enterprise edition, a secret can point into your own AWS Secrets Manager or HashiCorp Vault instead of holding a value. Anlyon reads the value when an action uses it, for that one request. It keeps the value in memory for the store’s cache time, and never writes it to its own storage. The store’s own credential is encrypted like a secret’s value and is never returned.

If your store is on a private network, such as a Vault at 10.0.0.5, an instance admin can let workspaces reach private addresses with the Network setting.

See Read secrets from your own secret store to set one up.

Know what leaves your server

In normal operation, the server connects to what you set up:

  • the providers and MCP servers your actions call;
  • your SMTP server, file store, audit sinks, secret stores and identity provider, if you configure them;
  • once a day, the anonymous telemetry report, unless you turn it off.

A licence key is checked on the server. Nothing is sent to verify it.

The installer and anlyon-selfhost upgrade also download the release from GitHub, and Docker images from their registries. The installer looks up the server’s public IP address to check your domain.

Keep the install safe

  • Serve it on a domain. With a domain, Caddy serves HTTPS with its own certificate. Without one, sign-ins, the setup token and API keys cross the network unencrypted: use plain HTTP for a trial only.
  • Keep the docker group small. Membership is equivalent to root on the server. The installer adds no one to it unless you say yes.
  • Upgrade to the latest release. Security fixes go into the latest release. See Upgrade.
  • Copy backups off the server, the archive and the keys file to different places.

Report a vulnerability

Please report a vulnerability privately. Do not open a public issue.

Include what you found, how to reproduce it, and the version or commit you tested. We acknowledge a report within two working days and keep you updated until the fix ships. Security fixes are released within 48 hours of a confirmed fix being ready, and we credit reporters who want to be credited.

In scope Out of scope
The server, the console, the SDKs, the CLI and the MCP server in the repository, and the Docker Compose deployment Findings that need a compromised host, an operator who already has admin access, or a misconfiguration these docs tell you not to make

Was this page helpful?