Commit Graph
308 Commits
Author SHA1 Message Date
poprhythm 50a5a48ed4 Fix false-positive stale-mount detection in nfs-mount-heal.sh
find -maxdepth 3 couldn't reach immich's thumbs/<uuid>/XX/YY/file (4
levels deep), so it exhausted the 256x256 hash-bucket fan-out with no
match and timed out on every run -- 3 spurious remounts/restarts of
immich_server within 15 minutes of deploy, all falsely alerted as
staleness. Drop -maxdepth entirely; -quit already stops at the first
match via depth-first search, so it's fast regardless of tree depth.
2026-08-25 22:06:43 +00:00
poprhythm 42a31b6a44 Add NFS self-heal automation for immich/calibre/ocis, backed up in git
Stale NFS handles inside containers (ESTALE/errno -116) can persist even
after the host-side mount looks healthy, requiring a manual remount +
container restart. Adds systemd mount-ready hooks (BindsTo) to restart
immich_server/calibre/ocis when their NFS mount unit restarts, plus a
5-minute health-check timer that does a real nested read and force-remounts
on staleness. Host files backed up under system-config/nfs-self-heal/ so
they can be reinstalled after a host rebuild.
2026-08-25 21:56:48 +00:00
poprhythm d302060e4b falco: exclude loopback destinations from miner-pool-port rule
Confirmed 5 false positives over 2026-08-20 to 2026-08-25, all connecting
to ::1:8888 at ~21:3x daily - never a real mining-pool destination since
that's loopback, and every attempt failed instantly (nothing listens on
8888). Couldn't identify the source process (falco loses metadata for it
before it can be captured), but a real miner pool can never be localhost,
so excluding loopback fixes the false-positive class without weakening
the rule for actual remote pool connections.
2026-08-25 21:44:03 +00:00
poprhythm ab73eb2ebb minecraft: set Survival SMP seed -1102400853764765851 2026-08-23 16:25:20 +00:00
poprhythm 12823249aa minecraft: add Survival SMP, comment out Create SMP 2026-08-23 14:33:59 +00:00
poprhythm 10cc1c823b netdata: silence 10min_cpu_usage alarm now that Falco covers miner detection
This alarm was originally the crude proxy for catching cryptominers, but
Falco now detects that directly via process/network behavior. It was
firing several times a day from Ollama's legitimate sustained CPU use
(subwave-controller driving chat completions), with no way to tell that
apart from a real problem using aggregate CPU % alone. Routed to netdata's
"silent" role so it stays visible on the dashboard but stops paging
Telegram/Cloud email.
2026-08-21 01:28:33 +00:00
poprhythm 7c0340519c falco: tune out calibre sudoers-sed and lsyncd log-truncation false positives
Investigated recent Telegram alerts - no intrusion, both new hits trace to
benign one-offs: calibre's linuxserver.io s6-init NOPASSWD setup (same
pattern already whitelisted for obsidian) and lsyncd truncating its own
status log (not evidence-clearing).
2026-08-20 22:18:12 +00:00
poprhythm 8daf4a12d4 minecraft: update Create SMP modpack to 2026-08-20 zip 2026-08-20 22:01:52 +00:00
poprhythm 23f8b903da minecraft: switch back to Create SMP, comment out 3rd Life
New seed -1307549829135522678 (old world data cleared for fresh generation).
Port 55567 stays the same.
2026-08-20 21:44:09 +00:00
poprhythm 53e327c4be glances: attach to npm-network for reverse proxy access 2026-08-17 01:40:15 +00:00
poprhythm 17030f7647 technitium: add container-host DNS instance for cluster mode with dns02
Deploys a second Technitium instance on the container host (192.168.1.67)
to pair with the existing Pi-based instance at dns02 (192.168.1.45) via
native Technitium v14+ clustering for DNS redundancy.
2026-08-17 01:33:49 +00:00
poprhythm 5d2e43c74e dashy: link falco alerts to netdata's Alerts tab instead of homepage 2026-08-16 16:43:38 +00:00
poprhythm 390916cf31 dashy: merge link and description into one line with short date+time 2026-08-16 15:52:28 +00:00
poprhythm 1ec0179de7 chore: revert test comment from git-hook-tamper verification 2026-08-16 15:41:33 +00:00
poprhythm 9ac8960a27 test: verify git-hook-tamper fix (will squash/revert) 2026-08-16 15:41:20 +00:00
poprhythm a44f35e758 falco: fix git-hook-tamper false-positiving on every gitea push
The rule checked proc.name against gitea's managed hook names, but git's
hook dispatcher always execs these as `bash ./hooks/<hookname>.d/gitea` -
proc.name is "bash" (the interpreter), never the hook name. That check
could never match, so this fired CRITICAL 3x (pre-receive/update/
post-receive) on every single push since it was added - including two
notifications the user got moments ago from this repo's own commits.

Fixed to check the actual invoked script path in proc.cmdline instead.
This commit's own push is the live verification.
2026-08-16 15:41:05 +00:00
poprhythm 4420ed3c8b dashy: show local time in Falco alerts widget, cap to 5 entries 2026-08-16 15:35:58 +00:00
poprhythm 33868ee9bb falco: tune out gitea SSH and firefly-iii wait-for-it.sh stdio redirects
"Redirect STDOUT/STDIN to Network Connection in Container" (a reverse-shell
detector) was firing legitimately: gitea's sshd/sshd-session dup2 the
accepted SSH socket onto stdio for every session (4x per connection), and
firefly-iii's wait-for-it.sh does the same TCP-readiness-check dance while
waiting for postgres. Both confirmed recurring via netdata's alert history,
not one-off. Scoped exceptions added to each's specific binary/cmdline,
not the whole container/image.

Verified: a gitea SSH login no longer alerts, while a real dup2-based
redirect (bash's /dev/tcp exec pattern) from an unrelated container still
fires - the exception is narrow, not a blanket disable.

"Run shell untrusted" was also flagged as noisy, but investigation showed
it fired exactly once, during my own rule-testing window, and never
before or since - left alone rather than building a permanent exception
for a self-caused test artifact.
2026-08-16 15:25:04 +00:00
poprhythm d87c4e76ef dashy: add recent Falco alerts widget
Cron script (every 5m) pulls falco_rule_match raise transitions from
netdata's existing alert_transitions API - the same data already driving
the Telegram pipeline - and writes them as a Dashy custom-list JSON file.
No new containers/Redis/Falcosidekick needed for a quick-glance security
event feed on the dashboard.

conf.yml and the crontab entry live outside the repo (per existing
pattern) - conf.yml got a new custom-list widget block in the System
Widgets section, and crontab got a matching */5 entry alongside the
other host-cron jobs.
2026-08-16 15:20:09 +00:00
poprhythm 543d374179 firefly-iii: expose FIDI on 8383 for the SimpleFIN setup UI
Not proxied through NPM - it's a one-time interactive setup plus a
periodic cron target, doesn't need a permanent public hostname.
2026-08-16 14:44:22 +00:00
poprhythm 20e93cea4c falco: scope cloud-metadata-probe past netdata's own auto-detection curl
Found during live testing: netdata's cloud-provider auto-detection runs
curl --fail -s -m1 --noproxy * http://169.254.169.254 on every
startup/reconnect to check whether the host is in AWS/GCP/Azure - standard
monitoring-agent behavior, not a bug. Without this exception the rule
would have paged every time netdata restarts. Scoped to netdata's own
curl specifically so any other connection from that container still
alerts.
2026-08-16 14:40:39 +00:00
poprhythm 2ed0565486 add deploy-stack skill; falco: fix hook-tamper condition, add three more post-incident rules
git-hook-tamper.yaml's condition used proc.exepath, which resolves to the
script interpreter's path (e.g. /bin/busybox) for shebang scripts, not the
script's own path - switched to proc.cmdline, which retains the originally
invoked path. Confirmed via live-testing both ways.

ssh-persistence/cloud-metadata-probe/db-spawned-process round out the
post-incident hardening pass with a few more incubating-ruleset adaptations.
2026-08-16 14:33:56 +00:00
poprhythm 9bf72f8e19 falco: add rules for git hook tampering and unexpected pack-service children
Written after the 2026-08-10/11 gitea internal-API log-poisoning attack
that planted a malicious uploadpack.packObjectsHook backdoor. Catches
both the planting (unexpected exec from a hooks/ path) and the firing
(git-upload-pack/git-receive-pack spawning anything but its own
pack-objects binary), independent of how the hook config got written.
2026-08-16 14:24:29 +00:00
poprhythm 6a52b6195a Merge branch 'main' of https://gitea.kolpacksoftware.com/homelab/docker-infrastructure 2026-08-16 14:19:52 +00:00
poprhythm 4d9d15417a falco/netdata: tune out obsidian/ttyd/ollama noise, fix swap alarm flapping
No repeat intrusion - investigated all Falco alerts since deployment
(2026-08-08 to 2026-08-16); the only crypto-miner rule hits were the
original test alerts. The daily self-resolving Telegram alerts the user
was seeing came from four known-benign sources: Obsidian's Electron
self-re-exec pattern and s6-init sudoers setup (fires ~daily on container
recreation), ttyd/Synchronet's telnet/pv/busybox-extras BBS tooling, and
ollama's nvidia-ctk ldconfig-refresh hook (memfd_create by design). Added
scoped exceptions for each via Falco's own rule extension points, same
pattern as the earlier pg_isready/gitea fixes.

Also fixed netdata's used_swap alarm, which recalculated from the
instantaneous raw sample every 10s with only a 30s notification debounce -
a brief swap spike was enough to page both Telegram and (via Netdata
Cloud) email. Widened the up-delay to 5m so only sustained swap pressure
notifies.

Verified end-to-end via a fresh fake-xmrig test after redeploying Falco
and reloading netdata: CRITICAL alarm fired and Telegram delivery
succeeded.
2026-08-16 14:08:05 +00:00
poprhythm 9c4a54c0cd firefly-iii: add FIDI companion for CSV/OFX/SimpleFIN import
Enables autoimport HTTP endpoint (CAN_POST_AUTOIMPORT) for future
cron-driven scheduled syncs.
2026-08-16 13:52:40 +00:00
poprhythm 184da71705 Update minecraft/docker-compose.yaml 2026-08-15 13:25:39 +00:00
poprhythm 4eb0725832 minecraft: add 3rd Life server, comment out Create SMP 2026-08-14 23:00:00 +00:00
poprhythm 1858572c4d falco/netdata: tune out gitea SSH false positive, make alert text self-explanatory
- 'Drop and execute new binary in container' fired on every git push/pull
  to gitea over SSH (gitea's own binary re-executing itself for git-shell
  hooks looks like container drift). Scoped exception via
  known_drop_and_execute_activities to proc.name=gitea on that specific
  image, not a blanket container whitelist, so other unexpected binaries
  in that container still get caught.
- netdata alarm text was a static generic blurb requiring a manual
  'docker logs falco' every time to find out what actually happened.
  Now interpolates ${label:rule_name}/${label:priority} (exposed by
  Falco's Prometheus metric) so the Telegram message names the specific
  rule directly. Note: literal double-quotes in the info/summary text
  broke netdata's alarm-notify.sh (silent delivery failure, exit 1) -
  avoided.
- Added netdata/health.d and netdata/go.d to the repo for documentation;
  netdata does not auto-deploy these from git, same as gitea's app.ini -
  copy to /srv/netdata/config/ manually and restart the container.
2026-08-08 22:48:05 +00:00
poprhythm ebb2ad7b54 Scope Navidrome to music/albums (curated MusicBrainz-tagged set)
The nas_media share's music/ root also holds To Convert, shared, and
untagged folders that shouldn't feed the radio station's library.
2026-08-08 22:38:14 +00:00
poprhythm fb728d4bfc Add Navidrome and SUB/WAVE AI radio station
Navidrome indexes the existing music library on nas_media for Subsonic
access. SUB/WAVE (byo-proxy variant, LAN-only) provides the Icecast
broadcast, Liquidsoap crossfade/ducking, and AI DJ controller, reusing
the existing Ollama instance over npm-network for the LLM and Piper
for TTS.
2026-08-08 21:20:40 +00:00
poprhythm d6c214d80d minecraft: create SMP new seed -5296138078585483649, regen world 2026-08-08 18:06:59 +00:00
poprhythm ba925fe734 falco: add cryptominer/runtime-security scanner wired into netdata
Detects unauthorized miners (and other runtime threats) via Falco's
syscall/eBPF monitoring, following the 2026-08-06 gitea/xmrig
compromise. Wired into netdata rather than a new notification channel:
Falco exposes a Prometheus /metrics endpoint, netdata scrapes it, and a
new health.d alarm pages through netdata's already-configured Telegram
bot - no new alerting infra needed.

Includes a custom process-name rule for known miner binaries (the stock
Stratum-protocol rule wouldn't have caught the actual gitea incident,
which used a bare host:port with no scheme prefix), an outbound
miner-pool-port rule as a second layer, and rule_matching: all in the
Falco config - without it, Falco silently drops all but the first
matching rule per event, which would have suppressed our custom rule
whenever a stock rule also matched the same process.
2026-08-08 17:41:20 +00:00
poprhythm 225e872fe9 minecraft: add CF_SLUG placeholder to satisfy AUTO_CURSEFORGE zip requirement 2026-08-08 17:22:34 +00:00
poprhythm ee2a3c4d28 minecraft: add Create SMP server from local CurseForge modpack zip 2026-08-08 17:20:29 +00:00
poprhythm c23ff52563 netdata: alert on sustained high CPU via Telegram, restrict LAN exposure
Two cryptominer incursions (inbox-zero, then gitea) went unnoticed until
found manually — there was no alerting on sustained host CPU. Wired
netdata's existing 10min_cpu_usage alarm to notify via the shared Telegram
bot (config is host-only, not committed). Also narrowed the dashboard port
from 0.0.0.0 to the host's LAN IP to reduce exposure.
2026-08-07 00:12:18 +00:00
poprhythm 773e800b34 pin filebrowser, couchdb, statping to explicit versions instead of floating beta/dev/untagged
Same category of risk as the gitea :nightly issue: floating dev/beta tags
let watchtower silently pull unvetted upstream builds. couchdb had no tag
at all (implicit :latest); filebrowser and statping only publish
beta/dev channels upstream so pinned to the exact version in use rather
than a moving target.
2026-08-07 00:07:36 +00:00
poprhythm cfabe21791 gitea: lock down after cryptominer compromise
Pin image to digest instead of :nightly (DB schema already ahead of
stable 1.27, downgrading would break startup) and disable open
self-registration/OpenID signup, which attackers used to plant xmrig
via a git hook.
2026-08-06 23:56:28 +00:00
poprhythm 15640da229 minecraft: comment out immersive portals server 2026-07-29 23:44:06 +00:00
poprhythm 7468df2b8d watchtower: reduce poll interval to 24h to cut notification spam 2026-07-20 13:25:05 +00:00
poprhythm f665865762 cleanup: remove quizmaster and leafweb (unused/orphaned), add watchtower monitor-only labels, minor consistency fixes
- quizmaster: removed entirely (test service, no longer used); also removed Portainer stack and /srv/quizmaster data
- leafweb: removed orphaned MSSQL compose file (no running container, no Portainer stack, no data on disk)
- authelia, gitea, couchdb, portainer, immich (server + ml): add com.centurylinklabs.watchtower.monitor-only=true so watchtower still notifies on new versions without auto-applying them
- ladder: restore restart: unless-stopped (was commented out)
- rackpeek: add missing TZ env var
2026-07-20 02:19:32 +00:00
poprhythm 2f1a988ac3 security: remove hardcoded secrets, drop unneeded privileged mode, restrict internal-only ports to localhost
- watchtower: move Telegram token/chat ID to .env instead of plaintext in compose
- plex: remove stale/dead PLEX_CLAIM token
- uptime-kuma: mount docker.sock read-only (only needs to read container state)
- home-assistant: drop privileged: true (no device passthrough configured)
- glances: drop privileged: true, bind dashboard port to 127.0.0.1
- couchdb, docker-registry, leafweb: bind ports to 127.0.0.1 (proxy/localhost-only access confirmed, no direct LAN clients)
2026-07-20 01:49:56 +00:00
poprhythm 362643a064 minecraft: immersive: fix chat (disable enforce-secure-profile), op OlympicJumperL, allow flight 2026-07-12 17:27:07 +00:00
poprhythm eac385cc70 minecraft: immersive: force gamemode creative on login 2026-07-12 17:22:13 +00:00
poprhythm 586b48457b minecraft: immersive: set creative mode, enable command blocks, bump JVM heap to 3G 2026-07-12 17:18:41 +00:00
poprhythm 4febd0c303 minecraft: rename container to minecraft-immersive 2026-07-12 17:09:32 +00:00
poprhythm ac6946ccb5 minecraft: rename service key to immersive:, restore server name to Immersive Portals 2026-07-12 17:09:16 +00:00
poprhythm 6a2d24b6ea minecraft: bump immersive: to 1.20.4, pin gravity-api-fork to v1.3.0-mc1.20.4 2026-07-12 17:08:11 +00:00
poprhythm 69d6640d54 minecraft: rename modded to immersive:, set seed, add server icon 2026-07-12 16:58:36 +00:00
poprhythm 089f7eafa9 minecraft: add Immersive Portals SMP, comment out creative, rename terra to Terraforma SMP 2026-07-12 16:53:31 +00:00