Commit Graph
248 Commits
Author SHA1 Message Date
PhilandClaude Opus 5.5 41e9428412 crowdsec: host sshd + Gitea logs, nftables firewall bouncer (SSH bans only for now), weekly hub update
- crowdsec image -> latest-debian (journalctl); reads host journal (sshd)
  and Gitea's log file (LePresidente/gitea); LAPI on 127.0.0.1:8080
- gitea also logs to /data/gitea/log/gitea.log (router lines console only)
- host: crowdsec-firewall-bouncer-nftables from packagecloud any/any, own
  nft tables on input+forward hooks; limited to local ssh detections and
  manual bans until crowdsec_firewall_all_decisions
- weekly cscli hub update/upgrade + SIGHUP

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 13:26:00 -07:00
PhilandClaude Opus 5.5 fa0060523f gitea: Pocket ID only for web logins (no password form, no Gitea passkeys)
phil (linked to Pocket ID) is now admin; git_admin stays as a CLI fallback.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 13:21:46 -07:00
PhilandClaude Opus 5.5 d24b6c3bac gitea: trust only Caddy as proxy, argon2 hashes, private emails by default, no password Basic auth
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 13:19:18 -07:00
PhilandClaude Opus 5.5 9696c0e441 caddy: reload instead of restart, validate before deploy, HTTP catch-all, header timeout, body limits; dns: drop stale records
- Caddyfile moves to config/ (directory mount) so 'caddy reload' sees the
  new file; the handler reloads gracefully instead of restarting
- template validate: runs 'caddy validate' with the image Caddy uses
- http:// catch-all aborts plain-HTTP requests for unknown hosts / bare IP;
  known hosts keep the automatic HTTPS redirect (tested)
- read_header timeout 10s (default 1 min)
- body_limit snippet: 1MB static sites, tinyauth, repaircafe; 10MB Pocket ID,
  Changedetection, ByteStash, Gotify, iGotify; 20MB Baikal
- dns: remove grist, habits, office, podcasts, pdftools (nothing serves them)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 13:13:16 -07:00
PhilandClaude Opus 5.5 1d21bd53cc crowdsec: enroll in the CrowdSec console
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 12:31:29 -07:00
PhilandClaude Opus 5.5 6f795d78cc crowdsec: use the virtual-patching appsec config
appsec-default references out-of-band rules (experimental-*) that only the
appsec-generic-rules collection installs, so crowdsec refused to start.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 12:26:57 -07:00
PhilandClaude Opus 5.5 48a4e48b84 CrowdSec (detection only) and staged custom-Caddy plumbing
- crowdsec stack on lava reading Caddy's access log (logs/ subpath only),
  collections caddy, http-cve, base-http-scenarios, appsec-virtual-patching;
  AppSec listener on :7422; allowlist for lava, Tailscale, the server
- caddy_custom switch (image + plugin directives), staged by
  caddy_crowdsec_enforce / caddy_appsec / caddy_ratelimit; all off, so the
  rendered config is unchanged in effect
- (protect) on every site, (ratelimit_login) on login paths, both empty
  until enabled; caddy recreated when compose.yml or .env changes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 12:22:15 -07:00
PhilandClaude Opus 5.5 2351740aa7 Tinyauth: Pocket ID login in front of Baikal admin and Changedetection UI
Caddy (sso) snippet does forward_auth to Tinyauth for a given matcher;
Tinyauth sends people to Pocket ID and requires tinyauth_admin_group.
Baikal: only /admin. Changedetection: everything except /api/.
New subdomain auth.thesatelliteoflove.com (dropped from removed_records).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 12:04:34 -07:00
PhilandClaude Opus 5.5 30bc0a46b4 caddy: access logs, security headers; dns: CAA records
- (logging) snippet: JSON access log at /data/logs/access.log, rotated,
  tokens/OIDC codes and API key headers masked
- (security_headers)/(no_framing): nosniff, Referrer-Policy and
  X-Frame-Options only where the app sets none; drop Server/X-Powered-By
- (static_site): adds a CSP (base-uri, object-src, frame-ancestors,
  form-action) and Permissions-Policy to the four static sites
- CAA records: Let's Encrypt + ZeroSSL on both domains, Amazon on
  thesatelliteoflove.com for links. (CloudFront/ACM), no wildcards

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 11:52:22 -07:00
PhilandClaude Opus 5.5 0afdd670ff caddy: serve pdg root page
try_files {path}/ never matches "/" in Caddy 2.11, so the pdg home
page returned the 404 page. Adding {path}/index.html after {path}/
fixes / while keeping the /dir -> /dir/ redirect for subfolders.
Tested locally against a copy of the site: only / changes (404 -> 200).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 11:22:00 -07:00
PhilandClaude Opus 5.5 14978b6de0 Dockge: bind port 5001 to the Tailscale IP only
It was published on 0.0.0.0 and [::]; ufw-docker blocked it from the
internet, but the other admin UIs already bind to network.docker_host_ip.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 11:13:51 -07:00
PhilandClaude Opus 5.5 c2d4e584a9 hoarder: meilisearch v1.41.0 -> v1.55.0, MEILI_UPGRADE_DB
v1.51 renamed --experimental-dumpless-upgrade to --upgrade-db, so the
old env var stopped doing anything. v1.55.0 matches Karakeep's upstream
compose.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 11:09:13 -07:00
PhilandClaude Opus 5.5 bdb0e779e3 starpunk: v2.18.3, skip webmentions to Gitea
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 13:44:41 -07:00
PhilandClaude Opus 5.5 808c177b02 StarPunk: MCP sidecar and /mcp routing (v2.15.0)
Add the starpunk-mcp container (same image, uvicorn :8001, shared env via
anchor, BACKGROUND_WORKERS_ENABLED=false, socket healthcheck) and route
/mcp and /.well-known/oauth-protected-resource to it in Caddy. Bump
starpunk_version to v2.15.0 (needs the v2.15.0 tag built first).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 16:38:03 -07:00
PhilandClaude Opus 5.5 1cbfa29654 GoToSocial: raise remote media limit to 100MiB
Mastodon allows ~99MB video uploads; the 40MiB default dropped many
remote videos with 'file size limit reached'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 15:34:12 -07:00
PhilandClaude Opus 5.5 87cc9a625f StarPunk v2.14.0: reply notifications to Gotify
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 14:30:29 -07:00
PhilandClaude Opus 5.5 324bc08eae StarPunk v2.13.0: backfeed on (ADR-073)
New GoToSocial and Threads tokens with read scopes are in the vault.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 12:50:51 -07:00
PhilandClaude Opus 5.5 d42f0cc863 Baikal: move to ghcr.io/dschoepel/baikal 0.13.0
ckulka/baikal is stuck on Baikal 0.10.1 (PHP 8.1). dschoepel/baikal is a
drop-in successor of its nginx variant (same volumes, UID 101) with
Baikal 0.13.0 on PHP 8.4. Upgrade tested on a copy of the data.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 20:52:36 -07:00
PhilandClaude Opus 5.5 58cbdf39f7 Dawarich: back to latest, updated by dockcheck
The 1.7 -> 1.22 upgrade is done; the app gets the dockcheck label.
Redis and Postgres stay excluded in dockcheck.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 18:08:34 -07:00
PhilandClaude Opus 5.5 a79c9246df Dawarich: next upgrade stop, 1.18.1, and Redis 8
1.17.0 background jobs drained cleanly. 1.18.1 (skipping 1.18.0, which
needed the hotfix) converts Areas to Places and re-detects visits across
the whole history; the changes can't be rolled back, so a fresh dump was
taken first (~/backups/dawarich-1.17.0-20261109). Redis goes to 8 as in
upstream's compose since 1.18.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 16:43:58 -07:00
PhilandClaude Opus 5.5 70abb65d31 Dawarich 1.17.0: background jobs move into the app container
Follows the 1.17.0 upgrade notes and upstream compose: the separate
dawarich_sidekiq service is gone (removed on the host before deploying),
the app runs Sidekiq embedded (SIDEKIQ_EMBEDDED=true, WEB_CONCURRENCY=0,
BACKGROUND_PROCESSING_CONCURRENCY=2), gets stop_grace_period 60s, and the
limits match upstream (1 CPU, 4G).

Fresh dump before this step: ~/backups/dawarich-1.16.0-20261109.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 16:34:10 -07:00
PhilandClaude Opus 5.5 558b6d1a43 HeyForm: MongoDB 4.4 -> 7.0, back on the real data
4.4 is end-of-life. Moved by mongodump/mongorestore into a new volume
(heyform_database7); the 4.4 volume stays for rollback.

The restore also fixes a data mix-up. From Nov 2024 the compose file set
MONGO_URI='mongodb://mongo:27017/heyform' in list form, so the quotes
became part of the value and HeyForm used a database literally named
"heyform'". The v3 upgrade (a1a79af) dropped the quotes, which switched
HeyForm to the old "heyform" database from the first week of setup, so
the real Repairs and Volunteer forms (91 submissions) disappeared. The new
volume holds "heyform'" restored as "heyform". Tested first with v3 on a
throwaway Mongo 7.0: both forms load.

Backups: ~/backups/heyform-mongo4.4-20261109 on the server (dump of both
databases + tar of the 4.4 volume).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 16:18:33 -07:00
PhilandClaude Opus 5.5 7916b0d223 Gitea: 1.27.3 -> latest (28.x), runner: act_runner nightly -> gitea/runner
gitea/gitea:1 stopped moving in August when Gitea renumbered to 28.0, and
1.27 gets no more fixes (28.0 fixed ~20 CVEs). Track :latest so the next
renumber can't freeze it again. The act_runner image was renamed to
gitea/runner; the old one stopped updating in April. The .runner
registration file and config format carry over unchanged.

v28 starts deleting Actions runs older than 400 days; set
RUN_RETENTION_DAYS=0 to keep the history.

Checked for this instance: ROOT_URL/SSH_DOMAIN set, no ALLOWED_HOST_LIST,
no webhooks or custom templates, one pull mirror from a public host.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 14:45:44 -07:00
PhilandClaude Opus 5.5 339c110280 Paperless back to latest; drop the HeyForm port workaround
Both earlier failures had one cause: the host still had old images cached
under the :latest tag (paperless-ngx from 2025-09, i.e. 2.x; heyform from
2025-02, i.e. v2), and the compose task only pulls missing images. So the
switch to :latest started year-old code. Pulled the real :latest images on
the host. Paperless 3.4.2 has no pending migrations on this database
(checked on a copy), and HeyForm v3.0.6 listens on 9157 as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 14:21:58 -07:00
PhilandClaude Opus 5.5 5262a9895c Fix HeyForm port after v3.0.6; hold Paperless at 3.4.1
- HeyForm v3.0.6 changed the default listen port from 9157 to 8000, so
  Caddy got 502s. Set APP_LISTEN_PORT=9157 explicitly.
- Paperless 3.4.2 fails its migration check on this database
  (InconsistentMigrationHistory, squashed 1022..1036). Rolled back to 3.4.1
  until that is investigated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 14:03:10 -07:00
PhilandClaude Opus 5.5 4550100dd1 Dawarich: pin the image tag for the step-by-step 1.7.11 -> 1.22.0 upgrade
First stop is 1.10.3 (drops the legacy lat/lon columns with the 1.10.2
lock fix). Next stops: 1.14.5 (security fix), 1.16.0, 1.17.0 (sidekiq
merged into the app), 1.18.1, 1.22.0, then back to latest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 13:56:51 -07:00
PhilandClaude Opus 5.5 e3d78065ab Track stable tags for Paperless and HeyForm, and let dockcheck update them
Pinned versions never got updates, because dockcheck only notices a new
image under the same tag.

- paperless-ngx: 3.4.1 -> latest (stable only; beta/dev have own tags)
- paperless redis: 7 -> 8-alpine (reads Redis 7 data as-is)
- gotenberg: 8.39.0 -> 8 (9 changed the API Paperless calls)
- tika: 3.3.1.0 -> 3.3.3.0 (no floating 3.x tag; Tika 4 breaks Paperless)
- heyform: v3.0.5 -> latest (only moved by v* release tags)
- add mag37.dockcheck.update to all of the above

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 13:56:47 -07:00
PhilandClaude Opus 5.5 09602f82f3 starpunk: v2.10.1 (WebSub hardening), TRUSTED_PROXY=true
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 11:32:13 -07:00
PhilandClaude Opus 5.5 4990d3ce47 gotosocial: only Pocket ID group 'gotosocial' may log in
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 08:09:58 -07:00
PhilandClaude Opus 5.5 2e31e9a90a gotosocial: remote post cleanup (90 days), languages, search indexing, Mastodon version for apps, email sender name
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 08:08:10 -07:00
PhilandClaude Opus 5.5 c30c8e42d0 gotosocial: drop invalid GTS_HTTP_CLIENT and empty Let's Encrypt email, set landing page user
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 08:01:37 -07:00
PhilandClaude Opus 5.5 183d105594 Stack permissions: gokapi dir readable by docker group, drop paperless leftover .env
dockcheck runs as phil (docker group) and couldn't read
/opt/stacks/gokapi (0700 root), so the labelled gokapi container could
never be auto-updated. Paperless's root-only .env (2024 leftover, unused,
same values as docker-compose.env) made docker compose fail for phil.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 07:41:51 -07:00
PhilandClaude Opus 5.5 f1736343cf starpunk: v2.6.0 (Threads crossposting)
Pass the Threads token (vault_starpunk.threads_access_token, Meta app
"starpunk") and username philskents. StarPunk refreshes the token daily
and keeps the current one in /data/threads_token.json.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 20:59:13 -06:00
PhilandClaude Opus 5.5 2acf307ac0 Add Docker's apt repo with a signed-by key, ready for Debian 13
Debian 13 drops apt-key and software-properties-common, so the old tasks
would fail after the upgrade. The key now lives in /etc/apt/keyrings
(same fingerprint, 9DC8...CD88), the repo is a deb822 file whose release
name follows the installed Debian, and the old .list file is removed.
The apt tasks get a docker_apt tag so they can be deployed on their own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 17:52:02 -06:00
PhilandClaude Opus 5.5 5f1d7635e9 starpunk: v2.2.0 with Bluesky crossposting
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 17:49:43 -06:00
PhilandClaude Opus 5.5 d1770a87e5 Let Caddy's HSTS header replace the one HeyForm sends
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 17:49:15 -06:00
PhilandClaude Opus 5.5 cab61b78e7 Send HSTS on every Caddy site
Browsers will use HTTPS for each site for a year. includeSubDomains is
left off so hosts not served by this Caddy are unaffected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 17:47:21 -06:00
PhilandClaude Opus 5.5 a1a79af7d5 Upgrade HeyForm from v0.1.0 to v3.0.5
v0.1.0 (Feb 2025) has dozens of published security advisories fixed in
v3. Tested against a copy of the database first; forms load unchanged.

v3 listens on 9157, keeps uploads under packages/server, and uses Redis 8
commands, so KeyDB is replaced by redis:8-alpine. The homepage URL is now
https (v3's CORS allowlist is built from it), Caddy is the trusted proxy,
public sign-up is off, and integration credentials get their own key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 12:50:57 -06:00
PhilandClaude Opus 5.5 394f111162 Turn on StarPunk crossposting to GoToSocial (v2.1.0)
StarPunk 2.1.0 copies new notes to GoToSocial and keeps edits and
deletes in step. Token for the app "StarPunk crossposting" (scopes
write:statuses write:media) is in vault_starpunk.gotosocial_token; the
container reaches social. through Caddy (hairpin).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 12:46:56 -06:00
PhilandClaude Opus 5.5 0f66326555 Pin Tika to the version Paperless 3.4.1 ships with
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 12:40:04 -06:00
PhilandClaude Opus 5.5 fba5520cda Pin Paperless-ngx to 2.20.15 on the way to v3
v3 can only be reached from 2.20.15, so stop tracking :latest. Also set
the two settings v3 needs from us: trust Caddy as the proxy (v3's login
rate limiting), and keep rejecting duplicate documents.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 12:34:52 -06:00
PhilandClaude Opus 5.5 68a1622665 Deploy StarPunk from its CI-built image
StarPunk's Gitea Actions workflow now builds and pushes the image on
vX.Y.Z tags. Pin the tag in starpunk_version (v2.0.2, the first CI build)
and always pull it, so an image built by hand on the server with the
same name can't be deployed instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 12:24:08 -06:00
PhilandClaude Opus 5.5 85bd6abc22 Update Karakeep's browser and search, and Gotenberg
Karakeep's Chrome was alpine-chrome 123 (April 2024) and it opens every
bookmarked URL; it now uses Karakeep's own Chrome image like upstream.
Meilisearch goes from 1.13.3 to 1.41.0 with a dumpless in-place upgrade.
Gotenberg for Paperless goes from 8.7 to 8.39.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 12:23:52 -06:00
PhilandClaude Opus 5.5 2d5abde71b Update StarPunk to v2.0.1
Fixes http:// feed and permalink URLs behind Caddy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 12:18:39 -06:00
PhilandClaude Opus 5.5 a6592d3ad0 Take the Docker socket away from the Gitea runner
Jobs run inside the runner container (label docker:host), and with the
host's Docker socket mounted every workflow had root on the server. The
socket was only there for StarPunk's image build, which has never worked
(it logged in to gitea:3000, which the host daemon can't resolve).

Image builds now go to a rootless BuildKit container that shares only a
unix socket with the runner. Site builds keep their /sites mount.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 12:01:06 -06:00
PhilandClaude Opus 5.5 6dfb58d3f1 Retire Gondulf and move StarPunk to v2.0.0 with Pocket ID login
StarPunk 2.0.0 logs in with Pocket ID and issues its own Micropub tokens
(ADR-064 in the StarPunk repo), so the Gondulf IndieAuth server is no
longer used. Removes its task, templates, Caddy route, subdomain and
service entry, and moves its DNS record to removed_records.

The StarPunk template was still on v1.6.0-rc.2 with Gondulf hairpin
hosts; deploying it would have broken login. It now matches production:
v2.0.0, Pocket ID hairpin, OIDC client from vault_starpunk.pocketid and
the admin sub in starpunk_admin_sub.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 11:52:07 -06:00
PhilandClaude Opus 5.5 a08402f0ac Close Karakeep signups and turn on unattended security updates
Karakeep had DISABLE_SIGNUPS unset, so anyone could make an account on
bookmarks. and use the OpenAI key behind it. The server also had no
automatic updates and three security updates waiting; the common role now
installs unattended-upgrades with Debian's default security-only origins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 11:47:45 -06:00
PhilandClaude Opus 5.5 0c14ee5b1d Bring the docs up to date with the running stack
The READMEs, CLAUDE.md and todo.md still described Authentik, services
removed long ago (Ghost, MMDL, Postiz, Pinchflat...) and two servers. Now
they list the 24 services actually deployed (checked against docker ps),
explain that netcup and docker-01 are one machine, document Gondulf,
StarPunk, Listmonk, Gokapi and dockcheck, and use bin/deploy throughout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 11:30:50 -06:00
PhilandClaude Opus 5.5 0282debf07 Run Gokapi's first-run password step as a blocking command
--deployment-password sets the password and exits, so the detached run
plus health wait never saw a healthy container.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 10:13:22 -06:00
PhilandClaude Opus 5.5 7a68fdf96f Wait for Gokapi's healthcheck on first run
The 'Gokapi started' log line is not always flushed to log.txt, so the
first-run wait timed out even though the super admin had been created.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 10:09:14 -06:00