Add security endpoint for public key retrieval and RSA key management#92
Merged
Conversation
- Add vault-based initialization and retrieval for RSA key pairs - Implement key rotation functionality with timestamps - Remove verbose header comments from encryption utility - Add VAULT_PATHS constant for consistent key storage location - Update dependencies to include vault helper and dayjs
- Create security API documentation structure with OpenAPI paths - Implement SecurityService with showPublicKey method - Add public key retrieval using vault integration from encrypt utilities - Re-enable debug flag for development environment
…endpoint - Rename SecurityService to KeyService for better semantics - Create KeyController with showPublicKey endpoint handler - Move service logic to dedicated keys.service.js file - Maintain existing functionality with proper error handling
- Create security router module with express router - Register GET /security/public-key route using KeyController - Integrate security routes into main web router
- Add security directory with public-key endpoint diagrams - Expand auth directory with new 2FA and device management diagrams - Rename verify-code related files for consistency - Update total file and directory counts in structure.txt
- Add success message key for showPublicKey endpoint in both en and es locales - Wrap public key response in data object structure in controller - Reformat JSON files with tabs for consistent indentation
- Create decrypt.middleware.js with decryptSensitiveData function - Support decryption of properties across body, query, and params - Use RSA private key from vault for decryption operations - Handle error cases with descriptive error messages
- Add decrypt.middleware.js to middlewares/security directory listing - Adjust total file count in structure.txt
DiegoAlejandroNino
previously approved these changes
Jan 25, 2026
Auto-generated by GitHub Actions workflow PR: #92 Workflow: Auto Version & Changelog Run ID: 21323896941
|
🚀 Auto-versioning complete! 📦 New version:
|
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
This PR introduces a new security endpoint for retrieving the public encryption key and integrates RSA key management with Vault storage. It enables secure encryption/decryption workflows and provides infrastructure for handling sensitive data transmission.
🎯 Type of Change
🔍 What Changed
Added
GET /security/public-keyendpoint with controller, service, and routingChanged
🧪 Testing
Test Instructions:
GET /security/public-keyendpoint to retrieve public key🔗 Related Issues
📝 Additional Notes
✅ Checklist