You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OCPCLOUD-3670: enable Nutanix TLS group preferences - #533
Complete TLS group support by passing preferences to the Nutanix cloud controller manager. The incremental change adds only Nutanix wiring and its existing rendering expectation.
Scope
Preserve group order and omit the flag when preferences are empty.
Cloud rendering and Nutanix tests, scoped vet and lint, and the operator build passed.
Two automated reviewers found no verified code defects.
Nutanix operand execution remains unverified. Passing rendering tests does not clear the payload dependency.
AI assistance: gpt-6.1-sol — implementation, checks, automated review, and PR drafting. gemini-4-argon-high — automated review.
Stack
Depends on #532. Both PRs target main, so this diff includes the parent commit until it merges. Review the Nutanix-only commit at b3e178c.
Also depends on openshift/cloud-provider-nutanix#56 merging and its compatible image reaching an accepted payload. Keep this PR on hold until both dependencies and image promotion are verified. Combined CI can test the proposed images before merge.
Summary by CodeRabbit
New Features
Nutanix cloud-controller-manager deployments now apply configured TLS curve preferences when provided, bringing this setting in line with its behavior on other platforms. This gives administrators control over the TLS curves used for secure connections. If no preferences are configured, the setting is not passed to the cloud-controller-manager.
Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the epic to target the "5.1.0" version, but no target version was set.
Complete TLS group support by passing preferences to the Nutanix cloud controller manager. The incremental change adds only Nutanix wiring and its existing rendering expectation.
Scope
Preserve group order and omit the flag when preferences are empty.
Cloud rendering and Nutanix tests, scoped vet and lint, and the operator build passed.
Two automated reviewers found no verified code defects.
Nutanix operand execution remains unverified. Passing rendering tests does not clear the payload dependency.
AI assistance: gpt-6.1-sol — implementation, checks, automated review, and PR drafting. gemini-4-argon-high — automated review.
Stack
Depends on #532. Both PRs target main, so this diff includes the parent commit until it merges. Review the Nutanix-only commit at b3e178c.
Also depends on openshift/cloud-provider-nutanix#56 merging and its compatible image reaching an accepted payload. Keep this PR on hold until both dependencies and image promotion are verified. Combined CI can test the proposed images before merge.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.
No actionable comments were generated in the recent review.
Walkthrough
Nutanix now passes configured TLS curve preferences to the cloud-controller-manager when the value is non-empty. The rendered-resource test checks the configured curve preferences for every platform.
Changes
Nutanix TLS curve preferences
Layer / File(s)
Summary
Template wiring and rendered-resource check pkg/cloud/nutanix/nutanix.go, pkg/cloud/nutanix/assets/cloud-controller-manager-deployment.yaml, pkg/cloud/cloud_test.go
The Nutanix template accepts the configured TLS curve preferences and conditionally passes them through --tls-curve-preferences. The rendered-resource test now checks the configured value for every platform.
This change passes TLS curve preferences to the Nutanix cloud controller. It should not merge until a compatible operand image is confirmed in an accepted payload, as the PR hold already requires. After that, the remaining risk is low.
Pre-merge checks: 14
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title "OCPCLOUD-3670: enable Nutanix TLS group preferences" matches the main change. The summaries show the Nutanix template now accepts tlsCurvePreferences, the deployment passes --tls-curve-pref…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Stable And Deterministic Test Names
The check covers test titles (Ginkgo It/Describe/Context/When and similar). The PR diff touches three files: pkg/cloud/cloud_test.go, the Nutanix deployment template, and pkg/cloud/nutanix/nutanix.go.…
Test Structure And Quality
The check applies to Ginkgo test code. This PR changes three files: pkg/cloud/cloud_test.go, pkg/cloud/nutanix/assets/cloud-controller-manager-deployment.yaml, and pkg/cloud/nutanix/nutanix.go. The on…
Microshift Test Compatibility
The MicroShift Test Compatibility check applies only when new Ginkgo e2e tests (It, Describe, Context, When, and similar) are added. The reviewed range changes three files: pkg/cloud/cloud_test.go (a …
Single Node Openshift (Sno) Test Compatibility
The check applies only when new Ginkgo e2e tests (It, Describe, Context, When, and similar) are added. The reviewed range changes three files: pkg/cloud/cloud_test.go, pkg/cloud/nutanix/assets/cloud-c…
Topology-Aware Scheduling Compatibility
The check applies only when a change adds or modifies scheduling constraints (affinity, topology spread, replica counts, nodeSelectors, tolerations, PDBs, or maxUnavailable). The PR changes three file…
Ote Binary Stdout Contract
The check does not apply to this pull request. The PR changes three files: pkg/cloud/cloud_test.go, pkg/cloud/nutanix/nutanix.go, and pkg/cloud/nutanix/assets/cloud-controller-manager-deployment.yaml.…
Ipv6 And Disconnected Network Test Compatibility
The check applies only when new Ginkgo e2e tests (It, Describe, Context, When, and similar) are added. The diff changes three files: pkg/cloud/cloud_test.go, pkg/cloud/nutanix/assets/cloud-controller-…
No-Weak-Crypto
The no-weak-crypto check flags MD5, SHA1, DES, RC4, 3DES, Blowfish, ECB use, custom crypto implementations, and non-constant-time comparison of secrets or tokens. The PR diff touches three files (pkg/…
Container-Privileges
The container-privileges check does not apply to any change in this PR's diff. The PR changes three files: - pkg/cloud/cloud_test.go: removes the Nutanix-specific expected-curve override in `TestRen…
No-Sensitive-Data-In-Logs
The check looks for logging that could expose passwords, tokens, API keys, PII, session IDs, internal hostnames, or customer data. The PR changes three files: pkg/cloud/cloud_test.go, `pkg/cloud/nut…
Full details: Title check
Explanation
The title "OCPCLOUD-3670: enable Nutanix TLS group preferences" matches the main change. The summaries show the Nutanix template now accepts tlsCurvePreferences, the deployment passes --tls-curve-preferences when the value is non-empty, and the test drops the Nutanix-specific curve override. The title is specific, concise, and includes the Jira key.
Full details: Stable And Deterministic Test Names
Explanation
The check covers test titles (Ginkgo It/Describe/Context/When and similar). The PR diff touches three files: pkg/cloud/cloud_test.go, the Nutanix deployment template, and pkg/cloud/nutanix/nutanix.go. In cloud_test.go, the change only removes a Nutanix-specific expectedCurves override and checks curves directly. No test title is added or modified. The function name TestRenderedResources is unchanged. A grep of added lines for It(, Describe(, Context(, When(, t.Run( and func Test returned no matches. The Nutanix template and Go map changes add no tests. No title in the PR contains pod names, timestamps, UUIDs, node names, IPs, or legacy openshift-tests-private metadata tokens. The check does not apply to this diff, so it passes.
Full details: Test Structure And Quality
Explanation
The check applies to Ginkgo test code. This PR changes three files: pkg/cloud/cloud_test.go, pkg/cloud/nutanix/assets/cloud-controller-manager-deployment.yaml, and pkg/cloud/nutanix/nutanix.go. The only test change is in cloud_test.go, in TestRenderedResources. That function is a standard Go testing.T test that uses assert.Contains and assert.NotContains. The diff removes the Nutanix-specific expected-curve override, so the test now checks curve preferences against the configured value for every platform. The diff adds no It(), Describe(), BeforeEach(), AfterEach(), Eventually(), or Consistently() blocks. A grep of cloud_test.go found no Ginkgo or ote usage. The other two changes are a YAML template and Go wiring that passes tlsCurvePreferences to the template. Neither is test code. No Ginkgo test in this diff is subject to the check's quality requirements. The standing FAIL from the previous run has no stated details, so I could not verify its claims. Based on the current diff, no Ginkgo test quality concern applies. Prior failure refuted: The previous FAIL gave no details. The current diff has no Ginkgo It() blocks. The only changed test, pkg/cloud/cloud_test.go TestRenderedResources, is a standard Go testing test using assert. The other changes are non-test YAML and Go wiring. No Ginkgo quality requirement is violated by this PR's changes.
Full details: Microshift Test Compatibility
Explanation
The MicroShift Test Compatibility check applies only when new Ginkgo e2e tests (It, Describe, Context, When, and similar) are added. The reviewed range changes three files: pkg/cloud/cloud_test.go (a Go unit test, TestRenderedResources, that drops the Nutanix-specific curve override), pkg/cloud/nutanix/assets/cloud-controller-manager-deployment.yaml (conditional --tls-curve-preferences flag), and pkg/cloud/nutanix/nutanix.go (template value wiring). A search of the added lines for g.It(, g.Describe(, g.Context(, g.When(, ginkgo, and e2e found no matches. No new Ginkgo e2e test is introduced, so the check is inapplicable and passes. The PR's hold and payload dependency are outside this check's scope.
Full details: Single Node Openshift (Sno) Test Compatibility
Explanation
The check applies only when new Ginkgo e2e tests (It, Describe, Context, When, and similar) are added. The reviewed range changes three files: pkg/cloud/cloud_test.go, pkg/cloud/nutanix/assets/cloud-controller-manager-deployment.yaml, and pkg/cloud/nutanix/nutanix.go. None of these is an e2e test suite. A search of added lines for Ginkgo constructs (It(, Describe(, Context(, When(, g.It, g.Describe, ginkgo, e2e) returned no matches. The change to cloud_test.go is a unit-test expectation update in TestRenderedResources. It adds no multi-node or HA assumption. The check is therefore inapplicable, and it passes.
Full details: Topology-Aware Scheduling Compatibility
Explanation
The check applies only when a change adds or modifies scheduling constraints (affinity, topology spread, replica counts, nodeSelectors, tolerations, PDBs, or maxUnavailable). The PR changes three files: pkg/cloud/cloud_test.go, pkg/cloud/nutanix/nutanix.go, and pkg/cloud/nutanix/assets/cloud-controller-manager-deployment.yaml. The Nutanix deployment change adds only a conditional --tls-curve-preferences CLI flag, and nutanix.go adds one template value key. A grep of the full PR diff for affinity, topology, toleration, nodeSelector, replicas, PodDisruption, maxUnavailable, control-plane, master, and arbiter returned no matches. The change introduces no scheduling constraint, so no topology-aware review is needed. The PR's payload-dependency hold concerns runtime compatibility, not this check's criteria.
Full details: Ote Binary Stdout Contract
Explanation
The check does not apply to this pull request. The PR changes three files: pkg/cloud/cloud_test.go, pkg/cloud/nutanix/nutanix.go, and pkg/cloud/nutanix/assets/cloud-controller-manager-deployment.yaml. None of them is an OpenShift Tests Extension (OTE) binary entry point. The OTE binaries live under openshift-tests/ (for example openshift-tests/operator-tests/main.go and openshift-tests/ccm-aws-tests/main.go), and the PR does not modify them. I grepped the added Go lines in the two changed Go files for fmt.Print*, os.Stdout, klog, log.SetOutput, func main, func init, TestMain, BeforeSuite, RunSpecs, and SetOutput. No matches were found. The Nutanix change only adds a conditional --tls-curve-preferences argument in the deployment template and passes the TLS value through template rendering. No process-level stdout write is introduced, so the check does not apply.
Full details: Ipv6 And Disconnected Network Test Compatibility
Explanation
The check applies only when new Ginkgo e2e tests (It, Describe, Context, When, and similar) are added. The diff changes three files: pkg/cloud/cloud_test.go, pkg/cloud/nutanix/assets/cloud-controller-manager-deployment.yaml, and pkg/cloud/nutanix/nutanix.go. A search of the added lines found no It(), Describe(), Context(), When(), DescribeTable(), or Entry() calls. The only Ginkgo-related import in the changed files is dot-import gomega in cloud_test.go, which is an existing unit test file, not an e2e suite. The change in cloud_test.go removes a Nutanix-specific expected-curve override in TestRenderedResources. The other changes add a conditional --tls-curve-preferences flag and template wiring. None of these add e2e tests or IPv4-specific network assumptions, so the check is not triggered.
Full details: No-Weak-Crypto
Explanation
The no-weak-crypto check flags MD5, SHA1, DES, RC4, 3DES, Blowfish, ECB use, custom crypto implementations, and non-constant-time comparison of secrets or tokens. The PR diff touches three files (pkg/cloud/cloud_test.go, the Nutanix deployment template, and pkg/cloud/nutanix/nutanix.go). It adds a pass-through of the configured TLS curve preferences as the --tls-curve-preferences flag, gated on a non-empty value. It also removes a Nutanix-specific expected-value override in a test. A search of the diff for the listed algorithms, crypto helpers, HMAC, comparison, secret, token, and cipher terms found only the existing tlsCipherSuites wiring, which is unchanged. The PR adds no weak primitive, no custom cryptography, and no secret or token comparison. The curve values in the test (29,24) correspond to X25519 and P-256, which are not on the flagged list.
Full details: Container-Privileges
Explanation
The container-privileges check does not apply to any change in this PR's diff. The PR changes three files: - pkg/cloud/cloud_test.go: removes the Nutanix-specific expected-curve override in TestRenderedResources. - pkg/cloud/nutanix/assets/cloud-controller-manager-deployment.yaml: adds a conditional --tls-curve-preferences={{ .tlsCurvePreferences }} argument to the container command. - pkg/cloud/nutanix/nutanix.go: adds a tlsCurvePreferences template value and its validation entry. A search of the added and removed lines for privileged, hostPID, hostNetwork, hostIPC, SYS_ADMIN, capabilities, runAsUser, runAsNonRoot, allowPrivilegeEscalation, securityContext, and root returned no matches. The deployment manifest's security settings are unchanged. The PR does not add or modify any privilege-related setting.
Full details: No-Sensitive-Data-In-Logs
Explanation
The check looks for logging that could expose passwords, tokens, API keys, PII, session IDs, internal hostnames, or customer data. The PR changes three files: pkg/cloud/cloud_test.go, pkg/cloud/nutanix/assets/cloud-controller-manager-deployment.yaml, and pkg/cloud/nutanix/nutanix.go. The added lines contain no logging calls (no klog, log, print, fmt, or Errorf statements). A keyword search of the added lines for log, print, secret, token, password, and key found no matches. The functional change adds a tlsCurvePreferences template value. The deployment template passes it as --tls-curve-preferences only when non-empty. TLS curve names are configuration, not sensitive data. The test change only removes a Nutanix-specific expected-value override. No sensitive data reaches a log through this PR.
Recent review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Central YAML; Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 3463ef55-d206-4776-87c0-5d34ecaa8b71
Commits
Reviewing files that changed from the base of the PR and between b3e178c and da325a8.
Files selected for processing: 1
pkg/cloud/cloud_test.go
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.
This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please assign theobarberbany for approval. For more information see the Code Review Process.
The full list of commands accepted by this bot can be found here.
Details
Needs approval from an approver in each of these files:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.
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
do-not-merge/holdIndicates that a PR should not merge because someone has issued a /hold command.jira/valid-referenceIndicates that this PR references a valid Jira ticket of any type.
2 participants
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.
Why
Complete TLS group support by passing preferences to the Nutanix cloud controller manager. The incremental change adds only Nutanix wiring and its existing rendering expectation.
Scope
Verification
AI assistance: gpt-6.1-sol — implementation, checks, automated review, and PR drafting. gemini-4-argon-high — automated review.
Stack
Depends on #532. Both PRs target main, so this diff includes the parent commit until it merges. Review the Nutanix-only commit at b3e178c.
Also depends on openshift/cloud-provider-nutanix#56 merging and its compatible image reaching an accepted payload. Keep this PR on hold until both dependencies and image promotion are verified. Combined CI can test the proposed images before merge.
Summary by CodeRabbit