Skip to content

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

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

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

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:28
@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 that /config-info is absent from both route configurations.

Review effort: Lite
Findings: None

What changed in this PR

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

Changes:

  • Deletes the endpoint and unused JSON handling.
  • Removes related unit and E2E tests.
  • Retains cache_config_info metric behavior.
File Summary
tests/​entrypoints/​openai/​test_metrics_routes.py Removes endpoint tests while retaining metrics coverage.
tests/​entrypoints/​openai/​test_api_server.py Removes the endpoint unit test.
tests/​e2e/​test_ernie_03b_router.py Removes the obsolete E2E endpoint test.
tests/​e2e/​test_ernie_03b_pd_router_v1_rdma_tp2.py Removes the obsolete E2E endpoint test.
tests/​e2e/​test_ernie_03b_pd_router_v1_rdma_tp1.py Removes the obsolete E2E endpoint test.
tests/​e2e/​test_ernie_03b_pd_router_v1_ipc.py Removes the obsolete E2E endpoint test.
tests/​e2e/​test_ernie_03b_pd_router_v0_ipc.py Removes the obsolete E2E endpoint 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 12cf0a5 into release/2.5 Sep 24, 2026
18 of 25 checks passed
@Jiang-Jia-Jun
Jiang-Jia-Jun deleted the rm-config-info-release-2.5 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