Skip to content

Commit ac688f4

Browse files
committed
test(dogfood): pin the SCIM credential export refusal the composed runtime answers
Measured on the composed runtime: the export door answers 403 EXPORT_NOT_PERMITTED for the platform admin on sys_scim_connection_credential, so the pin asserts that refusal and that its body names neither the bearer nor its digest. Claude-Session: https://claude.ai/code/session_016WV4cycHNJyS5MXHqaGsFE Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 84390e3 commit ac688f4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎packages/qa/dogfood/test/admin-identity-audit-trail.dogfood.test.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,9 +329,13 @@ describe('#4940: what an admin identity operation leaves in sys_audit_log', () =
329329
const listed = await list.text();
330330
expect(list.status, listed).toBe(200);
331331
expect(listed).toContain(credentialId);
332+
// Export is refused outright, even to the platform admin: no permission set
333+
// grants `allowExport` on this engine-owned object (measured 403). Pinned so a
334+
// future grant has to come back here and show the export serves no secret.
332335
const exported = await stack.apiAs(adminToken, 'GET', '/data/sys_scim_connection_credential/export');
333336
const exportedText = await exported.text();
334-
expect(exported.status, exportedText.slice(0, 300)).toBe(200);
337+
expect(exported.status, exportedText.slice(0, 300)).toBe(403);
338+
expect(JSON.parse(exportedText).code).toBe('EXPORT_NOT_PERMITTED');
335339
for (const served of [listed, exportedText]) {
336340
expect(served).not.toContain(token);
337341
expect(served).not.toContain(digest);

0 commit comments

Comments
 (0)