This document describes the security measures used by the homelab and areas for future improvement.
- Tailscale provides remote access to the server.
- Services are intended to remain accessible only through the private tailnet.
- Tailscale Serve provides HTTPS access to Vaultwarden.
- Tailscale Funnel is not used.
Vaultwarden runs inside Docker and binds to the server's loopback interface:
ports:
- "127.0.0.1:8080:80"This prevents the container's web interface from being directly exposed on the server's LAN interfaces.
Tailscale Serve provides the HTTPS entry point.
The server uses nftables with a default-deny inbound policy.
The firewall:
- Allows loopback traffic.
- Allows established and related connections.
- Allows inbound traffic through the Tailscale interface.
- Allows UDP port 41641 for Tailscale direct peer-to-peer connectivity.
- Allows DHCP traffic on the configured wired interface.
- Allows selected IPv4 ICMP and IPv6 ICMP traffic, including neighbor discovery.
- Drops other inbound traffic by default.
Firewall changes should be reviewed carefully to avoid losing SSH or Tailscale access.
SSH is configured to:
- Disable root login.
- Disable password authentication.
- Require public-key authentication.
- Disable keyboard-interactive authentication.
Always test SSH key authentication in a separate session before changing SSH configuration.
- User registration is disabled after initial account creation.
- Persistent application data is stored outside the container.
- The container uses a pinned image version.
- The service is configured to restart unless stopped.
- The application is not directly exposed on the server's network interfaces.
Keep Vaultwarden updated and review release notes before upgrading.
Private configuration must never be committed to the public repository.
The following files and information should remain private:
ansible/inventory/hosts.yml- Tailscale IP addresses and private host information.
- Filesystem UUIDs.
- Vaultwarden domain configuration.
- Environment files containing deployment configuration or secrets.
- Passwords, API keys, authentication tokens, and private keys.
The repository includes example configuration files containing placeholders.
The .gitignore file excludes private inventory files and environment files.
Before committing changes, review staged files:
git status --short
git diff --cachedVaultwarden backups contain sensitive information, including:
- The Vaultwarden database.
- The server's RSA key.
- Attachments and sends.
The backup script uses restrictive permissions and stores backups under a root-owned directory.
Do not upload backups to public repositories or untrusted storage.
See Backup and Recovery for backup details and restoration procedures.
- Backups are currently stored on the same physical disk as application data.
- An independent off-site backup destination is planned.
- Secrets management could be improved with a dedicated solution such as Infisical.
- Container image updates and vulnerability monitoring should be incorporated into regular maintenance.
- Firewall rules currently depend on the server's network interface configuration.