1
0
Fork 0
Commit Graph

9 Commits

Author SHA1 Message Date
Jonny 3365a37160 docs: Superadmin-Skript und SMTP_VERSCHLUESSELUNG_KEY
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-10-12 14:19:49 +02:00
Jonny aba766ea56 feat: WhatsApp-Empfaenger, SMTP und PDF-Branding pro Firma
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 14:12:51 +02:00
Jonny cf9a5a41fc Merge feature/protokoll-email: Übergabeprotokoll automatisch per E-Mail an den Ersteller
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 08:36:12 +02:00
Jonny 5b3d4404ca chore: Master-Stack-Web auf Port 3001
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 08:36:12 +02:00
Jonny da0330aa06 fix: STARTTLS bei Auth erzwingen, FIN-Zeile nur bei Abweichung, Sendetests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 20:33:49 +02:00
Jonny 0e25a36568 feat: SMTP-Konfiguration und Protokoll-Mail (Aufbau und Versand)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 20:29:14 +02:00
Jonny 4957a5c7bf fix: Abschluss-Review -- Outbox-Update-Fehler nicht schlucken, event_type-Guard, Route-Hardening, Cron-Secret-Guard, pgTAP fuer claim/Write-Denial
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Dimk8Jo64b4wULp2yAzSNh
2026-09-04 00:35:50 +02:00
Jonny a8ca6445cb fix: add reproducible render step for kong.yml and 99-roles.sql templates
generate-secrets.js only printed the four secret env vars; nothing rendered
volumes/db/init/99-roles.sql or volumes/api/kong.yml from their committed
.template files, so a fresh clone following the brief's own setup steps
would hit the auth/rest/storage crash-loops and Kong 401s already
diagnosed during the original task.

Add scripts/render-templates.js, which reads .env and writes both rendered
files with the real secrets substituted in. Document the full sequence
(generate secrets -> fill .env -> render templates -> docker compose up)
in the header comments of generate-secrets.js and .env.example.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-04 15:24:49 +02:00
Jonny e0a3e756d8 feat: add self-hosted Supabase stack via Docker Compose
Produktions-Stack (db, auth, rest, storage, meta, studio, kong) getrennt
vom lokalen CLI-Dev-Stack. Migrationen aus Task 2/3 wurden erfolgreich
angewendet und ein erster Admin-Nutzer angelegt.

Abweichungen vom urspruenglichen Plan (alle beim Testen des laufenden
Stacks gefunden und verifiziert):
- generate-secrets.js: POSTGRES_PASSWORD nutzt base64url statt base64,
  da "/" in base64-Passwoertern die Postgres-Connection-URI-Parser von
  gotrue/storage-api bricht.
- volumes/db/init/99-roles.sql(.template): das supabase/postgres-Image
  setzt POSTGRES_PASSWORD nur fuer die Rolle supabase_admin automatisch;
  authenticator/supabase_auth_admin/supabase_storage_admin blieben ohne
  Passwort. Zusaetzliches Init-Skript setzt sie explizit.
- volumes/api/kong.yml(.template): Kong 3.9.1 substituiert KEINE
  Umgebungsvariablen ($ANON_KEY/$SERVICE_ROLE_KEY) im deklarativen
  Config-Format (_transform ist ein Config-Migrations-Flag, kein
  Env-Templating) - alle echten Keys wurden mit 401 abgelehnt. Die
  Kong-Config wird jetzt lokal aus dem Template mit echten Werten
  gerendert (gitignored), analog zu roles.sql.
- storage-Healthcheck: "localhost" statt "127.0.0.1" loeste im Container
  zuerst zu ::1 auf, worauf storage-api nicht lauscht.
- studio: HOSTNAME=0.0.0.0 gesetzt, da Docker HOSTNAME sonst auf die
  Container-ID setzt und das Next.js-Standalone-Image daran bindet statt
  an alle Interfaces (bricht den eingebauten Image-Healthcheck).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-04 12:35:08 +02:00