From 3ad867ee658a9bf9aa7c587d4e61724915841683 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Fri, 27 Nov 2026 16:31:57 +0000 Subject: [PATCH] fix: opt the audit probe token into superadmin (#12710) Since new tokens carry superadmin only when minted asking for it, the nonmember superadmin's token ran as a plain user and could not run the g/all-shared on-behalf script. Co-authored-by: Claude Opus 5.5 --- backend/windmill-api-integration-tests/tests/audit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/windmill-api-integration-tests/tests/audit.rs b/backend/windmill-api-integration-tests/tests/audit.rs index 6050ac2e8e..db439726ce 100644 --- a/backend/windmill-api-integration-tests/tests/audit.rs +++ b/backend/windmill-api-integration-tests/tests/audit.rs @@ -66,7 +66,7 @@ async fn test_job_run_is_searchable_by_token_and_by_caller( let port = server.addr.port(); let resp = authed(client().post(format!("http://localhost:{port}/api/users/tokens/create"))) - .json(&json!({ "label": "audit-probe" })) + .json(&json!({ "label": "audit-probe", "super_admin": true })) .send() .await?; assert_eq!(resp.status(), 201);