Skip to content

fix(helm): validate gateway listener ports - #3179

Open
guanchzhou wants to merge 2 commits into
NVIDIA:mainfrom
guanchzhou:helm-gateway-port-validation/am
Open

fix(helm): validate gateway listener ports#3179
guanchzhou wants to merge 2 commits into
NVIDIA:mainfrom
guanchzhou:helm-gateway-port-validation/am

Conversation

@guanchzhou

@guanchzhou guanchzhou commented Sep 4, 2026

Copy link
Copy Markdown

Summary

Reject invalid gateway listener port values during Helm rendering, before Kubernetes admission or gateway startup.

Related Issue

No issue required: this is localized chart validation for configurations the gateway already cannot run.

Changes

  • Reject booleans, fractional numbers, and other malformed port values before integer conversion
  • Require the primary and probe-backed health listener ports to be valid TCP ports
  • Allow metrics port 0 as disabled and validate enabled metrics ports
  • Reject collisions between primary, health, and metrics listeners
  • Add focused Helm unit tests for malformed values, invalid ranges, boundaries, and collisions

Testing

  • mise run pre-commit passes
  • Unit tests added/updated
  • E2E tests added/updated (not applicable)
  • helm unittest deploy/helm/openshell (133 tests)
  • helm unittest deploy/helm/openshell-workspace (4 tests)
  • Helm lint passes for defaults and all CI values variants
  • Direct deployment render rejects malformed listener ports

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (not applicable)

Reject disabled required listeners, out-of-range values, and port collisions
before Kubernetes accepts an unusable gateway workload.

Signed-off-by: Andrey Maltsev <maltsev.andrey@gmail.com>
@copy-pr-bot

copy-pr-bot Bot commented Sep 4, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown

All contributors have signed the DCO ✍️ ✅
Posted by the DCO Assistant Lite bot.

@guanchzhou

Copy link
Copy Markdown
Author

I have read the DCO document and I hereby sign the DCO.

@guanchzhou

Copy link
Copy Markdown
Author

recheck

Validate raw listener port values before integer conversion so booleans and fractional numbers cannot bypass range and collision checks.

Signed-off-by: Andrey Maltsev <maltsev.andrey@gmail.com>
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.

1 participant