Conversation
Signed-off-by: sanjio3 <2433877589@qq.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 8 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughThe default metrics address changed from ChangesMetrics loopback binding
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The metrics and diagnostic endpoints now default to loopback, reducing unintended network exposure without affecting explicit configurations. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description explains the problem, the code changes, the regression test, and the issue reference. However, it does not follow the repository template because it omits the required Motivation and Context, How Has This Been Tested, Types of changes, and Checklist sections. Resolution Add the missing template sections. State the motivation and context, describe the test environment and commands run, select the applicable change type, and complete the checklist. Use the required issue-resolution format if applicable, such as "Resolves
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Summary
The metrics/tool API daemon binds
cfg.MetricsPort, which defaulted to:2112鈥?an empty host binds all interfaces (including IPv6), exposing the tools API beyond loopback. The main API daemon defaultsBindAddressto127.0.0.1, so the two listeners had inconsistent exposure.Changes
MetricsPortto127.0.0.1:2112so the tools API binds loopback by default, matching the main APIBindAddressandMetricsPortdefault to loopbackUsers who explicitly configure
metrics_port: :2112keep the ability to expose it; this only changes the default.Fixes #1449
Summary by CodeRabbit
Configuration
127.0.0.1:2112, limiting access to the host running the service.Tests