security(vault,recovery,config): harden Vault keyfile/seal, strip recovery passwords, guard config & symlinks

This commit is contained in:
tyuXX 2026-11-27 22:22:59 +00:00
parent 005c82e6bf
commit e3f716d24f
12 changed files with 504 additions and 207 deletions

View file

@ -121,10 +121,10 @@ describe('Phase 2 E2E: /api/servers, TOFU, Live Metrics WS, Key Rotation & Panic
});
ws.send(JSON.stringify({ type: 'sub', channels: ['metrics', 'alerts', 'config'] }));
expect((await api('/api/vault/init', { method: 'POST', body: {} })).status).toBe(201);
expect(
(await api('/api/auth/step-up', { method: 'POST', body: { code: totp.generate() } })).status,
).toBe(200);
expect((await api('/api/vault/init', { method: 'POST', body: {} })).status).toBe(201);
const keyRes = await api('/api/vault/generate-ed25519', {
method: 'POST',