- Notifications
You must be signed in to change notification settings - Fork1k
Commit53815d9
committed
feat: add PATCH endpoint for API key updates
Implements RFC-compliant PATCH /users/{user}/keys/tokens/{keyname}endpoint enabling updates to API key authorization parametersincluding scopes, allow lists, and expiration times.Key changes:- Add patchToken handler with comprehensive validation- Extract scope and allow list normalization into reusable functions - Implement authorization checks preventing non-owners from minting elevated scopes with wildcard allow lists- Add UpdateAPIKeyAuthorization database query with audit support- Generate OpenAPI documentation and TypeScript client typesThe endpoint supports partial updates with proper authorizationcontext validation and maintains backward compatibility withexisting token creation patterns.1 parent8ab1479 commit53815d9
File tree
17 files changed
+691
-71
lines changed- coderd
- apidoc
- database
- dbauthz
- dbmetrics
- dbmock
- queries
- codersdk
- docs/reference/api
- site/src/api
17 files changed
+691
-71
lines changedSome generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
0 commit comments
Comments
(0)