Skip to content

SPIRE-632: Add optional TLS scanner CI job for zero-trust-workload-identity-manager - #83228

Open
sayak-redhat wants to merge 2 commits into
openshift:mainfrom
sayak-redhat:SPIRE-632
Open

SPIRE-632: Add optional TLS scanner CI job for zero-trust-workload-identity-manager#83228
sayak-redhat wants to merge 2 commits into
openshift:mainfrom
sayak-redhat:SPIRE-632

Conversation

@sayak-redhat

@sayak-redhat sayak-redhat commented Aug 11, 2026

Copy link
Copy Markdown

Summary

  • Adds an optional, manually triggered tls-scanner presubmit for openshift/zero-trust-workload-identity-manager on main.
  • The job provisions an AWS cluster using optional-operators-ci-operator-sdk-aws, installs the PR operator bundle, deploys SPIRE operand CRs (ZeroTrustWorkloadIdentityManager, SpireServer, SpireAgent, SpiffeCSIDriver, SpireOIDCDiscoveryProvider), enables TLS 1.3 strict adherence, and runs tls-scanner-run against the install namespace.
  • Pattern follows NO-JIRA: Add optional TLS scanner CI job for secrets-store-csi-driver-operator #82718

Test plan

  • /pj-rehearse list confirms pull-ci-openshift-zero-trust-workload-identity-manager-main-tls-scanner is rehearsable
  • /pj-rehearse pull-ci-openshift-zero-trust-workload-identity-manager-main-tls-scanner succeeds
  • On a zero-trust-workload-identity-manager PR against main, /test tls-scanner can trigger the job after this merges

Made with Cursor

Summary by CodeRabbit

  • Adds an optional, manually triggered tls-scanner presubmit job for openshift/zero-trust-workload-identity-manager on main.
  • Provisions an AWS cluster, installs the operator bundle, deploys SPIRE operand resources, enables strict TLS 1.3 adherence, and scans the installation namespace with tls-scanner-run.
  • Adds the tls-scanner-tool base image to the CI configuration.

…entity-manager

Install the PR operator on AWS, deploy SPIRE operand CRs, enable Modern TLS
adherence, and scan operator/operand endpoints in the install namespace.
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Aug 11, 2026
@openshift-ci-robot

openshift-ci-robot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

@sayak-redhat: This pull request references SPIRE-632 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "5.0.0" version, but no target version was set.

Details

In response to this:

Summary

  • Adds an optional, manually triggered tls-scanner presubmit for openshift/zero-trust-workload-identity-manager on main.
  • The job provisions an AWS cluster using optional-operators-ci-operator-sdk-aws, installs the PR operator bundle, deploys SPIRE operand CRs (ZeroTrustWorkloadIdentityManager, SpireServer, SpireAgent, SpiffeCSIDriver, SpireOIDCDiscoveryProvider), enables TLS 1.3 strict adherence, and runs tls-scanner-run against the install namespace.
  • Pattern follows NO-JIRA: Add optional TLS scanner CI job for secrets-store-csi-driver-operator #82718 and the cert-manager-operator TLS scanner job (operator-sdk install path).

Test plan

  • /pj-rehearse list confirms pull-ci-openshift-zero-trust-workload-identity-manager-main-tls-scanner is rehearsable
  • /pj-rehearse pull-ci-openshift-zero-trust-workload-identity-manager-main-tls-scanner succeeds
  • On a zero-trust-workload-identity-manager PR against main, /test tls-scanner can trigger the job after this merges

Made with Cursor

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.

@coderabbitai

coderabbitai Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Walkthrough

The CI configuration adds a tls-scanner-tool image and an optional AWS workflow. The workflow installs the operator, configures ZeroTrust Workload Identity Manager and SPIRE resources, waits for workloads, and runs a TLS 1.3 scan.

Changes

TLS scanner workflow

Layer / File(s) Summary
Scanner image and workflow contract
ci-operator/config/openshift/zero-trust-workload-identity-manager/openshift-zero-trust-workload-identity-manager-main.yaml
The configuration declares the tls-scanner-tool image and an optional AWS workflow with scanner resources and strict TLS 1.3 adherence settings.
Cluster and operand setup
ci-operator/config/openshift/zero-trust-workload-identity-manager/openshift-zero-trust-workload-identity-manager-main.yaml
The workflow waits for the operator and CRDs, derives cluster-specific values, and applies ZeroTrust Workload Identity Manager and SPIRE resources.
Readiness checks and TLS scan
ci-operator/config/openshift/zero-trust-workload-identity-manager/openshift-zero-trust-workload-identity-manager-main.yaml
The workflow checks operand readiness, reports pod status, configures scanner resources and a 45-minute timeout, and runs the TLS 1.3 scan.

Estimated code review effort: 3 (Moderate) | ~30 minutes

Sequence Diagram(s)

sequenceDiagram
  participant CIWorkflow
  participant OpenShiftCluster
  participant TLSScanner
  CIWorkflow->>OpenShiftCluster: Install operator and wait for CRDs
  CIWorkflow->>OpenShiftCluster: Apply ZeroTrust Workload Identity Manager and SPIRE resources
  OpenShiftCluster-->>CIWorkflow: Report managed workloads ready
  CIWorkflow->>TLSScanner: Run TLS 1.3 adherence scan
  TLSScanner-->>CIWorkflow: Return scan results
Loading

Possibly related PRs

Suggested labels: needs-ok-to-test

Suggested reviewers: nhegde07, bharath-b-rh


Important

Pre-merge checks failed

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

❌ Failed checks (1 error, 1 inconclusive)

Check name Status Explanation Resolution
Container-Privileges ❌ Error The new tls-scanner job invokes tls-scanner-run; with no TLS_SCANNER_CLUSTER_LABEL, it creates a Pod with hostNetwork:true, hostPID:true, privileged:true, and runAsUser:0. Use a restricted scanner Pod with hostNetwork and hostPID disabled, or document and obtain approval for the required privileged host-mode scan.
No-Sensitive-Data-In-Logs ❓ Inconclusive Evidence collection is still in progress. Inspect the added workflow and referenced TLS steps for commands that print sensitive values.
✅ Passed checks (13 passed)
Check name Status Explanation
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 PR adds no Ginkgo title constructs. Its CI test/job names, including tls-scanner and deploy-operand, are static; cluster-derived values occur only in the shell body.
Test Structure And Quality ✅ Passed The PR changes only CI YAML configuration. It adds no Ginkgo tests or It blocks, so the listed Ginkgo test-quality requirements are not applicable.
Microshift Test Compatibility ✅ Passed The PR adds CI YAML and secret configuration only; it adds no Ginkgo e2e tests or It/Describe/Context/When declarations to assess for MicroShift compatibility.
Single Node Openshift (Sno) Test Compatibility ✅ Passed The PR adds only CI configuration and presubmit YAML; it adds no Ginkgo e2e tests or test logic that assumes multiple nodes.
Topology-Aware Scheduling Compatibility ✅ Passed The PR adds only CI configuration and shell-applied operand CRs; the diff contains no node selectors, affinity, spread constraints, tolerations, replica counts, or PDBs.
Ote Binary Stdout Contract ✅ Passed The pull request changes only declarative YAML files; it adds no OTE binary, main/suite setup code, or process-level stdout writes.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed The PR adds only CI YAML, not Ginkgo tests; the job uses cluster-derived DNS and contains no hardcoded IPv4 address or public endpoint.
No-Weak-Crypto ✅ Passed The added TLS scanner job enables TLS 1.3 with StrictAllComponents and uses existing tls-13/tls-scanner-run steps; no weak-algorithm tokens or secret comparisons were found.
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 an optional TLS scanner CI job for the zero-trust-workload-identity-manager.
✨ 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 NOT APPROVED

This pull-request has been approved by: sayak-redhat
Once this PR has been reviewed and has the lgtm label, please assign nhegde07 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:

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

@sayak-redhat

Copy link
Copy Markdown
Author

/pj-rehearse pull-ci-openshift-zero-trust-workload-identity-manager-main-tls-scanner

@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: 2

🤖 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/zero-trust-workload-identity-manager/openshift-zero-trust-workload-identity-manager-main.yaml`:
- Around line 109-111: Run make update after adding the tls-scanner presubmit
job, then commit the generated Prow job definition and any required sanitized
configuration output so Prow exposes /test tls-scanner.
- Around line 161-220: Add a NetworkPolicy resource to the manifest heredoc
alongside the ZeroTrustWorkloadIdentityManager, SpireServer, SpireAgent,
SpiffeCSIDriver, and SpireOIDCDiscoveryProvider resources, targeting the
zero-trust-workload-identity-manager namespace. Configure ingress and egress
rules to allow only the required operator, SPIRE, ingress, and scanner traffic,
and ensure the policy is explicitly defined for that operand namespace.
🪄 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: dc41e2bc-4a5f-4574-9b76-14bfb41fb73f

📥 Commits

Reviewing files that changed from the base of the PR and between add2700 and fdc2757.

⛔ Files ignored due to path filters (1)
  • ci-operator/jobs/openshift/zero-trust-workload-identity-manager/openshift-zero-trust-workload-identity-manager-main-presubmits.yaml is excluded by !ci-operator/jobs/**
📒 Files selected for processing (1)
  • ci-operator/config/openshift/zero-trust-workload-identity-manager/openshift-zero-trust-workload-identity-manager-main.yaml

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

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

Remove APP_DOMAIN/JWT_ISSUER echoes and wide pod listings so CI logs do
not expose internal DNS or pod/node network details.

Co-authored-by: Cursor <cursoragent@cursor.com>
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

[REHEARSALNOTIFIER]
@sayak-redhat: 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-zero-trust-workload-identity-manager-main-tls-scanner openshift/zero-trust-workload-identity-manager presubmit Presubmit changed
pull-ci-openshift-zero-trust-workload-identity-manager-main-ci-bundle-zero-trust-workload-identity-manager-bundle openshift/zero-trust-workload-identity-manager presubmit Ci-operator config changed
pull-ci-openshift-zero-trust-workload-identity-manager-main-e2e-operator openshift/zero-trust-workload-identity-manager presubmit Ci-operator config changed
pull-ci-openshift-zero-trust-workload-identity-manager-main-e2e-operator-fips openshift/zero-trust-workload-identity-manager presubmit Ci-operator config changed
pull-ci-openshift-zero-trust-workload-identity-manager-main-e2e-operator-rhcos10 openshift/zero-trust-workload-identity-manager presubmit Ci-operator config changed
pull-ci-openshift-zero-trust-workload-identity-manager-main-e2e-operator-rhcos10-fips openshift/zero-trust-workload-identity-manager presubmit Ci-operator config changed
pull-ci-openshift-zero-trust-workload-identity-manager-main-images openshift/zero-trust-workload-identity-manager presubmit Ci-operator config changed
pull-ci-openshift-zero-trust-workload-identity-manager-main-operator-e2e-coverage openshift/zero-trust-workload-identity-manager presubmit Ci-operator config changed
pull-ci-openshift-zero-trust-workload-identity-manager-main-unit openshift/zero-trust-workload-identity-manager presubmit Ci-operator config changed
pull-ci-openshift-zero-trust-workload-identity-manager-main-verify openshift/zero-trust-workload-identity-manager presubmit Ci-operator config changed
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.

@sayak-redhat

Copy link
Copy Markdown
Author

/pj-rehearse pull-ci-openshift-zero-trust-workload-identity-manager-main-tls-scanner

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

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

@openshift-ci

openshift-ci Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

@sayak-redhat: The following test 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/zero-trust-workload-identity-manager/main/tls-scanner 7034a01 link unknown /pj-rehearse pull-ci-openshift-zero-trust-workload-identity-manager-main-tls-scanner

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.

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

Labels

jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants