01 SSH Public Key Authentication
Disable SSH password logins and authenticate exclusively with strong SSH keys (such as Ed25519) to eliminate brute-force attacks.
Action: Confirm key-based login works in a second terminal before setting PasswordAuthentication no.
02 SSH Host Key Verification
Verify the server host key fingerprint on first connection to prevent man-in-the-middle attacks.
Action: Never bypass host key checks globally; investigate any changed host key warning.
03 Least Privilege
Never run Misskey directly as root; use a dedicated unprivileged user or isolated container.
Action: Use a non-root admin user with sudo only when privileged actions are required.
04 HTTPS & TLS Certificates
Valid HTTPS (e.g., Let’s Encrypt) protects credentials and is mandatory for ActivityPub federation.
Action: Verify automatic certificate renewal and HTTP-to-HTTPS redirection.
05 Host Firewall
Restrict inbound traffic to ports 80/443 (web) and your admin SSH port only.
Action: Use UFW or nftables with default-deny inbound rules; never disable the firewall globally.
06 Keep PostgreSQL & Redis Private
PostgreSQL (5432) and Redis (6379) must never be exposed on public network interfaces.
Action: Bind strictly to Docker internal networks or 127.0.0.1.
07 Admin Account Protection
Create the initial admin account yourself, using a unique strong password plus 2FA (TOTP/passkey).
Action: Temporarily restrict external access if needed until initial admin registration finishes.
08 Initial Registration Restrictions
Leaving open registration enabled invites automated spam. Start closed or invite-only.
Action: Keep open registration disabled or require invite codes in Misskey admin settings.
09 Anti-Spam Measures
Configure email verification, upload size limits, rate limits, and optional registration challenges.
Action: Set drive and remote media cache quotas matched to your SSD capacity.
10 Moderation & Server Rules
Define clear server rules, abuse reporting contacts, and moderation policies even for small communities.
Action: Publish server rules and an admin contact address in your instance profile.
11 Gmail App Password Requirements
Using Gmail SMTP requires 2-Step Verification on your Google Account, and App Passwords may be unavailable on certain accounts or managed Workspace policies.
Action: Never paste App Passwords into AI chat; enter them directly inside the Misskey web admin panel.
12 SMTP Sending Limits
Consumer Gmail imposes daily sending limits. Larger communities should migrate to a dedicated transactional SMTP relay.
Action: Start with Gmail for personal use and switch to a dedicated relay if user count grows.
13 Security Updates
Regularly patch the Linux OS, Docker, PostgreSQL, and Misskey after reading release notes.
Action: Always read Misskey’s CHANGELOG and snapshot the database before upgrading.
14 PostgreSQL Backups
Schedule automated pg_dump backups and copy encrypted archives off the primary server.
Action: Run at least daily automated dumps with retention rotation.
15 Media & Config Backups
Back up uploaded drive media and configuration files alongside PostgreSQL.
Action: Encrypt configuration backups before storing them off-site.
16 Restore Drills
An untested backup is not a backup. Periodically verify you can actually restore from it.
Action: Practice restoring a dump into a test container and document the exact command sequence.
17 ActivityPub Federation Hygiene
Federation brings remote media caches and delivery queues. Monitor SSD usage and Redis queues.
Action: Configure remote media cache expiration to prevent SSD exhaustion.
18 Domain Continuity & DB Re-init Warning
In ActivityPub, your domain + cryptographic keys define server identity. Changing domains or recreating the database on an active domain breaks federation with remote instances.
Action: Pick a domain you intend to keep long-term, and never recreate the database on an already-federated domain.