- Notifications
You must be signed in to change notification settings - Fork1k
Commita343213
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 parent3bdb267 commita343213
File tree
18 files changed
+767
-71
lines changed- coderd
- apidoc
- apikey
- database
- dbauthz
- dbmetrics
- dbmock
- queries
- codersdk
- docs/reference/api
- site/src/api
18 files changed
+767
-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)