kitos
|
eee0560aeb
|
feat(admin): export/import configuration bundle for migration
Aegis CI / lint-and-test (push) Has been cancelled
Backend: GET/POST /api/v1/admin/export-config and /import-config
Export includes (sensitive values redacted):
- system_configs (email/jira settings)
- webhook_configs (secrets redacted)
- sso_configs (private key redacted)
- scoring_config (weights)
- test_templates (source=custom only)
- users (no passwords/tokens, must_change_password=True on import)
Import is idempotent — upsert by natural keys, safe to run multiple times.
Frontend: ExportImportSection in SystemPage (admin only)
- 'Export Configuration' → downloads aegis-config-YYYY-MM-DD.json
- 'Import Configuration' → file picker, sends JSON, shows summary
- Visual checklist of what is/isn't included in the export
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-06-02 15:49:51 +02:00 |
|