security(vault,recovery,config): harden Vault keyfile/seal, strip recovery passwords, guard config & symlinks
This commit is contained in:
parent
005c82e6bf
commit
e3f716d24f
12 changed files with 504 additions and 207 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue