Update README.md - #1039
Closed
Ebby46 wants to merge 1 commit into
Closed
Conversation
|
@Ebby46 is attempting to deploy a commit to the paul joseph's projects Team on Vercel. A member of the Team first needs to authorize it. |
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.
closes #871
Pull Request Template for ArenaX
Issue Reference
Issue: #978 - API Key Rotation System
Description
Implemented a comprehensive API Key Rotation System with structured permissions management, usage tracking, and revocation mechanisms.
Changes Summary
New Files
backend/migrations/20260827000001_api_key_rotation.up.sql- Database schema for API key rotation systembackend/migrations/20260827000001_api_key_rotation.down.sql- Rollback migrationbackend/src/models/api_key.rs- API key data models and DTOsbackend/src/service/api_key_service.rs- Business logic for API key managementbackend/src/http/api_key.rs- HTTP API endpoints for API key operationsModified Files
.github/CODEOWNERS- Added API key related file ownershipDatabase Schema Changes
api_keys- Main table with key properties, rotation settings, usage trackingapi_key_usage_logs- Audit trail for all API key usageapi_key_rotation_history- Records all key rotations with hashesapi_key_summaries- View with computed status (active/revoked/expired/max_uses_exceeded/rotation_due)Features Implemented
✅ Key Generation & Rotation
✅ Scoped Permissions
scopes: Vec<String>)✅ Expiration Management
✅ Usage Tracking
✅ Revocation Mechanism
API Endpoints
Testing Checklist
Dependencies
base64crate for URL-safe key encodingsha2crate for key hashing (SHA-256)chronocrate for date/time handlingBreaking Changes
None - this is a new feature.
Additional Notes