You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Check the runner's credential on the token exchange and deregister routes #43
The runner protocol's token exchange, POST /_apis/oauth2/token?runner_id=<id>, issues a runner token after checking only the grant type and that the runner exists. The runner's registration credential isn't checked. actions/runner sends a JWT client assertion, signed with the RSA key it registered.
The pipelines deregister routes don't take a runner credential either. They are reachable with a token from the exchange above.
To match GitHub:
On the token exchange, verify the client_assertion JWT against the public key stored at registration. Check iss/sub (the runner's client id), aud, and the expiry, and answer 400 invalid_client when it fails.
Require the runner's own token on the deregister routes, as on the other runner routes.
Tests: a wrong key, an expired assertion and another runner's id are refused; config.sh registration, the message long-poll and config.sh remove still work end to end.
Confirmed in the code: the token exchange handler checks only grant_type and runner existence, and both pipelines deregister handlers take no credential. Nothing stores the registration public key today, so the work includes persisting it at registration and adding a migration.
Decide how runners registered without a key (legacy rows or registration paths that never receive one) are treated on the exchange, and note the choice in the PR.
Proposed test case:
register runner with known RSA key
exchange with valid signed assertion -> 200 + access_token
exchange with wrong key / expired / sub of another runner / wrong aud / no assertion -> 400 invalid_client
DELETE deregister (repo and enterprise): no token -> 401/403; another runner's token -> 401/403; own token -> 200
config.sh register -> long-poll -> config.sh remove still works end to end
Next steps:
/fs-code — agent creates a PR to implement this issue
/fs-code <your instruction> — agent implements with your specific guidance
Activity
fullsend-ai-triage commentedon Nov 19, 2026
🤖 Finished Triage · ✅ Success · Started 1:21 AM UTC · Completed 1:23 AM UTC
Commit:
22d460a· View workflow run →Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.27
fullsend-ai-triage commentedon Nov 19, 2026
Triage notes:
Proposed test case:
Next steps:
/fs-code— agent creates a PR to implement this issue/fs-code <your instruction>— agent implements with your specific guidancefullsend-ai-coder commentedon Nov 19, 2026
🤖 Finished Code · ✅ Success · Started 1:25 AM UTC · Completed 1:50 AM UTC
Commit:
22d460a· View workflow run →Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $3.24
fix(#43): scope runner key replacement and reject non-finite assertio…
fix(#43): only the registration broker may replace another runner's key
Merge pull request #44 from fullsend-ai/agent/43-runner-credential-ch…