Skip to content

[Serving] Remove config-info endpoint from metrics server - #8124

Merged
Jiang-Jia-Jun merged 1 commit into
release/2.4from
rm-config-info-release-2.4
Sep 24, 2026
Merged

Jiang-Jia-Jun merged 1 commit into
release/2.4from
rm-config-info-release-2.4

Conversation

@Jiang-Jia-Jun

Copy link
Copy Markdown
Collaborator

The /config-info endpoint on the metrics server dumps the full engine config (cfg.dict) and all environment variables as JSON, leaking sensitive configuration and secrets. Remove the endpoint and its tests. The cache_config_info Prometheus metric is unchanged.

The /config-info endpoint on the metrics server dumps the full engine config (cfg.__dict__) and all environment variables as JSON, leaking sensitive configuration and secrets. Remove the endpoint and its tests. The cache_config_info Prometheus metric is unchanged.
Copilot AI lite review requested due to automatic review settings September 24, 2026 12:22
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

Add regression assertions confirming /config-info is absent from both metrics applications.

Review effort: Lite
Findings: None

What changed in this PR

Removes the sensitive /config-info endpoint while preserving Prometheus metrics.

Changes:

  • Removes endpoint implementation and related tests.
  • Retains /metrics and cache_config_info behavior.
File Summary
tests/​entrypoints/​openai/​test_metrics_routes.py Removes endpoint tests.
tests/​e2e/​test_ernie_03b_router.py Removes endpoint E2E test.
tests/​e2e/​test_ernie_03b_pd_router_v1_rdma_tp2.py Removes endpoint E2E test.
tests/​e2e/​test_ernie_03b_pd_router_v1_rdma_tp1.py Removes endpoint E2E test.
tests/​e2e/​test_ernie_03b_pd_router_v1_ipc.py Removes endpoint E2E test.
tests/​e2e/​test_ernie_03b_pd_router_v0.py Removes endpoint E2E test.
fastdeploy/​entrypoints/​openai/​api_server.py Removes the sensitive endpoint.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@Jiang-Jia-Jun
Jiang-Jia-Jun merged commit 7916aa1 into release/2.4 Sep 24, 2026
11 of 16 checks passed
@Jiang-Jia-Jun
Jiang-Jia-Jun deleted the rm-config-info-release-2.4 branch September 24, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants