mirror of
https://github.com/bitbaum/evig.git
synced 2026-12-04 14:37:50 +01:00
The E2E personas are real accounts on a real deployment, and every place that needed one carried it as a literal in a public repo: a fallback in scripts/e2e-inventory-prod.sh, four `|| '...'` defaults across the e2e specs and their auth helper, a workflow header comment, and two docs tables. The repo therefore published whose accounts they are — and the defaults were dead weight besides: CI has supplied both addresses from the repository secrets of the same name since they were created, so the literals were an unreachable branch that only ever leaked. Now there is no default anywhere. The addresses come from AUTH_TEST_USER_EMAIL and AUTH_TEST_ADMIN_EMAIL, both existing repo secrets, and the absence of one is an error rather than a quiet substitution: - scripts/e2e-inventory-prod.sh requires both with `:?` naming the secret. The "no passwords configured, skip" path still runs first, so an unconfigured checkout is unaffected. - The two consuming jobs guard first and fail with `::error::` naming the missing secret, instead of dying inside bash or playwright. - The specs skip a persona when its address is unset, the same way they already skip on a missing password, rather than attempting a login with an empty e-mail and reporting it as a broken page. Unchanged: the e2e-local job, which sets all four addresses to its own seeded @evig.test fixtures at job level, so the defaults were never reached there either. Not addressed here, and still in the tree: the owner's address in the SUPER_ADMIN_EMAILS allowlist (plus its assertions and the applied SQL migrations that reference it), and the public contact address in src/config/org.ts, which is published on purpose. Those are identity and data, not E2E credentials, and removing them is a separate decision. Claude-Session: https://claude.ai/code/session_01NLZ6vs1jsWw2kKbpWTZHf2 Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Documentation
Curated reference for engineers, operators, and contributors. Everything in this folder is meant to stay reasonably current — point-in-time work logs, incident reports, and superseded plans live under archive/.
Getting started
- SHARED_CONTEXT.md — tech stack, database, file layout
- COMMANDS.md — every npm script and what it does
- BEST_PRACTICES.md — engineering standards (logger, TABLE_NAMES, parameterized queries, Swiss-German rules)
- ARCHITECTURE_QUICK_START.md — the 10-minute architecture orientation
Architecture
- ARCHITECTURE_DATABASE_BACKEND.md — schema, Drizzle ORM, query patterns
- DATABASE_SCHEMA.md — the canonical schema reference
- UNIFIED_AUTH.md — Auth.js v5, JWT sessions, verify-code, shared admin login
- ARCHITECTURE_DEBT.md — resolved parallel-implementation debt (#1–#3 done)
- HIRN_AI.md — the in-house AI knowledge / action system
- API_DOCUMENTATION.md — public + internal API surface
Product surfaces
- FEATURE_INVENTORY.md — 155-item feature/route audit matrix (living SSOT)
- BLOG_SYSTEM.md — content pipeline + approval flow
- PROJECT_PAGES_GUIDE.md — community project pages
- SERVICE_PAGES_GUIDE.md — paid service pages
- ADMIN_QUICK_REFERENCE.md — admin surface tour for staff
- AI_BOT_SYSTEM_PROMPT.md · AI_BOT_SYSTEM_PROMPT_README.md — public chatbot system prompt + how to update it
Design
- DESIGN_SYSTEM.md — CSS-variable SSOT, semantic Tailwind, dark-mode behavior
- RESPONSIVE_DESIGN_SYSTEM.md — mobile-first responsive primitives in
src/lib/responsive.ts
Operations
- MIGRATIONS.md — canonical migration path (
scripts/db/migrations/), naming, idempotency rules, applied to the prod self-hosted Hetzner Postgres on deploy (tracked inschema_migrations) - EMAIL_SETUP.md — Listmonk + Brevo configuration
- RELIABILITY.md — uptime expectations, on-call practices
- CODE_AUDIT.md — running list of known issues being worked on
- LEGAL_NONPROFIT_COMPLIANCE.md — Swiss-Verein legal posture, data handling
Mission
- MISSION_STATEMENT.md — why this codebase exists
- CODE_OF_CONDUCT.md — community norms
Subdirectories
api/— per-route referencecomponents/— component-level notesdevelopment/— environment + workflow setupfeatures/— feature briefsguides/— how-to walkthroughshirn/— HIRN AI internalslegacy/— preserved older docsreference/— long-form reference materialarchive/— superseded plans, incident reports, completed-migration logs (preserved for history, not for navigation)