Node security
Node security
Servers on another machine (a node) are run over SSH and Docker, with nothing to install on the node. Because of that, the panel holds the way in to every node, and it is built so that a stolen database is not enough to open them.
What the panel does
- Keys are encrypted. Each node's SSH private key is stored encrypted (AES-256-GCM). The key that opens it, the master key, is not in the database.
- Where the master key lives. Set
RUSTDACTYL_MASTER_KEY(create one withopenssl rand -base64 32) in/etc/rustdactyl/env, then restart the panel:sudo systemctl restart rustdactyl. If you set nothing, the panel createsmaster.keyin its data folder. - Keys are never shown again. The decrypted copy exists only in RAM (
/dev/shm) while the panel runs. - Host keys are pinned. The first connection saves the node's SSH host key. If it ever changes, the panel refuses to connect. After reinstalling a node, open Admin → Nodes and choose Reset host key, then Test.
What you do on the node
- Use a key made only for the panel, ideally with a dedicated account:
useradd -m -s /bin/bash rustdactyl && usermod -aG docker rustdactyl. Thedockergroup is powerful, so this separates and audits access but is not a strong boundary on its own. - Tie the key to the panel in
~/.ssh/authorized_keys:from="PANEL_IP" ssh-ed25519 AAAA… rustdactyl-panel - Allow SSH only from the panel:
ufw allow from PANEL_IP to any port 22 proto tcp, thenufw deny 22/tcp.
Backups
Keep the database and the master key in different backups. Without the master key the stored node keys cannot be read; the nodes then show No key and you paste the keys in again.