feat(server): add Engine RPC API key methods#13
Merged
Conversation
Implements API key management for the Engine RPC endpoint: - apiKey.create: Create a new API key (returns raw key once) - apiKey.get: Get API key metadata by ID - apiKey.list: List API keys for a user - apiKey.revoke: Revoke an API key (soft delete) - apiKey.delete: Permanently delete an API key Adds 8 new schema tests (156 total tests passing).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements API key management methods for the Engine RPC endpoint (
/api/v1/engine/rpc).Methods Added
apiKey.createapiKey.getapiKey.listapiKey.revokeapiKey.deleteNew Files
rpc/engine/api-key.ts- API key method handlersChanges
rpc/engine/schemas.ts- Added API key schemas with expiration timestamp supportrpc/engine/schemas.test.ts- Added 8 new testsrpc/engine/index.ts- Merged apiKeyMethods registrySecurity Notes
rawKeyis only returned fromapiKey.create- it cannot be retrieved againapiKey.revokesoft-deletes (preserves audit trail)apiKey.deletepermanently removes the keyTesting
Part of
Server implementation chunk 5/9
This completes the Engine RPC methods. Chunks 6-9 cover Accounts RPC and OAuth.