[Serving] Remove config-info endpoint from metrics server - #8129
Merged
Merged
Conversation
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.
|
|
Contributor
There was a problem hiding this comment.
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_infometric 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.