Skip to content

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

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

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

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:24

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

🟡 Changes recommended

Add /config-info absence checks for both apps and remove the now-unused metrics_url fixtures.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 Medium severity · 7 Low severity

Open (8)
What changed in this PR

Removes the sensitive /config-info endpoint and related tests while preserving /metrics and cache_config_info.

Changes:

  • Deletes the configuration-leaking endpoint and unused imports.
  • Removes unit and E2E endpoint tests.
  • Retains Prometheus metrics behavior.
File Description
tests/​entrypoints/​openai/​test_metrics_routes.py Removes endpoint tests; needs absence checks on both apps.
tests/​entrypoints/​openai/​test_api_server.py Removes the configuration endpoint test.
tests/​e2e/​test_ernie_03b_router.py Removes the endpoint E2E check; unused fixture cleanup noted.
tests/​e2e/​test_ernie_03b_pd_router_v1_rdma_tp2.py Removes the endpoint E2E check; unused fixture cleanup noted.
tests/​e2e/​test_ernie_03b_pd_router_v1_rdma_tp1.py Removes the endpoint E2E check; unused fixture cleanup noted.
tests/​e2e/​test_ernie_03b_pd_router_v1_rdma_global_cache.py Removes the endpoint E2E check; unused fixture cleanup noted.
tests/​e2e/​test_ernie_03b_pd_router_v1_ipc.py Removes the endpoint E2E check; unused fixture cleanup noted.
tests/​e2e/​golang_router/​test_ernie_03b_pd_golang_router_v1_rdma_tp1.py Removes the endpoint E2E check; unused fixture cleanup noted.
tests/​e2e/​golang_router/​test_ernie_03b_golang_router.py Removes the endpoint E2E check; unused fixture cleanup noted.
fastdeploy/​entrypoints/​openai/​api_server.py Removes the sensitive endpoint and related imports.

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



def test_metrics_and_config_routes():
def test_metrics_route():
assert res.status_code == 200


def send_request(url, payload, timeout=60):
assert res.status_code == 200


def send_request(url, payload, timeout=60):
assert res.status_code == 200


def send_request(url, payload, timeout=60):
assert res.status_code == 200


def send_request(url, payload, timeout=60):
@@ -266,13 +266,6 @@ def headers():
return {"Content-Type": "application/json"}
assert res.status_code == 200


def send_request(url, payload, timeout=60):
assert res.status_code == 200


def send_request(url, payload, timeout=60):
@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.

@Jiang-Jia-Jun
Jiang-Jia-Jun merged commit ff7d506 into release/2.6 Sep 24, 2026
2 of 9 checks passed
@Jiang-Jia-Jun
Jiang-Jia-Jun deleted the rm-config-info-release-2.6 branch September 24, 2026 12:36
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