Files
loki/scripts/oracle
Mao NakamotoandClaude Opus 4.7 5a37c3d990 fix(install): two production-validated bugs surfaced during Hetzner v0.6 cutover
Both fixes apply to scripts/oracle/install.sh based on the actual Hetzner deploy
on 2026-06-04. The install.sh path is now first-try-clean on Ubuntu 26.04.

1. Caddyfile `log { format filter ... query_replace }` removed. The
   `caddy.logging.encoders.filter.query_replace` module isn't registered in
   Caddy v2.11 — the service refused to start with "module not registered".
   Default access logging goes to journalctl. If token-redaction matters
   later, look at the `regexp` filter encoder or disable access logs.

2. pg_hba.conf gained host entries for 127.0.0.1/32 (fleetcrown +
   orangecat roles, scram-sha-256). Without them, the Node bridge's
   pg client couldn't connect to its own Postgres: pg requires explicit
   `rejectUnauthorized: false` to accept Postgres's default self-signed
   TLS cert, which isn't exposed via DSN. Bridge .env also switched to
   `sslmode=disable` — loopback connection only, scram-sha-256 password
   is the actual security boundary.

Verified end-to-end on 2026-06-04: SQL `pg_notify('fc:state', ...)` →
bridge `eventLogSize` increments → HTTPS endpoint at bridge.orangecat.ch
serves with valid Let's Encrypt cert.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-04 20:21:33 +02:00
..