Hardened systemd deployment contract for read-only Monero observer
This commit is contained in:
@@ -772,7 +772,7 @@ test('configuration requires secret files, verified TLS, literal backend, and lo
|
||||
await assert.rejects(openCustodyStorage(dir, options, { WIKIDECK_CUSTODY_STORAGE: 'postgres',
|
||||
WIKIDECK_CUSTODY_CANONICAL_REHEARSAL: 'yes', WIKIDECK_PG_DISPOSABLE_TEST: '1' }), /exactly 0 or 1/);
|
||||
await assert.rejects(postgresConfig({}), /configuration/);
|
||||
await writeFile(file, 'postgresql://user:secret@database.example/custody');
|
||||
await writeFile(file, 'postgresql://user:secret@database.example/custody', { mode: 0o600 });
|
||||
const secure = await postgresConfig({ WIKIDECK_CUSTODY_PG_URL_FILE: file }); assert.equal((secure.ssl as { rejectUnauthorized: boolean }).rejectUnauthorized, true);
|
||||
await assert.rejects(postgresConfig({ WIKIDECK_CUSTODY_PG_URL_FILE: file, WIKIDECK_CUSTODY_PG_LOCAL_TEST: '1' }), /configuration/);
|
||||
await writeFile(file, 'postgresql://user:secret@127.0.0.1/custody?sslmode=disable');
|
||||
|
||||
Reference in New Issue
Block a user