Implement public debug attach authorization

This commit is contained in:
Michel Paulissen 2026-07-03 21:18:10 +02:00
parent 005b47e4c0
commit f586b48893
5 changed files with 201 additions and 4 deletions

View file

@ -108,6 +108,7 @@ for (const [name, pattern] of [
["CLI key lifecycle coverage", /fn key_lifecycle_reports_project_scoped_agent_credentials\(\)/],
["CLI node revoke coverage", /fn node_revoke_reports_scoped_credential_revocation\(\)/],
["CLI admin public API coverage", /fn admin_status_and_suspend_use_public_coordinator_api\(\)/],
["CLI debug attach coverage", /fn debug_attach_reports_public_authorization\(\)/],
["doctor unchecked reachability coverage", /fn doctor_reports_unchecked_coordinator_reachability_without_config\(\)/],
["doctor ping reachability coverage", /fn doctor_pings_configured_coordinator\(\)/],
["project local config coverage", /fn project_init_select_and_status_use_local_project_config\(\)/],
@ -149,6 +150,11 @@ expect(
"coordinator public admin suspension coverage",
/fn service_reports_and_enforces_public_admin_tenant_suspension\(\)/
);
expect(
coordinator,
"coordinator debug attach coverage",
/fn service_authorizes_debug_attach_through_public_api\(\)/
);
for (const [name, pattern] of [
["agent --json flag", /struct AgentEnrollArgs[\s\S]*#\[arg\(long\)\]\s*json: bool/],

View file

@ -63,6 +63,7 @@ for (const variant of [
"CancelTask",
"CancelProcess",
"PollTaskControl",
"DebugAttach",
"TaskCompleted",
]) {
assertNoUserSessionCredential(