Deployment-Setup (PostgreSQL+nginx-Installer) + Sprint-0-Fixes aus Subagenten-Reviews
CI / backend-tests (push) Failing after 1s

Installer (deploy/):
- install_server.sh: PostgreSQL+nginx auf Debian 13, idempotente Rolle/DB-Anlage,
  pgcrypto-Extension, Speicher-Tuning für 4GB-VPS, Zugangsdaten in chmod-600-Datei
  statt stdout (postgres-expert/owasp-Review)
- nginx-Template mit Security-Headern + Rate-Limit auf /auth/login
- systemd-Unit-Template mit Sandboxing (NoNewPrivileges/ProtectSystem/PrivateTmp)

Backend-Fixes (fastapi-expert-Review):
- get_db: einheitliche commit/rollback-Konvention statt Endpunkt-Copy-Paste
- Test-Fixtures auf SQLAlchemy-2.0-Savepoint-Pattern umgestellt (join_transaction_mode),
  da get_db jetzt selbst committet
- Lifespan-Handler: Startup-Guard gegen JWT-Secret-Platzhalter, engine.dispose() beim Shutdown
- JWT-Payload ohne ungenutztes roles-Claim (Rollen kommen immer frisch aus der DB)

Zusätzlich: Subagenten-Definitionen (~/.claude/agents/) auf lauffähiges Modell fixiert.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L85hmKbvX7Cqkq47KnQhFt
This commit is contained in:
2026-09-03 23:00:46 +02:00
co-authored by Claude Sonnet 5
parent 48b6d6a5be
commit 446e4f912d
10 changed files with 487 additions and 8 deletions
+264
View File
@@ -843,3 +843,267 @@ Keine Änderungen ermittelbar.
- ergebnisse/sprintplan.md | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
---
## 2026-09-03 22:37 22:39 (1m)
**Beschreibung:** Claude Code Session
**Projekt:** asb-material
### Commits
Keine Commits in dieser Session.
### Geänderte Dateien
- .gitea/workflows/ci.yml | 52 ++++++++++++
- DEVLOG.md | 13 +++
- backend/.gitignore | 9 +++
- backend/README.md | 35 +++++++++
- backend/alembic.ini | 38 +++++++++
- backend/alembic/env.py | 51 ++++++++++++
- backend/alembic/script.py.mako | 26 ++++++
- backend/alembic/versions/0001_initial_schema.py | 291 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- backend/alembic/versions/0002_seed_hauptserver.py | 25 ++++++
- backend/app/__init__.py | 0
- backend/app/api/__init__.py | 0
- backend/app/api/deps.py | 52 ++++++++++++
- backend/app/api/v1/__init__.py | 0
- backend/app/api/v1/api.py | 7 ++
- backend/app/api/v1/endpoints/__init__.py | 0
- backend/app/api/v1/endpoints/auth.py | 55 +++++++++++++
- backend/app/api/v1/endpoints/health.py | 19 +++++
- backend/app/core/__init__.py | 0
- backend/app/core/app_settings.py | 18 +++++
- backend/app/core/security.py | 33 ++++++++
- backend/app/db/__init__.py | 0
- backend/app/db/base.py | 5 ++
- backend/app/db/session.py | 13 +++
- backend/app/main.py | 6 ++
- backend/app/models/__init__.py | 3 +
- backend/app/models/auth.py | 60 ++++++++++++++
- backend/example.env | 9 +++
- backend/pyproject.toml | 31 ++++++++
- backend/pytest.ini | 4 +
- backend/tests/__init__.py | 0
- backend/tests/conftest.py | 70 +++++++++++++++++
- backend/tests/test_auth.py | 45 +++++++++++
- backend/tests/test_health.py | 8 ++
- backend/tests/test_roles.py | 28 +++++++
---
## 2026-09-03 22:37 22:39 (1m)
**Beschreibung:** Claude Code Session
**Projekt:** asb-material
### Commits
Keine Commits in dieser Session.
### Geänderte Dateien
- .gitea/workflows/ci.yml | 52 ++++++++++++
- DEVLOG.md | 13 +++
- backend/.gitignore | 9 +++
- backend/README.md | 35 +++++++++
- backend/alembic.ini | 38 +++++++++
- backend/alembic/env.py | 51 ++++++++++++
- backend/alembic/script.py.mako | 26 ++++++
- backend/alembic/versions/0001_initial_schema.py | 291 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- backend/alembic/versions/0002_seed_hauptserver.py | 25 ++++++
- backend/app/__init__.py | 0
- backend/app/api/__init__.py | 0
- backend/app/api/deps.py | 52 ++++++++++++
- backend/app/api/v1/__init__.py | 0
- backend/app/api/v1/api.py | 7 ++
- backend/app/api/v1/endpoints/__init__.py | 0
- backend/app/api/v1/endpoints/auth.py | 55 +++++++++++++
- backend/app/api/v1/endpoints/health.py | 19 +++++
- backend/app/core/__init__.py | 0
- backend/app/core/app_settings.py | 18 +++++
- backend/app/core/security.py | 33 ++++++++
- backend/app/db/__init__.py | 0
- backend/app/db/base.py | 5 ++
- backend/app/db/session.py | 13 +++
- backend/app/main.py | 6 ++
- backend/app/models/__init__.py | 3 +
- backend/app/models/auth.py | 60 ++++++++++++++
- backend/example.env | 9 +++
- backend/pyproject.toml | 31 ++++++++
- backend/pytest.ini | 4 +
- backend/tests/__init__.py | 0
- backend/tests/conftest.py | 70 +++++++++++++++++
- backend/tests/test_auth.py | 45 +++++++++++
- backend/tests/test_health.py | 8 ++
- backend/tests/test_roles.py | 28 +++++++
---
## 2026-09-03 22:37 22:39 (1m)
**Beschreibung:** Claude Code Session
**Projekt:** asb-material
### Commits
Keine Commits in dieser Session.
### Geänderte Dateien
- .gitea/workflows/ci.yml | 52 ++++++++++++
- DEVLOG.md | 13 +++
- backend/.gitignore | 9 +++
- backend/README.md | 35 +++++++++
- backend/alembic.ini | 38 +++++++++
- backend/alembic/env.py | 51 ++++++++++++
- backend/alembic/script.py.mako | 26 ++++++
- backend/alembic/versions/0001_initial_schema.py | 291 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- backend/alembic/versions/0002_seed_hauptserver.py | 25 ++++++
- backend/app/__init__.py | 0
- backend/app/api/__init__.py | 0
- backend/app/api/deps.py | 52 ++++++++++++
- backend/app/api/v1/__init__.py | 0
- backend/app/api/v1/api.py | 7 ++
- backend/app/api/v1/endpoints/__init__.py | 0
- backend/app/api/v1/endpoints/auth.py | 55 +++++++++++++
- backend/app/api/v1/endpoints/health.py | 19 +++++
- backend/app/core/__init__.py | 0
- backend/app/core/app_settings.py | 18 +++++
- backend/app/core/security.py | 33 ++++++++
- backend/app/db/__init__.py | 0
- backend/app/db/base.py | 5 ++
- backend/app/db/session.py | 13 +++
- backend/app/main.py | 6 ++
- backend/app/models/__init__.py | 3 +
- backend/app/models/auth.py | 60 ++++++++++++++
- backend/example.env | 9 +++
- backend/pyproject.toml | 31 ++++++++
- backend/pytest.ini | 4 +
- backend/tests/__init__.py | 0
- backend/tests/conftest.py | 70 +++++++++++++++++
- backend/tests/test_auth.py | 45 +++++++++++
- backend/tests/test_health.py | 8 ++
- backend/tests/test_roles.py | 28 +++++++
---
## 2026-09-03 22:37 22:39 (1m)
**Beschreibung:** Claude Code Session
**Projekt:** asb-material
### Commits
Keine Commits in dieser Session.
### Geänderte Dateien
- .gitea/workflows/ci.yml | 52 ++++++++++++
- DEVLOG.md | 13 +++
- backend/.gitignore | 9 +++
- backend/README.md | 35 +++++++++
- backend/alembic.ini | 38 +++++++++
- backend/alembic/env.py | 51 ++++++++++++
- backend/alembic/script.py.mako | 26 ++++++
- backend/alembic/versions/0001_initial_schema.py | 291 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- backend/alembic/versions/0002_seed_hauptserver.py | 25 ++++++
- backend/app/__init__.py | 0
- backend/app/api/__init__.py | 0
- backend/app/api/deps.py | 52 ++++++++++++
- backend/app/api/v1/__init__.py | 0
- backend/app/api/v1/api.py | 7 ++
- backend/app/api/v1/endpoints/__init__.py | 0
- backend/app/api/v1/endpoints/auth.py | 55 +++++++++++++
- backend/app/api/v1/endpoints/health.py | 19 +++++
- backend/app/core/__init__.py | 0
- backend/app/core/app_settings.py | 18 +++++
- backend/app/core/security.py | 33 ++++++++
- backend/app/db/__init__.py | 0
- backend/app/db/base.py | 5 ++
- backend/app/db/session.py | 13 +++
- backend/app/main.py | 6 ++
- backend/app/models/__init__.py | 3 +
- backend/app/models/auth.py | 60 ++++++++++++++
- backend/example.env | 9 +++
- backend/pyproject.toml | 31 ++++++++
- backend/pytest.ini | 4 +
- backend/tests/__init__.py | 0
- backend/tests/conftest.py | 70 +++++++++++++++++
- backend/tests/test_auth.py | 45 +++++++++++
- backend/tests/test_health.py | 8 ++
- backend/tests/test_roles.py | 28 +++++++
---
## 2026-09-03 22:53 22:54 (0m)
**Beschreibung:** Claude Code Session
**Projekt:** asb-material
### Commits
Keine Commits in dieser Session.
### Geänderte Dateien
- .gitea/workflows/ci.yml | 52 ++++++++++++
- DEVLOG.md | 13 +++
- backend/.gitignore | 9 +++
- backend/README.md | 35 +++++++++
- backend/alembic.ini | 38 +++++++++
- backend/alembic/env.py | 51 ++++++++++++
- backend/alembic/script.py.mako | 26 ++++++
- backend/alembic/versions/0001_initial_schema.py | 291 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- backend/alembic/versions/0002_seed_hauptserver.py | 25 ++++++
- backend/app/__init__.py | 0
- backend/app/api/__init__.py | 0
- backend/app/api/deps.py | 52 ++++++++++++
- backend/app/api/v1/__init__.py | 0
- backend/app/api/v1/api.py | 7 ++
- backend/app/api/v1/endpoints/__init__.py | 0
- backend/app/api/v1/endpoints/auth.py | 55 +++++++++++++
- backend/app/api/v1/endpoints/health.py | 19 +++++
- backend/app/core/__init__.py | 0
- backend/app/core/app_settings.py | 18 +++++
- backend/app/core/security.py | 33 ++++++++
- backend/app/db/__init__.py | 0
- backend/app/db/base.py | 5 ++
- backend/app/db/session.py | 13 +++
- backend/app/main.py | 6 ++
- backend/app/models/__init__.py | 3 +
- backend/app/models/auth.py | 60 ++++++++++++++
- backend/example.env | 9 +++
- backend/pyproject.toml | 31 ++++++++
- backend/pytest.ini | 4 +
- backend/tests/__init__.py | 0
- backend/tests/conftest.py | 70 +++++++++++++++++
- backend/tests/test_auth.py | 45 +++++++++++
- backend/tests/test_health.py | 8 ++
- backend/tests/test_roles.py | 28 +++++++
---
## 2026-09-03 22:54 22:55 (0m)
**Beschreibung:** Claude Code Session
**Projekt:** asb-material
### Commits
Keine Commits in dieser Session.
### Geänderte Dateien
- .gitea/workflows/ci.yml | 52 ++++++++++++
- DEVLOG.md | 13 +++
- backend/.gitignore | 9 +++
- backend/README.md | 35 +++++++++
- backend/alembic.ini | 38 +++++++++
- backend/alembic/env.py | 51 ++++++++++++
- backend/alembic/script.py.mako | 26 ++++++
- backend/alembic/versions/0001_initial_schema.py | 291 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- backend/alembic/versions/0002_seed_hauptserver.py | 25 ++++++
- backend/app/__init__.py | 0
- backend/app/api/__init__.py | 0
- backend/app/api/deps.py | 52 ++++++++++++
- backend/app/api/v1/__init__.py | 0
- backend/app/api/v1/api.py | 7 ++
- backend/app/api/v1/endpoints/__init__.py | 0
- backend/app/api/v1/endpoints/auth.py | 55 +++++++++++++
- backend/app/api/v1/endpoints/health.py | 19 +++++
- backend/app/core/__init__.py | 0
- backend/app/core/app_settings.py | 18 +++++
- backend/app/core/security.py | 33 ++++++++
- backend/app/db/__init__.py | 0
- backend/app/db/base.py | 5 ++
- backend/app/db/session.py | 13 +++
- backend/app/main.py | 6 ++
- backend/app/models/__init__.py | 3 +
- backend/app/models/auth.py | 60 ++++++++++++++
- backend/example.env | 9 +++
- backend/pyproject.toml | 31 ++++++++
- backend/pytest.ini | 4 +
- backend/tests/__init__.py | 0
- backend/tests/conftest.py | 70 +++++++++++++++++
- backend/tests/test_auth.py | 45 +++++++++++
- backend/tests/test_health.py | 8 ++
- backend/tests/test_roles.py | 28 +++++++
---