amber-backend/pb_hooks
Claude cd5d7138d9 Dashboard reads COOLIFY_READ_TOKEN, and the name is the point
The owner issued a read-only Coolify token, which is the right shape: this
dashboard only ever performs GETs. Renaming the variable from COOLIFY_TOKEN to
COOLIFY_READ_TOKEN means the requirement is encoded where someone setting it will
see it, rather than living only in a doc.

A write-capable token here would mean a PocketBase vulnerability could deploy or
stop every app on the PaaS. coolify.sh keeps using the full token for deploys;
having both in secrets/amber.env is the separation, not redundancy.

Verified the read token against both endpoints the dashboard needs (applications
list, container logs) before wiring it, and validated the renamed variable on a
clean local boot: 7 services enumerated, both panels configured, no errors.
2026-08-05 21:28:28 +02:00
..
client_logs.pb.js Add client_logs collection for background device diagnostics (feedback 2 §4) 2026-07-23 11:49:04 +02:00
device_auth.pb.js fix(device-auth): inline helpers into each hook handler (JSVM scope) 2026-07-19 19:48:03 +02:00
device_page.pb.js device approve page: manual code-entry for the QR-less path (#55) 2026-07-20 11:06:51 +02:00
onboarding.pb.js Family onboarding site: invite-gated signup, template config, /get/tv 2026-07-22 18:23:05 +02:00
profile_pin.pb.js Add /api/amber/set-pin: hidden pinHash rejects client writes (#13/#14) 2026-07-21 21:29:02 +02:00
settings.pb.js Add /settings web editor for the encrypted addon config 2026-07-23 18:20:24 +02:00
status.pb.js Dashboard reads COOLIFY_READ_TOKEN, and the name is the point 2026-08-05 21:28:28 +02:00
update.pb.js Auto-update backend: releases collection + gated manifest (#16) 2026-07-20 11:36:03 +02:00
whoami.pb.js Phase 2: /api/amber/whoami token introspection for amber-api 2026-07-25 17:52:43 +02:00