chore: build
ci-api / test (push) Successful in 23m50s
ci-web / test (push) Successful in 13m43s

This commit is contained in:
Xor290
2026-10-04 12:52:16 +02:00
parent 8d857faa45
commit 4bb8c143e2
29 changed files with 2256 additions and 1561 deletions
+2 -2
View File
@@ -3,7 +3,6 @@
# --- Secrets obligatoires ---
OMNEX_JWT_SECRET=0879032aa29538641920360c1990e39f7e86123b1fa869e9e3e60d44ceca0a34
OMNEX_SEED_PASSWORD=62dc702dfe26d117216d2994
# --- Postgres ---
POSTGRES_USER=omnex
@@ -15,7 +14,6 @@ REDIS_PASSWORD=630fa654c76f1256fea3ba3c51a718a4
# --- API ---
OMNEX_ENV=dev
OMNEX_SEED_USERNAME=admin
OMNEX_ALLOWED_ORIGINS=http://localhost:3000,http://localhost:5173
OMNEX_DEMO_DOMAIN=192.168.1.31.nip.io
OMNEX_DEMO_HTTPS_PORT=31908
@@ -23,3 +21,5 @@ KUBECONFIG=/home/xor_fakers/.kube/config
FRONTEND_IMAGE_APP=xor1234/frontend-mln:helm
BACKEND_IMAGE_APP=xor1234/backend-mln:helm
LBTELEGRAM_IMAGE_APP=xor1234/lbtelegram:helm
VITRINE_BACKEND_IMAGE=xor1234/vitrine-api:latest
VITRINE_FRONTEND_IMAGE=xor1234/vitrine-web:latest
+10 -12
View File
@@ -42,6 +42,11 @@ services:
- ANOMALY_INBOUND=5
- ANOMALY_OUTBOUND=4
- MODSEC_AUDIT_LOG=/var/log/modsec/modsec_audit.log
healthcheck:
test: ["CMD", "curl", "-sk", "-f", "https://localhost:443/healthz"]
interval: 30s
timeout: 5s
retries: 5
volumes:
- ./nginx/certs:/etc/nginx/certs:ro
- /var/log/waf/nginx:/var/log/nginx
@@ -68,29 +73,22 @@ services:
OMNEX_ALLOWED_ORIGINS: ${OMNEX_ALLOWED_ORIGINS:-http://localhost:3000,http://localhost:5173}
OMNEX_DATABASE_URL: "host=postgres user=${POSTGRES_USER:-omnex} password=${POSTGRES_PASSWORD:-omnex} dbname=${POSTGRES_DB:-omnex} port=5432 sslmode=disable"
OMNEX_REDIS_URL: "redis://:${REDIS_PASSWORD:-omnexredis}@redis:6379/0"
OMNEX_SEED_USERNAME: ${OMNEX_SEED_USERNAME:-admin}
OMNEX_SEED_PASSWORD: ${OMNEX_SEED_PASSWORD}
OMNEX_DEMO_DOMAIN: ${OMNEX_DEMO_DOMAIN:-192.168.1.31.nip.io}
OMNEX_DEMO_DOMAIN: ${OMNEX_DEMO_DOMAIN:-omnex.sbs}
OMNEX_DEMO_HTTPS_PORT: ${OMNEX_DEMO_HTTPS_PORT:-443}
FRONTEND_IMAGE_APP: ${FRONTEND_IMAGE_APP:-xor1234/frontend-mln:helm}
BACKEND_IMAGE_APP: ${BACKEND_IMAGE_APP:-xor1234/backend-mln:helm}
LBTELEGRAM_IMAGE_APP: ${LBTELEGRAM_IMAGE_APP:-xor1234/lbtelegram:helm}
OMNEX_VITRINE_DOMAIN: ${OMNEX_VITRINE_DOMAIN:-vitrine-omnex.club}
VITRINE_BACKEND_IMAGE: ${VITRINE_BACKEND_IMAGE:-xor1234/vitrine-api:latest}
VITRINE_FRONTEND_IMAGE: ${VITRINE_FRONTEND_IMAGE:-xor1234/vitrine-web:latest}
KUBECONFIG: /kubeconfig/config
OMNEX_APP_DOWNLOADS_DIR: /app-downloads
# Compte Docker Hub authentifié (lecture seule) injecté dans chaque
# namespace de démo — passe le rate-limit de pull anonyme (100/6h par
# IP) à 200/6h. Vide = pull anonyme (comportement inchangé).
OMNEX_DOCKERHUB_USERNAME: ${OMNEX_DOCKERHUB_USERNAME:-}
OMNEX_DOCKERHUB_PASSWORD: ${OMNEX_DOCKERHUB_PASSWORD:-}
volumes:
- ../deploy/chart-gestion:/charts:ro
- ../deploy/chart-vitrine:/charts-vitrine:ro
- ${KUBECONFIG_HOST_PATH:-/home/xor_fakers/.kube/config}:/kubeconfig/config:ro
# Dossier où déposer manuellement les .apk (Admin Panel / Client) à
# rendre téléchargeables aux clients ayant une démo ou un abonnement
# actif — voir control-plane/api/internal/downloads. Vit dans
# docker/ (comme waf/, nginx/, certs/) : sur le serveur, seuls
# docker-compose.yml et waf/ sont synchronisés par Ansible, le
# reste (dont app/) est géré manuellement dans docker_dir.
- ./app:/app-downloads:ro
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/healthz"]
+8
View File
@@ -2,6 +2,14 @@
# lignes de taille raisonnable.
SecAuditLogParts ABIFHZ
# 911100 (REQUEST-911-METHOD-ENFORCEMENT) n'autorise par défaut que GET
# HEAD POST OPTIONS — bloque tout DELETE/PUT/PATCH légitimes de l'API REST
# (ex: DELETE /api/v1/demos/:id, toujours 403 "Method is not allowed by
# policy" avant même d'atteindre le check de rôle admin). Même correctif déjà
# appliqué côté Coraza/Traefik pour les démos, voir
# deploy/chart-gestion/traefik/templates/middleware-waf.yaml.
SecRuleRemoveById 911100
SecRule IP:BANNED "@eq 1" \
"id:100000,phase:1,deny,status:403,log,\
msg:'IP is banned'"