All checks were successful
deploy / ansible (push) Successful in 8m12s
Monitoring covered availability only: a new WireGuard peer, a machine on the private network, an extra account or key, or a login from outside the VPN would have gone unnoticed. security-metrics runs every minute on both hosts and exports what it finds for node_exporter: WireGuard peers and where they connect from, addresses answering a ping sweep of the VPC, login accounts, sudo and docker members, listening ports, containers with host-level access, and fingerprints of the account, sudoers, sshd, WireGuard and authorized_keys files. Each item is compared with a baseline in the role defaults and host_vars and exported with known="true|false", so a deliberate change has to update the baseline with it. On ops it also counts Forgejo users, keys and runners. Grafana gets a Security dashboard and an alert group for anything unknown, a changed access file, an SSH login from outside WireGuard, failed-login bursts on SSH, Forgejo, Grafana and the asxp.io admin, a new container, and for logs or the collector itself going quiet, which would otherwise blind the rest. It never reads `wg show dump`, which prints preshared keys. Assisted-by: Claude:fable-5-2
56 lines
2 KiB
YAML
56 lines
2 KiB
YAML
---
|
|
public_ip: 46.62.228.216
|
|
vpc_ip: "{{ asxpio_services_vpc_ip }}"
|
|
wireguard_ip: "{{ asxpio_services_wireguard_ip }}"
|
|
|
|
ssh_allow_public_git: false
|
|
|
|
# s3fs is off: its cache took ~10 GB and nothing reads the mounts any more;
|
|
# restic and s3_replicate talk to object storage directly
|
|
s3fs_enabled: false
|
|
|
|
# restic: ejabberd's Mnesia through its own backup command, its SQLite
|
|
# through the online backup API. The Paper world is copied live (RCON is
|
|
# off, so there is no save-off); its autosave keeps that close enough.
|
|
restic_paths:
|
|
- /etc
|
|
- /opt
|
|
- /var/lib/docker/volumes/xmpp_database
|
|
- /var/lib/docker/volumes/xmpp_tackygram
|
|
restic_excludes:
|
|
- /opt/containerd
|
|
- /opt/minecraft/cache
|
|
- /opt/minecraft/libraries
|
|
- /opt/minecraft/versions
|
|
restic_pre_hooks:
|
|
- docker exec xmpp-ejabberd-1 ejabberdctl backup /opt/ejabberd/database/nightly.backup
|
|
- sqlite3 /var/lib/docker/volumes/xmpp_database/_data/ejabberd.sqlite ".backup '$STAGE/ejabberd.sqlite'"
|
|
restic_schedule: "*-*-* 04:15:00"
|
|
|
|
# Security baseline (role monitoring_agent)
|
|
security_wg_peer_keys:
|
|
"0gRrNiV4FjP6ipczZCRD3dsnK7k7rl6IyjG84fPaJB4=": asxpio-ops
|
|
security_ports_extra:
|
|
- tcp/80/docker-proxy # ACME challenges, forwarded to ops
|
|
- tcp/443/xray
|
|
- udp/*/xray # outbound relay sockets
|
|
- tcp/*/forgejo-runner # cache server, random ports
|
|
- tcp/8000/docker-proxy # SillyTavern, WireGuard address
|
|
- tcp/25565/docker-proxy # Minecraft
|
|
- udp/19132/docker-proxy
|
|
- tcp/5222/docker-proxy # XMPP
|
|
- tcp/5223/docker-proxy
|
|
- tcp/5269/docker-proxy
|
|
- tcp/5443/docker-proxy
|
|
- tcp/7777/docker-proxy # SOCKS5 bytestreams
|
|
- tcp/8448/docker-proxy # Matrix federation
|
|
- tcp/3478/docker-proxy # TURN and its relay ranges
|
|
- udp/3478/docker-proxy
|
|
- udp/49160-49199/docker-proxy
|
|
- udp/50000-50099/docker-proxy
|
|
- udp/52820/ # WireGuard
|
|
security_containers_extra:
|
|
forgejo-runner: [host-net, docker-sock]
|
|
forgejo-runner-interop: [docker-sock]
|
|
"FORGEJO-ACTIONS-TASK-.*": [docker-sock] # docker_host: automount
|
|
xray: [host-net]
|