veza/veza-backend-api/internal
senke 3fb15f86e3 [INT-019] int: Add environment variable validation
- Created ValidateRequiredEnvironmentVariables function
- Validates required vars (JWT_SECRET, DATABASE_URL) in all environments
- Production-specific validations: CORS_ALLOWED_ORIGINS required, no wildcard, no DEBUG log level, RabbitMQ URL if enabled
- Integrated validation at startup in NewConfig() to fail-fast if required variables are missing
- Provides clear error messages for missing or invalid environment variables

Files modified:
- veza-backend-api/internal/config/config.go
- VEZA_COMPLETE_MVP_TODOLIST.json
2025-12-25 15:49:59 +01:00
..
api [INT-018] int: Add CORS configuration validation 2025-12-25 15:48:48 +01:00
common refonte: backend-api go first; phase 1 2025-12-12 21:34:34 -05:00
config [INT-019] int: Add environment variable validation 2025-12-25 15:49:59 +01:00
core [INT-007] int: Standardize pagination format 2025-12-25 15:14:26 +01:00
database [BE-DB-018] be-db: Add database performance monitoring 2025-12-24 15:58:48 +01:00
dto [BE-API-001] api: Implement 2FA endpoints (setup, verify, disable) 2025-12-23 01:40:28 +01:00
email STABILISATION: phase 3–5 – API contract, tests & chat-server hardening 2025-12-06 17:21:59 +01:00
errors refactor(marketplace): enforce unified api response envelope 2025-12-06 17:39:04 +01:00
eventbus adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
features adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
handlers [INT-017] int: Add session management integration 2025-12-25 15:47:33 +01:00
infrastructure STABILISATION: phase 3–5 – API contract, tests & chat-server hardening 2025-12-06 17:21:59 +01:00
interfaces adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
jobs STABILISATION: phase 3–5 – API contract, tests & chat-server hardening 2025-12-06 17:21:59 +01:00
logging [BE-SVC-015] be-svc: Implement logging aggregation 2025-12-24 16:58:58 +01:00
metrics [BE-DB-018] be-db: Add database performance monitoring 2025-12-24 15:58:48 +01:00
middleware [INT-018] int: Add CORS configuration validation 2025-12-25 15:48:48 +01:00
models [INT-008] int: Standardize date/time formats 2025-12-25 15:16:38 +01:00
monitoring stabilizing veza-backend-api: P1 & P2 2025-12-16 13:34:08 -05:00
recovery [BE-SVC-022] be-svc: Implement data export service 2025-12-24 18:01:00 +01:00
repositories [BE-DB-003] be-db: Add soft delete support to all models 2025-12-24 15:07:25 +01:00
repository adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
response stabilizing veza-backend-api: phase 1 2025-12-16 11:23:49 -05:00
security adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
services [BE-SEC-012] be-sec: Implement API key authentication for webhooks 2025-12-24 18:03:52 +01:00
shutdown [BE-SVC-017] be-svc: Implement graceful shutdown 2025-12-24 17:03:11 +01:00
testutils stabilizing veza-backend-api: phase 1 2025-12-16 11:23:49 -05:00
tracing [BE-SVC-018] be-svc: Implement request tracing 2025-12-24 17:05:32 +01:00
types adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
upload [INT-015] int: Add file upload format standardization 2025-12-25 15:40:01 +01:00
utils [INT-008] int: Standardize date/time formats 2025-12-25 15:16:38 +01:00
validators [BE-SVC-020] be-svc: Implement request validation improvements 2025-12-24 17:09:54 +01:00
websocket [INT-014] int: Add WebSocket message format standardization 2025-12-25 15:35:38 +01:00
workers stabilizing veza-backend-api: phase 1 2025-12-16 11:23:49 -05:00