Deploying Amadioha
This guide takes you from a plan to a running Amadioha with agents sending to
it: choosing how to run it, installing it with Docker, the Linux packages or
Kubernetes, signing in for the first time, connecting your hosts, and keeping
it upgraded and backed up. Each release's own INSTALL.md, in its bundle,
has the same steps for that release.
The newest release is on the releases page. Where a step needs a release newer than 1.0.0-rc.3, it says so.
Plan
Choose an edition
| Edition | For | Images |
|---|---|---|
| Standalone | One organisation: your own hosts, clusters and team | amadioha-soc-indexer, -manager, -dashboard |
| MSP | A provider looking after many clients, each kept apart | amadioha-msp-indexer, -manager, -dashboard |
The MSP edition keeps each client's data in its own indices, gives client accounts their own client only, and enrolls agents with a token per client. Provider staff, who see every client, must have an email in your own domain.
Choose how to run it
| Way | Use it when | Needs |
|---|---|---|
| A Docker host, with the release bundle | One server, and you want the fewest moving parts | Docker Engine and Compose v2 |
| Linux packages (.deb, .rpm) | You manage servers with apt or dnf | Docker Engine and Compose v2 |
| Kubernetes, with the Helm chart | You already run a cluster (from 1.0.0-rc.4) | Kubernetes 1.27 or later, Helm |
| Native, without Docker | Planned: packages that install everything as system services | Not available yet |
All of them run the same three parts:
| Part | What it is |
|---|---|
| Indexer | OpenSearch: alerts, logs, scan findings and the workload inventory, stored and searched |
| Manager | The API, ingest (where agents send, on port 24224), detection, enrichment, scans, Kafka and Postgres, each a supervised process with its own user |
| Dashboard | The console |
Size the server
| Minimum | Comfortable | |
|---|---|---|
| CPU | 2 cores | 4 cores |
| Memory | 4 GB | 8 GB |
| Disk, free for Docker | 40 GB | 100 GB or more |
The MSP edition needs more: at least 4 cores, 8 GB and 80 GB; 8 cores, 16 GB and 200 GB are comfortable for ten clients. The disk holds the images, Trivy's vulnerability databases (about 1.5 GB) and the indexer's data, which grows with the hosts you connect and how long you keep it.
OpenSearch needs vm.max_map_count of at least 262144 on the host (or the
indexer's Kubernetes node):
sudo sysctl -w vm.max_map_count=262144
echo 'vm.max_map_count=262144' | sudo tee /etc/sysctl.d/99-amadioha.conf
Plan the network
| Port | Who reaches it | Notes |
|---|---|---|
| 3000 | People, through your proxy or tunnel | The console listens on 127.0.0.1 until you choose how to reach it |
| 24224 | Your agents | TLS with a key; open it to your agents' addresses only |
The server reaches out over HTTPS to ghcr.io (or Docker Hub) for the
images, to the vulnerability feeds (CISA KEV, ZDI, EPSS, NVD), to image
registries for scans, and to each reputation provider you add a key for.
Nothing else leaves it.
Check what you download
Every image, and the checksums of every release's files, are signed with
Amadioha's release key,
cosign.pub.
Check the bundle and an image before you run them:
version=1.0.0-rc.3
base=https://github.com/sebastined/amadioha-releases/releases/download/v$version
curl -fsSLO "$base/amadioha-$version.tar.gz"
curl -fsSLO "$base/SHA256SUMS"
curl -fsSLO "$base/SHA256SUMS.sigstore.json"
curl -fsSLO "$base/cosign.pub"
cosign verify-blob --key cosign.pub --bundle SHA256SUMS.sigstore.json SHA256SUMS
sha256sum -c --ignore-missing SHA256SUMS
cosign verify --key cosign.pub ghcr.io/sebastined/amadioha-soc-manager:$version
cosign is a
single download. The packages' checksums are in SHA256SUMS-packages, signed
the same way.
Install on a Docker host
On a Linux host (x86-64 or ARM64) used only for Amadioha, with Docker Engine and the Compose plugin from Docker's repositories:
tar xzf "amadioha-$version.tar.gz" && cd "amadioha-$version"
./install.sh --admin-email you@example.com
The script checks the host (it stops on one below the minimum; --skip-checks
goes on, unsupported), writes .env with fresh secrets, sizes the Java heaps
for the host's memory, makes the TLS certificate agents will check, pulls the
images and starts everything. When the stack is up it creates the admin with
the email you gave and prints the console's address and that admin's password
once. The password is kept nowhere else.
Useful options:
| Option | What it does |
|---|---|
--admin-email EMAIL |
Creates the first admin with a generated password. From 1.0.0-rc.4 it is optional: see First sign-in |
--ingest-name NAMES |
The names and addresses agents use to reach this host, comma-separated, for ingest's certificate (default: the host's name and addresses) |
--public-url URL |
The console's address as people reach it, for single sign-on callbacks |
--msp-domain DOMAIN |
MSP edition: your email domain, for provider staff |
--no-start |
Write .env and the certificate, start nothing |
Run the script again at any time: it never overwrites .env, and keeps the
certificate.
What the containers are
docker compose ps # indexer, manager, dashboard: all healthy
docker compose logs manager | grep '\[detect\]' # one process's lines
docker compose exec manager s6-svc -r /run/service/detect # restart one process
The console's Status page shows every process and dependency, and for anything down, why and the command to fix it.
Install with a Linux package
The packages hold the same bundle and need Docker Engine and Compose v2 first.
A release candidate's package names carry its version with dots
(1.0.0.rc.3).
On Ubuntu or Debian:
curl -fsSLO "$base/amadioha-soc_1.0.0.rc.3_all.deb"
sudo apt install ./amadioha-soc_1.0.0.rc.3_all.deb
sudo amadioha-soc-setup --admin-email you@example.com
On the RHEL family (Rocky, Alma, RHEL, Fedora):
curl -fsSLO "$base/amadioha-soc-1.0.0.rc.3-1.noarch.rpm"
sudo dnf install ./amadioha-soc-1.0.0.rc.3-1.noarch.rpm
sudo amadioha-soc-setup --admin-email you@example.com
The package puts the release's files in /usr/share/amadioha-soc;
amadioha-soc-setup copies them to /opt/amadioha and runs install.sh
there with your options. For the MSP edition, use amadioha-msp and
amadioha-msp-setup from the MSP release (v…-msp). After upgrading the
package, run the setup command again: it replaces the release's files, keeps
your .env and tls/, and pulls the new images.
Install on Kubernetes
From 1.0.0-rc.4. The Helm chart runs the indexer and the manager as StatefulSets, each with a persistent volume, and the console as a Deployment, with read-only filesystems and network policies between them. It is listed on Artifact Hub.
1. Make the secrets once, with make-secrets.sh from the bundle: what
install.sh writes to .env and tls/ on a Docker host. It needs openssl
and kubectl, never replaces a Secret that exists, and with --print writes
them as YAML for sealed or external secrets instead.
tar xzf "amadioha-$version.tar.gz" "amadioha-$version/kubernetes/make-secrets.sh"
./amadioha-$version/kubernetes/make-secrets.sh --namespace amadioha \
--ingest-name ingest.example.com --agent-namespace amadioha-agent
2. Install the chart. Name the release amadioha: the secrets' names
follow it. For the MSP edition add --set edition=msp.
helm install amadioha oci://ghcr.io/sebastined/charts/amadioha \
--namespace amadioha --version "$version"
Every setting is in the chart's values.yaml, and values.schema.json refuses
a misspelt or wrong one before anything is installed. values-production.yaml
beside it is a full example: the console behind an Ingress with TLS, ingest
behind a LoadBalancer limited to your agents' networks, larger heaps and
volumes, and provider keys from a Secret:
helm install amadioha oci://ghcr.io/sebastined/charts/amadioha \
--namespace amadioha --version "$version" -f values-production.yaml
Without Helm, kubectl apply -f kubernetes/amadioha.yaml (in the bundle)
installs the chart as rendered with its defaults.
3. The first admin: see First sign-in, or make one in the manager:
pw="$(openssl rand -base64 18 | tr -d '/+=')"
printf '%s' "$pw" | kubectl --namespace amadioha exec -i amadioha-manager-0 -c manager -- \
ama-admin create --email you@example.com && echo "password: $pw"
4. The cluster's own nodes get the agent's chart, in the namespace
make-secrets.sh --agent-namespace prepared (it allows the hostPath volumes
agents need, apart from Amadioha's own):
helm install amadioha-agent oci://ghcr.io/sebastined/charts/amadioha-agent \
--namespace amadioha-agent --version "$version" \
--set ingest.host=amadioha-ingest.amadioha.svc \
--set existingSecret=amadioha-ingest-key --set existingCaSecret=amadioha-ingest-ca
Good to know on Kubernetes:
- Amadioha's namespace runs at the
baselinePod Security level: the manager starts as root so its supervisor can run each process as its own user, with six capabilities and nothing else. - The monitor watches the cluster's pods to scan each new image and keep the
workload inventory, through a read-only ClusterRole (pods, ReplicaSets,
Jobs). Only its own user can read its token.
monitor.kubernetes.enabled=falseturns it off. - Agents outside the cluster need ingest outside it:
ingest.service.type=LoadBalancerwithloadBalancerSourceRanges, andingest.publicHostset to one of the--ingest-namenames.
First sign-in
With --admin-email (or ama-admin), sign in with that email and the
password the installer printed, then change the password.
Without it (from 1.0.0-rc.4), the console opens with the default
account: root@admin.org, password 123. It exists only while the console
has no account at all, and can do one thing: create your admin. Signing in
with it goes straight to Create your admin account; once that account
exists, the default account is deleted and you are signed out, to sign in as
the new admin.
Until the first admin exists, anyone who can reach the console can make it.
Set it up before you expose the console, which listens only on the host (or
on a ClusterIP Service in Kubernetes) until you choose otherwise.
AMA_SIGNIN_DEFAULT_ACCOUNT=false in .env turns the default account off.
Then, on Admin, add your team. Nobody signs up; an admin adds each person as an admin, analyst or viewer, with a password of 12 characters or more. Admins delete accounts there too, never their own and never the last admin, and a deleted account's sessions end at once.
Reach the console
The console listens on 127.0.0.1:3000, so nothing is exposed until you
choose:
A tunnel (recommended): Cloudflare Tunnel with Cloudflare Access, or Tailscale, puts the console behind your own sign-in without opening an inbound port.
A reverse proxy with TLS on the host. With Caddy:
amadioha.example.com { reverse_proxy 127.0.0.1:3000 }Directly, for a lab only:
AMA_CONSOLE_BIND=0.0.0.0in.env.
Set AMA_PUBLIC_URL (or install with --public-url) to the address people
use, and AMA_TRUSTED_PROXIES to your proxy's address, so rate limits see
each person's own address.
Connect hosts
The server watches itself from the first minute. For every other host:
From the console. On Hosts, Connect a host offers each platform's agent (Linux, macOS and Windows) as one download, with this server's certificate inside, its SHA-256 beside it, and the install command with this server's name filled in. Admins can put the shared key in the command; each read of it is in the audit log.
By hand, on Linux. Install Fluent Bit from its official packages, copy
tls/ingest.crt from the Amadioha host (it is not secret), then run the
installer from the bundle's agents/linux:
sudo ./install-agent.sh --ingest-host amadioha.example.com --ca-file ingest.crt \
--shared-key "$AMA_INGEST_SHARED_KEY"
The key is AMA_INGEST_SHARED_KEY in .env. --ingest-host must be one of
the names in ingest's certificate. Each agent sends its login and sudo logs,
its system log and audit log, its installed packages, and every minute its
CPU, memory, disks, load and uptime; --no-syslog, --no-audit,
--no-metrics and --no-packages leave each out. --audit-rules installs
Amadioha's audit rules, which SigmaHQ's process rules need: it changes the
host's audit configuration, so it is never on by default.
Containers and clusters. The bundle's swarm/swarm-stack.yml runs the
agent on every node of a Docker Swarm, and the amadioha-agent Helm chart on
every node of a Kubernetes cluster (above).
Each host appears on Hosts and Status within a minute. If one goes quiet, Status lists the likely causes, most likely first, each with what to run on the host: a command seen there that stopped the agent or shut the host down, a late heartbeat, an agent that crashed, or a network that no longer reaches Amadioha.
Settings worth setting
Most settings are on the console's Integrations page; .env (or the
chart's manager.env and manager.envFromSecret) holds the same ones.
- Reputation providers: AbuseIPDB, IPinfo, IPQualityScore, ipgeolocation and Project Honey Pot, each with its own key. A provider without a key is left out of the verdict, never counted as clean.
- Single sign-on: Google, GitHub, Microsoft, Okta, Auth0, Keycloak, GitLab
or any OpenID Connect provider. Only people who already have an account
sign in;
AMA_SSO_ALLOWED_DOMAINSlimits it to your domains. - Vulnerability feeds: CISA KEV, ZDI, EPSS and NVD, each on unless turned off; an NVD key raises NVD's rate limit.
- Scans: a Snyk token adds Snyk to Trivy; registry credentials let it scan private images.
- Sign-in page:
AMA_SIGNIN_CONTACT, an address shown to people without an account.
Upgrade
Back up first (next section), then on a Docker host:
docker compose pull && docker compose up -d
Pin a version in .env (AMADIOHA_VERSION) to choose when to upgrade; with
latest this moves to the newest release. On Kubernetes:
helm upgrade amadioha oci://ghcr.io/sebastined/charts/amadioha \
--namespace amadioha --version NEW
The manager brings its database up to date when it starts, and logs each migration. Going back to an older release after an upgrade is refused with a message, rather than running old code against a newer database: restore the backup instead.
Back up and restore
| What | Holds |
|---|---|
The manager's volume (amadioha_manager-data) |
Postgres: console accounts, the audit log, saved searches; Kafka's buffer; Trivy's databases |
The indexer's volume (amadioha_indexer-data) |
Alerts, findings and logs |
.env and tls/ |
The secrets and certificates everything else is reached with |
The accounts and the audit log are the part you cannot rebuild:
docker compose exec -T -e PGPASSWORD="$(sed -n 's/^POSTGRES_PASSWORD=//p' .env)" manager \
/usr/lib/postgresql/18/bin/pg_dump -h 127.0.0.1 -U ama ama > amadioha-accounts.sql
Keep .env and tls/ with the backups. On Kubernetes, back up both volumes
and the Secrets make-secrets.sh made.
Security checklist
- Check every download and image with
cosignbefore you run it. - Keep the console behind a tunnel or a TLS proxy; never expose port 3000 directly outside a lab.
- Open port 24224 to your agents' networks only.
- Create your admin at install (
--admin-email), or finish setup before the console is reachable by others. - Give people the lowest role they need; use single sign-on where you can.
- Read the Audit log page: sign-ins, account changes, alert changes, scans and exports are all there.
- Keep
.env,tls/and the backups readable by root only. - Report a vulnerability in Amadioha privately, as
SECURITY.mdin the bundle says, never on the forum.
Remove
docker compose down # stops everything, keeps the data
docker compose down -v # also deletes every volume, permanently
On Kubernetes, helm uninstall amadioha --namespace amadioha keeps the
volumes and Secrets; delete them by their label to remove the data too:
kubectl --namespace amadioha delete pvc,secret -l app.kubernetes.io/part-of=amadioha
Get help
Ask in the community forum: other users and the maintainer answer there, and the replies that help become the answer for the next person. Say how you installed Amadioha, its version and edition, and what the Status page shows. Leave out passwords, keys and tokens: the forum is public.