Deploy reviewed Windows sync alignment with schema 20 server
Rust development slice / linux (push) Failing after 7s

Bind the administrative connection-205 review to original signed history and preserve closed readiness. Include the qualified server dependency closure, UI review, native ARM64 build provenance, and guarded deployment evidence. Migration, API/gateway replacement and TLS checks passed with unchanged job authority, protected mounts and time/database services; native Windows receipt application remains separate.
This commit is contained in:
2026-11-16 13:30:31 +01:00
parent 7b320b932e
commit cafd13bca9
34 changed files with 3865 additions and 43 deletions
+13
View File
@@ -84,6 +84,19 @@ describe('immutable catalog and strict import contracts', () => {
});
});
describe('root and dedicated dev-test APT actions', () => {
it('binds a SYSTEM reboot to the fixed native profile and rejects extra effects before approval', async () => {
const action = { action: 'reboot', reason: 'Windows-MVP', dependency_group: 'windows-mvp-single', reconnect_timeout_seconds: 180 };
const value: PlanInput = { tenant_id: 't', action: 'reboot', targets: { asset_ids: ['asset'] }, parameters: { execution_identity: 'system', reason: action.reason, dependency_group: action.dependency_group, reconnect_timeout_seconds: 180, timeout_seconds: 60, max_output_bytes: 4096 }, schedule: { not_before: '', start_before: '', offline_policy: 'wait_until_deadline' }, rollout: { max_parallel: 1, halt_after_failures: 1 }, reason: 'unit' };
await expect(validateSensitiveInput(value, auth)).rejects.toThrow('system:execute');
await validateSensitiveInput(value, { ...auth, permissions: ['system:execute'] });
const make = async (change: Record<string, unknown> = {}) => {
const jobs = [{ payload: { execution_identity: 'system', asset_id: 'asset', action: { ...action, ...change }, max_runtime_seconds: 60, max_output_bytes: 4096 } }];
const raw = new TextEncoder().encode(JSON.stringify({ jobs }));
return { jobs, plan_payload_bytes: Array.from(raw), plan_hash: await sha256(raw) };
};
await verifyPlanIntegrity(await make());
for (const change of [{ reconnect_timeout_seconds: 181 }, { command: 'shutdown' }, { force: true }, { reason: '' }]) await expect(verifyPlanIntegrity(await make(change))).rejects.toThrow();
});
it('requires independent system scope and verifies the exact bounded SYSTEM service plan', async () => {
const value: PlanInput = { tenant_id: 't', action: 'set_service_state', targets: { asset_ids: ['asset'] }, parameters: { execution_identity: 'system', unit: 'RmmDiscoveryFixtureService', state: 'running', timeout_seconds: 30, max_output_bytes: 4096 }, schedule: { not_before: '', start_before: '', offline_policy: 'wait_until_deadline' }, rollout: { max_parallel: 1, halt_after_failures: 1 }, reason: 'unit only' };
for (const permissions of [undefined, [], ['root:execute']]) await expect(validateSensitiveInput(value, { ...auth, permissions })).rejects.toThrow('system:execute');