Skip to content

Commit 79a8783

Browse files
committed
test(dogfood): the platform-admin /admin/ sweep admits the two SCIM credential mounts
The full dogfood suite's platform-admin standing sweep derives every served /admin/ route and requires each to be classified. The SCIM mint and revoke mounts carry the ADR-0068 gate first, so they join ADMITTED with probe payloads that reach the handler: SCIM is on at this boot, so the mint answers 200, and the revoke of an unknown id answers 404. Claude-Session: https://claude.ai/code/session_016WV4cycHNJyS5MXHqaGsFE Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 677f474 commit 79a8783

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎packages/qa/dogfood/test/admin-platform-admin-standing.dogfood.test.ts‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,14 @@ const ADMITTED = [
249249
'POST /api/v1/auth/admin/sso/register-saml',
250250
'POST /api/v1/auth/admin/sso/request-domain-verification',
251251
'POST /api/v1/auth/admin/sso/verify-domain',
252+
// #30958 — the SCIM connection credential door: ObjectStack raw mounts whose
253+
// FIRST statement is the ADR-0068 gate. SCIM is on at this boot
254+
// (`OS_SCIM_ENABLED`), so the mint reaches a 200 and stores a credential;
255+
// the revoke of an id that does not exist reaches the handler and answers
256+
// 404. Their stored effects (the bearer provisions, is refused once revoked,
257+
// and is audited) are pinned in `admin-identity-audit-trail.dogfood.test.ts`.
258+
'POST /api/v1/auth/admin/scim/mint-credential',
259+
'POST /api/v1/auth/admin/scim/revoke-credential',
252260
] as const;
253261

254262
/**
@@ -731,6 +739,10 @@ describe('#9482: what an ObjectStack platform admin gets from every /admin/ rout
731739
},
732740
'POST /api/v1/auth/admin/sso/request-domain-verification': { body: { providerId: 'standing-probe-oidc' } },
733741
'POST /api/v1/auth/admin/sso/verify-domain': { body: { providerId: 'standing-probe-oidc' } },
742+
// #30958. A connection id is the only required field; the revoke names a
743+
// credential id that does not exist, so it moves nothing.
744+
'POST /api/v1/auth/admin/scim/mint-credential': { body: { connectionId: 'standing-probe-scim' } },
745+
'POST /api/v1/auth/admin/scim/revoke-credential': { body: { credentialId: 'standing-probe-credential' } },
734746
'POST /api/v1/auth/admin/ban-user': { body: { userId: targetUserId, banReason: 'sweep' } },
735747
'POST /api/v1/auth/admin/unban-user': { body: { userId: targetUserId } },
736748
'POST /api/v1/auth/admin/impersonate-user': { body: { userId: targetUserId } },

0 commit comments

Comments
 (0)