test(bdd): require TLS rejection diagnostics - #1324
Conversation
Signed-off-by: Mike Camp <mcamp@nvidia.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
Signed-off-by: Mike Camp <mcamp@nvidia.com>
|
Independent review follow-up:
Safest integration order: incorporate #1324 into #1309, rebase #1309 onto current Post-fix validation passed: focused wiring test, full short BDD suite, |
|
Independent review of current head c7d7850 found no Critical, Important, or Minor issues. The corrected grpcurl preflight and exact wiring assertion passed, along with focused coverage, the short BDD suite, Go vet, changed-file revive policy, DCO, sensitive-string checks, and diff hygiene. CodeRabbit skipped review because this PR targets a stacked, non-default base. Readiness remains gated on incorporating #1324 into #1309, rebasing #1309 onto current main with #1300, and rerunning the live fail-closed feature. No merge was performed. |
Signed-off-by: Mike Camp <mcamp@nvidia.com>
Signed-off-by: Mike Camp <mcamp@nvidia.com>
Signed-off-by: Mike Camp <mcamp@nvidia.com>
Signed-off-by: Mike Camp <mcamp@nvidia.com>
Signed-off-by: Mike Camp <mcamp@nvidia.com>
TL;DR
Fixes the two unresolved CodeRabbit findings on #1309 by making the fail-closed BDD checks prove certificate identity and the intended rejection cause.
Additional Details
grpcurlavailability before the topology bootstrap.This PR is stacked on #1309 so its diff remains limited to the review fixes.
Before and after
Before
After
flowchart LR P["Preflight grpcurl"] --> A{"Available?"} A -- "No" --> F["Test fails"] A -- "Yes" --> S["Successful TLS probe"] S --> V["Verify SNI, hostname, trust chain, and ALPN h2"] A -- "Yes" --> N["Negative probe"] N --> C["Capture diagnostic"] C --> M{"Matches the case-specific rejection?"} M -- "Trust, hostname, plaintext, or authority" --> X["Negative case passes"] M -- "Anything else" --> FIntegration dependency
#1309 was opened before #1300 merged. Its current base rejects the explicit HTTPS worker URI and emits the legacy authority-validation diagnostic, while this companion intentionally follows the secure-ingress behavior now on
main.Safest integration order:
main, which contains feat(self-managed): secure LLM gRPC ingress #1300.Do not weaken the HTTPS expectation or restore the legacy diagnostic to make the pre-#1300 base pass.
For the Reviewer
Please review the negative command assertions in
tests/bdd/features/multi-cluster-helmfile-llm-registration-tls-fail-closed.featureand their wiring coverage intests/bdd/godog_test.go.For QA
go test -short -count=1 ./...fromtests/bdd: passed.go vet ./...fromtests/bdd: passed.git diff --check: passed.A fresh destructive live run remains part of the dependent secure multi-cluster validation matrix.
Issues
Relates to #1306
Relates to #1292
Checklist