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
Commit 21f1dcc
Browse filesBrowse the repository at this point in the historyBrowse files
feat(webapp): webhook and waitpoint access for scoped API keys
The access summary in the New API key dialog now shows Errors, Webhooks
and Waitpoints rows, so presets that grant those scopes show them:
| Preset | Errors | Webhooks | Waitpoints |
| -- | -- | -- | -- |
| Observer | Read | Read | No access |
| Operator | Read & write | Read & write | No access |
| Webhooks only | No access | Read & write | No access |
| Waitpoints only | No access | No access | Read & write |
The Webhooks only and Waitpoints only presets are listed under
Environment capabilities next to Observer and Operator.
Waitpoint token routes now authorize by scope, so a key with waitpoint
access can use them, not just a full-access key:
```bash
curl -X POST "$TRIGGER_API_URL/api/v1/waitpoints/tokens" \
-H "Authorization: Bearer $WAITPOINTS_KEY" \
-H "Content-Type: application/json" \
-d '{"timeout": "1h"}'
```
Creating a token needs `write:waitpoints`; listing and retrieving tokens
need `read:waitpoints`.
Mono-RevId: eb4673818ce46613d1b11a50b89fdb09d616e922
The new API key dialog's access summary now shows Errors, Webhooks and Waitpoints access, and API keys with waitpoint access can create, list and retrieve waitpoint tokens.
0 commit comments