Skip to content

Add baremetal variant of tls-scanner TLSAdherence jobs - #83269

Open
richardsonnick wants to merge 2 commits into
openshift:mainfrom
richardsonnick:add-tls-adherence-baremetal
Open

Add baremetal variant of tls-scanner TLSAdherence jobs#83269
richardsonnick wants to merge 2 commits into
openshift:mainfrom
richardsonnick:add-tls-adherence-baremetal

Conversation

@richardsonnick

@richardsonnick richardsonnick commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

Adds optional TLS 1.3 adherence jobs for Equinix bare-metal OpenShift clusters across releases 4.23, 5.0, 5.1, and the main branch. The jobs use the baremetalds-e2e workflow, IPv4 OVN-Kubernetes networking, and run both tls-13 and tls-scanner-run tests.

Adds the required dev-scripts base image configurations for the bare-metal workflows.

Updates tls-scanner-run to load proxy settings from ${SHARED_DIR}/proxy-conf.sh when available. This allows the scanner to use proxy configuration created during installation.

@openshift-ci openshift-ci Bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 11, 2026
@openshift-ci

openshift-ci Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@coderabbitai

coderabbitai Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Walkthrough

The TLS scanner configuration adds Equinix bare-metal TLS 1.3 adherence jobs for the main and 4.23–5.1 release streams. The scanner command loads proxy settings from ${SHARED_DIR}/proxy-conf.sh when available.

Changes

TLS scanner coverage

Layer / File(s) Summary
Scanner proxy loading
ci-operator/step-registry/tls/scanner/run/tls-scanner-run-commands.sh
Loads proxy settings from ${SHARED_DIR}/proxy-conf.sh when the file exists.
Metal adherence job configuration
ci-operator/config/openshift/tls-scanner/*
Adds the dev-scripts:test image and Equinix bare-metal TLS 1.3 adherence jobs. The jobs use IPv4 OVN-Kubernetes networking, adherence settings, tls-13, tls-scanner-run, and the baremetalds-e2e workflow.

Estimated code review effort: 2 (Simple) | ~10 minutes

Sequence Diagram(s)

sequenceDiagram
  participant PeriodicJob
  participant TLS13Tests
  participant TLSScanner
  participant SharedProxyConfig
  PeriodicJob->>TLS13Tests: Run tls-13 and tls-scanner-run
  TLS13Tests->>TLSScanner: Execute scanner commands
  TLSScanner->>SharedProxyConfig: Source proxy-conf.sh when present
Loading

Possibly related PRs

Suggested reviewers: rhmdnd, smith-xyz


Important

Pre-merge checks failed

Please resolve all errors before merging. Addressing warnings is optional.

❌ Failed checks (1 error)

Check name Status Explanation Resolution
Container-Privileges ❌ Error New bare-metal jobs invoke tls-scanner-run with SCANNER_NAMESPACE unset; its OWNS_NAMESPACE=true path generates a pod with privileged: true, hostNetwork: true, hostPID: true, and runAsUser: 0. Use a restricted scanner pod for the bare-metal jobs. Set an externally managed namespace and disable privileged, hostNetwork, and hostPID; avoid root unless strictly required.
✅ Passed checks (14 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: adding bare-metal variants of TLS scanner TLSAdherence jobs.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
Stable And Deterministic Test Names ✅ Passed The diff adds only static CI test/job identifiers and configuration; it changes no Ginkgo It/Describe/Context/When titles or dynamic title construction.
Test Structure And Quality ✅ Passed The PR changes YAML job/config files and a shell source hook only; it adds no Ginkgo test code, It blocks, Eventually calls, or assertions to assess.
Microshift Test Compatibility ✅ Passed The diff adds CI YAML/job wiring and shell proxy handling only; it adds no Ginkgo test source or test body, so this MicroShift compatibility check is not applicable.
Single Node Openshift (Sno) Test Compatibility ✅ Passed The PR adds CI YAML and proxy handling only; it adds no Ginkgo e2e tests or Go files. The referenced tls-13 step already existed, so this SNO check is not triggered.
Topology-Aware Scheduling Compatibility ✅ Passed The diff adds CI test jobs and proxy sourcing only; it adds no affinity, spread, replica, node selector, toleration, or PDB constraints. The scanner Pod manifest is unchanged.
Ote Binary Stdout Contract ✅ Passed The PR changes 0 Go files; its only code addition conditionally sources proxy-conf.sh, and the remaining changes are YAML test wiring. No changed OTE process-level stdout write exists.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed The diff adds CI YAML job wiring and proxy sourcing only; it adds no Ginkgo test declarations or public endpoint/registry access. The v4 setting is CI configuration, not a new Ginkgo test.
No-Weak-Crypto ✅ Passed The PR adds TLS-1.3 job configuration and conditional proxy sourcing only; added lines contain no MD5, SHA1, DES, RC4, 3DES, Blowfish, ECB, custom crypto, or secret comparisons.
No-Sensitive-Data-In-Logs ✅ Passed The PR adds no logging statements or sensitive literals; the script only conditionally sources proxy-conf.sh, whose generated values are proxy IP/port exports.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@openshift-ci

openshift-ci Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: richardsonnick

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 11, 2026

@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 `@ci-operator/config/openshift/tls-scanner/openshift-tls-scanner-main.yaml`:
- Around line 136-160: Generate the missing Prow artifacts for the new TLS
scanner jobs by running make update, then commit the resulting updates for
ci-operator/config/openshift/tls-scanner/openshift-tls-scanner-main.yaml lines
136-160, openshift-tls-scanner-release-4.23.yaml lines 88-102,
openshift-tls-scanner-release-5.0.yaml lines 89-103, and
openshift-tls-scanner-release-5.1.yaml lines 88-102.
🪄 Autofix

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: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: 74e88712-77d9-4b90-95e5-652d60cf1e51

📥 Commits

Reviewing files that changed from the base of the PR and between 52a5dd4 and ef46dcf.

⛔ Files ignored due to path filters (4)
  • ci-operator/jobs/openshift/tls-scanner/openshift-tls-scanner-main-periodics.yaml is excluded by !ci-operator/jobs/**
  • ci-operator/jobs/openshift/tls-scanner/openshift-tls-scanner-release-4.23-presubmits.yaml is excluded by !ci-operator/jobs/**
  • ci-operator/jobs/openshift/tls-scanner/openshift-tls-scanner-release-5.0-presubmits.yaml is excluded by !ci-operator/jobs/**
  • ci-operator/jobs/openshift/tls-scanner/openshift-tls-scanner-release-5.1-presubmits.yaml is excluded by !ci-operator/jobs/**
📒 Files selected for processing (5)
  • ci-operator/config/openshift/tls-scanner/openshift-tls-scanner-main.yaml
  • ci-operator/config/openshift/tls-scanner/openshift-tls-scanner-release-4.23.yaml
  • ci-operator/config/openshift/tls-scanner/openshift-tls-scanner-release-5.0.yaml
  • ci-operator/config/openshift/tls-scanner/openshift-tls-scanner-release-5.1.yaml
  • ci-operator/step-registry/tls/scanner/run/tls-scanner-run-commands.sh

@richardsonnick

Copy link
Copy Markdown
Contributor Author

/pj-rehearse

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@richardsonnick: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@richardsonnick
richardsonnick marked this pull request as ready for review August 11, 2026 16:43
@openshift-ci openshift-ci Bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 11, 2026
@openshift-ci
openshift-ci Bot requested review from rhmdnd and smith-xyz August 11, 2026 16:43
@richardsonnick
richardsonnick force-pushed the add-tls-adherence-baremetal branch from ef46dcf to f9d2c73 Compare August 11, 2026 17:36
@coderabbitai

coderabbitai Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@richardsonnick

Copy link
Copy Markdown
Contributor Author

/pj-rehearse

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@richardsonnick: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

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

♻️ Duplicate comments (1)
ci-operator/config/openshift/tls-scanner/openshift-tls-scanner-main.yaml (1)

186-210: ⚠️ Potential issue | 🟠 Major

Regenerate the Prow job artifacts for these new CI jobs.

These are structural changes under ci-operator/config/. The reviewed change set does not include the corresponding generated Prow job and metadata updates. Without them, the new jobs may not be scheduled.

  • ci-operator/config/openshift/tls-scanner/openshift-tls-scanner-main.yaml#L186-L210: generate artifacts for periodic-tls13-adherence-metal.
  • ci-operator/config/openshift/tls-scanner/openshift-tls-scanner-release-4.23.yaml#L118-L132: generate artifacts for the release 4.23 optional job.
  • ci-operator/config/openshift/tls-scanner/openshift-tls-scanner-release-5.1.yaml#L118-L132: generate artifacts for the release 5.1 optional job.

As per coding guidelines, run make update after modifying CI jobs under ci-operator/config/.

Verification
#!/usr/bin/env bash
set -euo pipefail

make update
git diff --check
git status --short -- ci-operator/config ci-operator/jobs
🤖 Prompt for 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.

In `@ci-operator/config/openshift/tls-scanner/openshift-tls-scanner-main.yaml`
around lines 186 - 210, Regenerate the Prow job and metadata artifacts for the
new jobs defined at
ci-operator/config/openshift/tls-scanner/openshift-tls-scanner-main.yaml:186-210,
ci-operator/config/openshift/tls-scanner/openshift-tls-scanner-release-4.23.yaml:118-132,
and
ci-operator/config/openshift/tls-scanner/openshift-tls-scanner-release-5.1.yaml:118-132
by running make update; then verify the generated changes with git diff --check
and inspect ci-operator/config and ci-operator/jobs.

Source: Coding guidelines

🤖 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.

Duplicate comments:
In `@ci-operator/config/openshift/tls-scanner/openshift-tls-scanner-main.yaml`:
- Around line 186-210: Regenerate the Prow job and metadata artifacts for the
new jobs defined at
ci-operator/config/openshift/tls-scanner/openshift-tls-scanner-main.yaml:186-210,
ci-operator/config/openshift/tls-scanner/openshift-tls-scanner-release-4.23.yaml:118-132,
and
ci-operator/config/openshift/tls-scanner/openshift-tls-scanner-release-5.1.yaml:118-132
by running make update; then verify the generated changes with git diff --check
and inspect ci-operator/config and ci-operator/jobs.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: 5967f0ba-df2d-44b5-8874-638b5f1a4712

📥 Commits

Reviewing files that changed from the base of the PR and between f9d2c73 and 733d012.

📒 Files selected for processing (4)
  • ci-operator/config/openshift/tls-scanner/openshift-tls-scanner-main.yaml
  • ci-operator/config/openshift/tls-scanner/openshift-tls-scanner-release-4.23.yaml
  • ci-operator/config/openshift/tls-scanner/openshift-tls-scanner-release-5.0.yaml
  • ci-operator/config/openshift/tls-scanner/openshift-tls-scanner-release-5.1.yaml
🚧 Files skipped from review as they are similar to previous changes (1)
  • ci-operator/config/openshift/tls-scanner/openshift-tls-scanner-release-5.0.yaml

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

[REHEARSALNOTIFIER]
@richardsonnick: the pj-rehearse plugin accommodates running rehearsal tests for the changes in this PR. Expand 'Interacting with pj-rehearse' for usage details. The following rehearsable tests have been affected by this change:

Test name Repo Type Reason
pull-ci-openshift-windows-machine-config-operator-master-tls-scanner openshift/windows-machine-config-operator presubmit Registry content changed
pull-ci-openshift-windows-machine-config-operator-release-5.1-tls-scanner openshift/windows-machine-config-operator presubmit Registry content changed
pull-ci-openshift-windows-machine-config-operator-release-5.0-tls-scanner openshift/windows-machine-config-operator presubmit Registry content changed
pull-ci-openshift-windows-machine-config-operator-release-4.23-tls-scanner openshift/windows-machine-config-operator presubmit Registry content changed
pull-ci-openshift-gcp-filestore-csi-driver-operator-main-tls-scanner-gcp-filestore openshift/gcp-filestore-csi-driver-operator presubmit Registry content changed
pull-ci-openshift-gcp-filestore-csi-driver-operator-release-5.1-tls-scanner-gcp-filestore openshift/gcp-filestore-csi-driver-operator presubmit Registry content changed
pull-ci-openshift-gcp-filestore-csi-driver-operator-release-5.0-tls-scanner-gcp-filestore openshift/gcp-filestore-csi-driver-operator presubmit Registry content changed
pull-ci-openshift-gcp-filestore-csi-driver-operator-release-4.23-tls-scanner-gcp-filestore openshift/gcp-filestore-csi-driver-operator presubmit Registry content changed
pull-ci-openshift-cluster-version-operator-main-tls-scanner-default-profile openshift/cluster-version-operator presubmit Registry content changed
pull-ci-openshift-cluster-version-operator-main-tls-scanner-modern-profile openshift/cluster-version-operator presubmit Registry content changed
pull-ci-openshift-cluster-version-operator-release-5.1-tls-scanner-default-profile openshift/cluster-version-operator presubmit Registry content changed
pull-ci-openshift-cluster-version-operator-release-5.1-tls-scanner-modern-profile openshift/cluster-version-operator presubmit Registry content changed
pull-ci-openshift-cluster-version-operator-release-5.0-tls-scanner-default-profile openshift/cluster-version-operator presubmit Registry content changed
pull-ci-openshift-cluster-version-operator-release-5.0-tls-scanner-modern-profile openshift/cluster-version-operator presubmit Registry content changed
pull-ci-openshift-cluster-version-operator-release-4.23-tls-scanner-default-profile openshift/cluster-version-operator presubmit Registry content changed
pull-ci-openshift-cluster-version-operator-release-4.23-tls-scanner-modern-profile openshift/cluster-version-operator presubmit Registry content changed
pull-ci-openshift-cluster-version-operator-release-4.22-tls-scanner openshift/cluster-version-operator presubmit Registry content changed
pull-ci-openshift-cluster-storage-operator-main-tls-scanner-vsphere-problem-detector openshift/cluster-storage-operator presubmit Registry content changed
pull-ci-openshift-cluster-storage-operator-release-5.1-tls-scanner-vsphere-problem-detector openshift/cluster-storage-operator presubmit Registry content changed
pull-ci-openshift-cluster-storage-operator-release-5.0-tls-scanner-vsphere-problem-detector openshift/cluster-storage-operator presubmit Registry content changed
pull-ci-openshift-cluster-storage-operator-release-4.23-tls-scanner-vsphere-problem-detector openshift/cluster-storage-operator presubmit Registry content changed
pull-ci-openshift-machine-config-operator-main-tls-pqc-readiness openshift/machine-config-operator presubmit Registry content changed
pull-ci-openshift-machine-config-operator-release-5.1-tls-pqc-readiness openshift/machine-config-operator presubmit Registry content changed
pull-ci-openshift-machine-config-operator-release-5.0-tls-pqc-readiness openshift/machine-config-operator presubmit Registry content changed
pull-ci-openshift-machine-config-operator-release-4.23-tls-pqc-readiness openshift/machine-config-operator presubmit Registry content changed

A total of 145 jobs have been affected by this change. The above listing is non-exhaustive and limited to 25 jobs.

A full list of affected jobs can be found here

Interacting with pj-rehearse

Comment: /pj-rehearse to run up to 5 rehearsals
Comment: /pj-rehearse skip to opt-out of rehearsals
Comment: /pj-rehearse {test-name}, with each test separated by a space, to run one or more specific rehearsals
Comment: /pj-rehearse more to run up to 10 rehearsals
Comment: /pj-rehearse max to run up to 25 rehearsals
Comment: /pj-rehearse auto-ack to run up to 5 rehearsals, and add the rehearsals-ack label on success
Comment: /pj-rehearse list to get an up-to-date list of affected jobs
Comment: /pj-rehearse abort to abort all active rehearsals
Comment: /pj-rehearse network-access-allowed to allow rehearsals of tests that have the restrict_network_access field set to false. This must be executed by an openshift org member who is not the PR author

Once you are satisfied with the results of the rehearsals, comment: /pj-rehearse ack to unblock merge. When the rehearsals-ack label is present on your PR, merge will no longer be blocked by rehearsals.
If you would like the rehearsals-ack label removed, comment: /pj-rehearse reject to re-block merging.

@openshift-ci

openshift-ci Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

@richardsonnick: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/rehearse/openshift/tls-scanner/release-4.23/tls13-adherence-metal f9d2c73 link unknown /pj-rehearse pull-ci-openshift-tls-scanner-release-4.23-tls13-adherence-metal
ci/rehearse/periodic-ci-openshift-tls-scanner-main-periodic-tls13-adherence-metal f9d2c73 link unknown /pj-rehearse periodic-ci-openshift-tls-scanner-main-periodic-tls13-adherence-metal

Full PR test history. Your PR dashboard.

Details

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.

@richardsonnick

Copy link
Copy Markdown
Contributor Author

/pj-rehearse periodic-ci-openshift-tls-scanner-main-periodic-tls13-adherence-metal pull-ci-openshift-tls-scanner-release-4.23-tls13-adherence-metal

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@richardsonnick: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant