amber-backend/scripts
Claude 9dd677b442 Seed with the token production is actually reachable with
secrets/amber.env holds PB_ADMIN_TOKEN and no superuser password, so the
email/password-only seeder could not be pointed at the live instance
without inventing a credential to satisfy it.

The token is also verified up front against a superuser-only endpoint,
because listing records cannot answer whether it is valid: PocketBase
applies a listRule as a FILTER, so a stale token returns 200 with zero
rows, indistinguishable from an empty collection. The seeder then decided
all four providers were missing and the first visible error was
"[FAIL] prehrajto: HTTP 403 Only superusers can perform this action",
blaming the row instead of the token. Found by trying it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-12 19:24:25 +02:00
..
check-flavor.py check-flavor: accept a build directory, refuse a .exe explicitly 2026-08-01 15:57:37 +02:00
providers.seed.json Tell a new viewer what to buy before asking them to fill in a form 2026-08-12 18:36:55 +02:00
publish-release.sh Auto-update backend: releases collection + gated manifest (#16) 2026-07-20 11:36:03 +02:00
seed-providers.py Seed with the token production is actually reachable with 2026-08-12 19:24:25 +02:00
verify.py Phase 2: /api/amber/whoami token introspection for amber-api 2026-07-25 17:52:43 +02:00