- Permissions 100% depuis user_permissions (plus de hardcode) - Middleware injecte perms dans chaque requête - Créneaux auto: 09h-12h30 / 14h-16h45, pas 15min, hprod lun-mar, prod mer-jeu - Assignations par défaut: par domaine, app_type, zone, serveur (table default_assignments) - Auto-liaison app_group: même intervenant recette+prod - Audit Splunk: /var/log/patchcenter_audit.json (JSON one-line par event) - Login/logout/campagnes/prereqs loggés en base + fichier - Page erreur maintenance (500/404) avec contact SecOps - Accents français dans toute lUI - Operator affiché comme Intervenant - Session 1h, redirect / vers dashboard si connecté - Demo mode prereqs (DEMO_MODE=True) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
19 lines
670 B
Python
19 lines
670 B
Python
import os
|
|
|
|
DATABASE_URL = os.getenv("DATABASE_URL", "postgresql://patchcenter:PatchCenter2026!@localhost:5432/patchcenter_db")
|
|
SECRET_KEY = os.getenv("SECRET_KEY", "slpm-patchcenter-secret-key-2026-change-in-production")
|
|
ALGORITHM = "HS256"
|
|
ACCESS_TOKEN_EXPIRE_MINUTES = 60 # 8 heures
|
|
APP_NAME = "PatchCenter"
|
|
APP_VERSION = "2.0"
|
|
|
|
# Qualys API
|
|
QUALYS_URL = os.getenv("QUALYS_URL", "https://qualysapi.qualys.eu")
|
|
QUALYS_USER = os.getenv("QUALYS_USER", "sanef-ae")
|
|
QUALYS_PASS = os.getenv("QUALYS_PASS", 'DW:Q\\*"JEZr2tjZ=!Ox4')
|
|
|
|
# iTop API (a configurer)
|
|
ITOP_URL = os.getenv("ITOP_URL", "")
|
|
ITOP_USER = os.getenv("ITOP_USER", "")
|
|
ITOP_PASS = os.getenv("ITOP_PASS", "")
|