Overview
| Artifact ID: | 3568229b5e4d0a01369ee916fb3c5700db7e8edbc68233d502aa57c58f964c3b |
|---|---|
| Ticket: | bd68d1073409d288846b5caadc85f5904e5af96e
Worker tokens minted from Runners cannot claim any task type (claims lack the prefix) (G-70) |
| User & Date: | jva on 2026-09-16 22:04:14 |
Changes
- icomment:
Correction from zeitgeist (2026-09-16 22:03Z), amending the title's claim: this is not a mint-boundary bug. dagnats' Claims.AllowsTaskType (internal/workertoken/token.go) matches an exact task type or a DOT-delimited namespace (prefix P matches P.foo by testing taskType[len(P)] == '.'), so 'dantest-' can never match 'dantest-puzzles'. Nothing is lost in transit; the two sides mean different things by 'prefix'. The actual defect is the Runners form: the field is labelled 'prefixes' with placeholder 'e2e- build-', which reads as string-prefix matching and is the natural thing to type. Anyone who follows the placeholder mints a credential that matches no task type and then gets a 403 that blames the task type. Signifier problem (the control advertises behaviour it does not have) plus error-recovery problem (the 403 names the wrong cause and no remedy). Workaround: mint with exact task types, space separated ('dantest-puzzles dantest-html'). With that, the host worker polled and received run 26acbacb. Suggested fix: relabel the field ('task types, or a namespace ending in a dot'), fix the placeholder, and make the 403 say 'this token allows [x]; the task type was [y]'. - mimetype: "text/x-markdown"