Skip to content

[https://nvbugs/5911594][fix] Restrict HTTP cluster storage to loopback - #14161

Merged
yibinl-nvidia merged 6 commits into
NVIDIA:mainfrom
yibinl-nvidia:fix/5911594-cluster-storage-loopback
May 28, 2026
Merged

[https://nvbugs/5911594][fix] Restrict HTTP cluster storage to loopback#14161
yibinl-nvidia merged 6 commits into
NVIDIA:mainfrom
yibinl-nvidia:fix/5911594-cluster-storage-loopback

Conversation

@yibinl-nvidia

@yibinl-nvidia yibinl-nvidia commented May 15, 2026

Copy link
Copy Markdown
Collaborator

Summary:

  • Add a loopback-host validator for HTTP(S) cluster storage.
  • Reject disaggregated server startup when HTTP cluster storage is configured outside loopback-only serving.
  • Leave etcd cluster storage unchanged.

Summary by CodeRabbit

  • Bug Fixes
    • Enhanced validation for cluster storage configuration to ensure HTTP/HTTPS URIs comply with loopback-only requirements in disaggregated serving setups, preventing misconfiguration errors.

Review Change Stack

@coderabbitai

coderabbitai Bot commented May 15, 2026

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

This pull request adds HTTP cluster storage scope validation to prevent insecure disaggregated serving configurations. It introduces loopback host detection and a validator that ensures HTTP/HTTPS cluster URIs are only used when both the cluster URI hostname and server hostname are loopback addresses, then integrates this validation into the OpenAI disaggregated server initialization.

Changes

HTTP Cluster Storage Validation

Layer / File(s) Summary
Loopback and HTTP cluster storage scope validators
tensorrt_llm/serve/cluster_storage.py
Adds ipaddress import, then defines is_loopback_host to detect loopback from hostname or IP string, and validate_http_cluster_storage_scope to enforce that HTTP(S) cluster URIs are only used in loopback-only disaggregated serving configurations.
Server initialization with cluster storage validation
tensorrt_llm/serve/openai_disagg_server.py
Imports the validator and refactors OpenAIDisaggServer.__init__ to validate cluster storage URI/hostname scope before creating the cluster storage server instance, raising ValueError if scope validation fails.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ❓ Inconclusive The PR description is concise but incomplete. It lacks required sections like detailed explanation of the issue, test coverage details, and PR checklist items. Expand the description to include: (1) the specific issue being addressed, (2) detailed test coverage information, and (3) completion of the PR checklist with appropriate confirmations.
✅ Passed checks (3 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The PR title clearly and concisely summarizes the main change: restricting HTTP cluster storage usage to loopback connections, which aligns with the primary objective of adding validation to prevent disaggregated server startup with HTTP cluster storage outside loopback-only serving.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@tensorrt_llm/serve/cluster_storage.py`:
- Line 5: Add the required NVIDIA Apache 2.0 license header at the very top of
this modified source file (above the existing import ipaddress), using the
NVIDIA copyright header with the latest modification year (2026) and the Apache
License, Version 2.0 text; ensure the header matches other TensorRT-LLM files
and appears before any imports or code (so functions/classes that reference this
file like cluster storage utilities will have the mandated license header).
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 63e3bf74-5158-426e-853b-2ba0e099e2ff

📥 Commits

Reviewing files that changed from the base of the PR and between d75df19 and 86f8c45.

📒 Files selected for processing (2)
  • tensorrt_llm/serve/cluster_storage.py
  • tensorrt_llm/serve/openai_disagg_server.py

Comment thread tensorrt_llm/serve/cluster_storage.py
@yibinl-nvidia yibinl-nvidia changed the title fix(serve): restrict HTTP cluster storage to loopback [https://nvbugs/5911594][fix] Restrict HTTP cluster storage to loopback May 15, 2026
@yibinl-nvidia

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #48657 [ run ] triggered by Bot. Commit: 86f8c45 Link to invocation

@yibinl-nvidia

Copy link
Copy Markdown
Collaborator Author

/bot kill

@yibinl-nvidia
yibinl-nvidia force-pushed the fix/5911594-cluster-storage-loopback branch from 572af5c to c97683f Compare May 16, 2026 07:40
@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #48677 [ kill ] triggered by Bot. Commit: c97683f Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #48657 [ run ] completed with state ABORTED. Commit: 86f8c45
/LLM/main/L0_MergeRequest_PR pipeline #38437 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #48677 [ kill ] completed with state SUCCESS. Commit: c97683f
Successfully killed previous jobs for commit c97683f

Link to invocation

@yibinl-nvidia

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #48678 [ run ] triggered by Bot. Commit: c97683f Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #48678 [ run ] completed with state SUCCESS. Commit: c97683f
/LLM/main/L0_MergeRequest_PR pipeline #38456 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@yibinl-nvidia

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #48684 [ run ] triggered by Bot. Commit: c97683f Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #48684 [ run ] completed with state SUCCESS. Commit: c97683f
/LLM/main/L0_MergeRequest_PR pipeline #38462 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

Link to invocation

@yibinl-nvidia

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #48698 [ run ] triggered by Bot. Commit: c97683f Link to invocation

@yibinl-nvidia

Copy link
Copy Markdown
Collaborator Author

/bot kill

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #48700 [ kill ] triggered by Bot. Commit: c97683f Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #48698 [ run ] completed with state ABORTED. Commit: c97683f

Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #48700 [ kill ] completed with state SUCCESS. Commit: c97683f
Successfully killed previous jobs for commit c97683f

Link to invocation

@yibinl-nvidia

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #48703 [ run ] triggered by Bot. Commit: c97683f Link to invocation

@yibinl-nvidia
yibinl-nvidia force-pushed the fix/5911594-cluster-storage-loopback branch from d3e58dd to d60a68c Compare May 27, 2026 20:48
@yibinl-nvidia

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #50615 [ run ] triggered by Bot. Commit: d60a68c Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #50615 [ run ] completed with state FAILURE. Commit: d60a68c
/LLM/main/L0_MergeRequest_PR pipeline #40110 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

Link to invocation

@yibinl-nvidia

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #50622 [ run ] triggered by Bot. Commit: d60a68c Link to invocation

@yibinl-nvidia

Copy link
Copy Markdown
Collaborator Author

/bot kill

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #50698 [ kill ] triggered by Bot. Commit: d60a68c Link to invocation

Signed-off-by: Yibin Li <109242046+yibinl-nvidia@users.noreply.github.com>
Signed-off-by: Yibin Li <109242046+yibinl-nvidia@users.noreply.github.com>
Signed-off-by: Yibin Li <109242046+yibinl-nvidia@users.noreply.github.com>
Signed-off-by: Yibin Li <109242046+yibinl-nvidia@users.noreply.github.com>
Signed-off-by: Yibin Li <109242046+yibinl-nvidia@users.noreply.github.com>
Signed-off-by: Yibin Li <109242046+yibinl-nvidia@users.noreply.github.com>
@yibinl-nvidia
yibinl-nvidia force-pushed the fix/5911594-cluster-storage-loopback branch from d60a68c to 9dbb436 Compare May 28, 2026 05:21
@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #50698 [ kill ] completed with state SUCCESS. Commit: d60a68c
Successfully killed previous jobs for commit d60a68c

Link to invocation

@yibinl-nvidia

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #50701 [ run ] triggered by Bot. Commit: 9dbb436 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #50701 [ run ] completed with state FAILURE. Commit: 9dbb436
/LLM/main/L0_MergeRequest_PR pipeline #40185 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@yibinl-nvidia

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #50704 [ run ] triggered by Bot. Commit: 9dbb436 Link to invocation

@yibinl-nvidia

Copy link
Copy Markdown
Collaborator Author

/bot kill

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #50767 [ kill ] triggered by Bot. Commit: 9dbb436 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #50704 [ run ] completed with state ABORTED. Commit: 9dbb436
/LLM/main/L0_MergeRequest_PR pipeline #40188 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #50767 [ kill ] completed with state SUCCESS. Commit: 9dbb436
Successfully killed previous jobs for commit 9dbb436

Link to invocation

@yibinl-nvidia

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #50769 [ run ] triggered by Bot. Commit: 9dbb436 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #50769 [ run ] completed with state SUCCESS. Commit: 9dbb436
/LLM/main/L0_MergeRequest_PR pipeline #40246 completed with status: 'SUCCESS'

CI Report

Link to invocation

@yibinl-nvidia
yibinl-nvidia merged commit e8a42a1 into NVIDIA:main May 28, 2026
7 checks passed
@yibinl-nvidia
yibinl-nvidia deleted the fix/5911594-cluster-storage-loopback branch May 28, 2026 19:59
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.

5 participants