Either reuses the existing key or replaces it. --force should handle this.
Failed to start Aegis: Error: An API key with the name "ag-init-admin" already exists for this tenant
at AuthManager.createKey (dist/services/auth/AuthManager.js:183:25)
at handleInit (dist/commands/init.js:555:46)
code: 'DUPLICATE_KEY_NAME',
statusCode: 409
Bug Report
Aegis version: v0.6.7-preview.1
Reproduction
ag init— creates admin key "ag-init-admin"ag init --forceExpected
Either reuses the existing key or replaces it.
--forceshould handle this.Actual
Impact
MEDIUM —
--forceis the documented way to re-bootstrap, but it fails when any key from a previous init still exists.Fix Suggestion
--forceshould either:Related