-
Couldn't load subscription status.
- Fork 11
feat: list api keys #1593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: list api keys #1593
Conversation
WalkthroughAdds a new --list capability to the API key CLI, updates option parsing and command flow to handle listing keys, and introduces a comprehensive unit test suite for the command. Also increments the API config version from 4.12.0 to 4.13.1. Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant C as ApiKeyCommand
participant S as ApiKeyService
participant L as LogService
U->>C: run(--list)
C->>S: getAllApiKeys()
S-->>C: [ApiKeys]
loop for each key
C->>S: getApiKeySecret(key)
S-->>C: secret
C->>L: log key details + secret
end
C-->>U: printed list
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
Poem
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: CodeRabbit UI 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (3)
🧰 Additional context used📓 Path-based instructions (6)**/*.{ts,tsx}📄 CodeRabbit Inference Engine (CLAUDE.md)
Files:
api/src/unraid-api/**📄 CodeRabbit Inference Engine (CLAUDE.md)
Files:
api/**/*.{test,spec}.{ts,tsx,js,jsx}📄 CodeRabbit Inference Engine (CLAUDE.md)
Files:
**/*.{test,spec}.{js,ts,jsx,tsx}📄 CodeRabbit Inference Engine (CLAUDE.md)
Files:
**/*.{ts,tsx,js,jsx,vue}📄 CodeRabbit Inference Engine (CLAUDE.md)
Files:
api/**/*.{test,spec}.{js,jsx,ts,tsx}📄 CodeRabbit Inference Engine (.cursor/rules/api-rules.mdc)
Files:
🔇 Additional comments (13)
✨ Finishing Touches
🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
|
Claude finished @elibosley's task —— View job PR Review: API Key Listing FeatureReviewing the changes for critical issues in the diff only:
Analysis of Changes🔍 Security Issue Found: In // Get the actual key value using findByField
const keyWithSecret = this.apiKeyService.findByField('id', key.id);
if (keyWithSecret) {
this.logger.log(` Key: ${keyWithSecret.key}`); // ⚠️ Exposes secrets
}Risk: This logs sensitive API key secrets to console output, which could be:
Recommendation: Remove secret exposure or add explicit warning/confirmation before displaying secrets. Other changes (version bump, case fix, new option) appear safe. |
|
This plugin has been deployed to Cloudflare R2 and is available for testing. |
Summary by CodeRabbit