Require signed agent releases (Refs #64)

This commit is contained in:
2026-10-09 20:36:18 -04:00
parent df0d395138
commit 6f71822d41
24 changed files with 984 additions and 107 deletions
+7
View File
@@ -38,6 +38,13 @@ async function enrolled() {
}
describe('native host enrollment and scoped authentication', () => {
it('enrolls with an independently obtained local installer and quotes the token', async () => {
const { installerCommand } = await import('../../src/lib/server/hosts/http.js');
expect(installerCommand('https://controller.example/hosts/new', "token'quote")).toBe(
"sudo bash ./electric-cherry-install.sh --controller 'https://controller.example' --token 'token'\\''quote'"
);
});
it.each(['instance.inspect', 'rcon.status-batch'])(
'expires undelivered %s on timeout and delivers the next fresh check',
async (kind) => {