Commit Graph

17 Commits

Author SHA1 Message Date
95fbe99b61 feat(sso): migration — add keycloak_sub, make hashed_password nullable 2026-03-01 00:50:20 +01:00
924e51ffaa feat(sso): add Keycloak settings to database.py and Helm ConfigMap 2026-03-01 00:45:07 +01:00
58f0fd50d8 feat(sso): replace passlib/bcrypt with authlib + httpx 2026-03-01 00:44:18 +01:00
123e914f01 fix: pin bcrypt<4.0.0 to restore passlib compatibility
passlib 1.7.4 (unmaintained since 2020) is incompatible with bcrypt>=4.0:
- bcrypt 4.x removed bcrypt.__about__ (passlib version probe fails)
- bcrypt 4.x enforces 72-byte password limit strictly, crashing
  passlib's detect_wrap_bug() compatibility test during context init

Pinning bcrypt<4.0.0 is the standard workaround until passlib is replaced.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-28 21:49:00 +01:00
3f5b0d1591 fix: set PYTHONPATH=/app so alembic can import app package
When the alembic console-script entry point runs, Python sets sys.path[0]
to the entry point directory (/usr/local/bin/), not the WORKDIR. Without
PYTHONPATH=/app, `from app.models import Base` in alembic/env.py fails
with ModuleNotFoundError. uvicorn is unaffected as it adds CWD to
sys.path itself.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-28 21:42:39 +01:00
488c385de3 fix: correct generate endpoint return type, migration server_default SQL, and auth loading propagation 2026-02-28 21:22:11 +01:00
1afc95fe8b feat: add ShorewallGenerator (zones, interfaces, policy, rules, masq, json, zip) 2026-02-28 20:02:48 +01:00
77aded3918 feat: add nested resource routers for zones, interfaces, policies, rules, masq 2026-02-28 20:02:05 +01:00
099fd8307f feat: add configs CRUD router with generate endpoint 2026-02-28 20:00:19 +01:00
ec6b9f6332 feat: add auth router (register/login/logout/me) 2026-02-28 19:59:33 +01:00
472593b8e6 feat: add FastAPI app entrypoint 2026-02-28 19:59:07 +01:00
5c33dd7c96 feat: add Pydantic schemas 2026-02-28 19:58:30 +01:00
a96cdc825c feat: add JWT auth module 2026-02-28 19:58:10 +01:00
bee6b83556 feat: add Alembic migration with schema and seed data
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-28 19:57:35 +01:00
c562d35345 feat: add SQLAlchemy models and database setup 2026-02-28 19:55:54 +01:00
ee9dc101da feat: add backend Dockerfile and requirements 2026-02-28 19:54:06 +01:00
cb9b802d43 feat: add project skeleton and docker-compose 2026-02-28 19:53:19 +01:00