feat: nbctl more commands and enhancements#2
Conversation
Summary of ChangesHello @blue4209211, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly expands the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces several new commands (logs list-log-groups, security list-image-cves, traces query) and enhances existing functionality, such as adding profile support via a --profile flag and improving the interactive nubi shell with conversation follow-ups. The code is also modernized by replacing interface{} with any.
My review focuses on correctness, security, and user experience. I've identified a security vulnerability in the new traces query command due to unsafe query string construction, a couple of functional bugs in logs list-log-groups related to incorrect metric calculation and an unused flag, and a broken test file for a removed command. I've also included suggestions to improve the command-line output for metrics query to make it more user-friendly.
97112b3 to
bb22b3e
Compare
bb22b3e to
860f639
Compare
Resolves all three open high-severity alerts against github.com/modelcontextprotocol/go-sdk: - Alert #2: Improper handling of null Unicode in JSON parsing - Alert #3: Cross-Site Tool Execution for HTTP servers without auth - Alert #4: DNS Rebinding Protection disabled by default on localhost All three are fixed by v1.4.1 (minor bump from v1.3.1). Transitive bumps via go mod tidy: - github.com/segmentio/encoding v0.5.3 -> v0.5.4 - golang.org/x/oauth2 v0.30.0 -> v0.34.0 - golang.org/x/sys v0.36.0 -> v0.40.0 Verified locally: `make test` green, `nbctl mcp` registers all 44 tools and reports "MCP server started, waiting for requests..." Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
cleanups
commands
configs
Related #19863