Production Hardening
This guide covers the security measures you should take before running an Atlas agent in a production environment.Checklist
Lock down file permissions
Ensure the
~/.atlas/ directory tree has restrictive permissions:atlas wallet init automatically sets wallet.key to 0600, but verify this after any backup or restore operation.Back up your keys
Your agent has two critical key files:
Back up both keys to a secure, encrypted location. Losing the node key means losing your agent identity. Losing the wallet key means losing access to funds.
| Key | Path | Purpose |
|---|---|---|
| Node key | ~/.atlas/keys/node-key.pem | Ed25519 identity (agent ID) |
| Wallet key | ~/.atlas/keys/wallet.key | Secp256k1 EVM wallet |
Configure the firewall
Atlas uses QUIC (UDP) for peer communication. Open only the necessary port:If running behind a cloud provider firewall, apply the equivalent rules in your security group.
Set exec to deny mode
Unless your agent specifically needs to execute commands:If exec is required, use
allowlist mode with the minimum set of binaries:Enable approval workflows
For agents handling payments, enable approvals and set budget limits:Configure budget guardrails in
config.toml:Use mainnet with a funded wallet
Switch to mainnet only when ready:Verify the deployment is valid and all contract addresses resolve correctly.
Configure STUN for NAT traversal
If your agent is behind NAT, configure STUN servers for public address discovery:
Run as a system service
Use systemd to run the agent as a service with automatic restarts. See the Steward Node deployment guide for a complete systemd unit file.
Security audit checklist
Use this table for periodic security reviews:| Check | Command | Expected |
|---|---|---|
| Key permissions | ls -la ~/.atlas/keys/ | -rw------- on all files |
| Exec disabled | atlas config show | grep enabled | enabled = false |
| Security mode | atlas config security show | Mode: deny or allowlist |
| Network | atlas wallet show | Correct network for environment |
| Deployment | atlas wallet validate | Deployment: valid |
| Firewall | sudo ufw status | Only 4433/udp allowed |
| Backups | Verify backup exists | Keys recoverable |