feat: add initial setup wizard, workload insights, and policy audit mode
CI / backend (push) Failing after 3s
CI / frontend (push) Failing after 29s

Add setup wizard with status tracking via SystemSetting model, implement /setup/status and /setup/complete endpoints to create initial admin user and optional cluster configuration, add workload insights endpoint with traffic analysis and policy matching including audit mode detection, implement enforcement_mode property on Policy model with audit/enforced states, add Modal component for dialogs, create SetupWizard page with multi
This commit is contained in:
2026-07-09 12:47:08 +02:00
parent a911d36f34
commit 3cd2c0a2f1
18 changed files with 600 additions and 79 deletions
+5
View File
@@ -14,6 +14,7 @@ from app.models.domain import (
Role,
SecurityGroup,
ServiceCatalogItem,
SystemSetting,
Subnet,
Tenant,
User,
@@ -44,6 +45,10 @@ SERVICES = [
def seed_demo_data(db: Session) -> None:
if not db.get(SystemSetting, "setup"):
db.add(SystemSetting(key="setup", value={"complete": False}))
db.commit()
if db.scalar(select(User).where(User.email == "admin@nexafabric.local")):
return