Skip to content

NO-JIRA: Add optional TLS scanner CI job for cert-manager-operator - #82715

Merged
openshift-merge-bot[bot] merged 6 commits into
openshift:mainfrom
arun717:add_tls-scanner_ci_job
Aug 6, 2026
Merged

NO-JIRA: Add optional TLS scanner CI job for cert-manager-operator#82715
openshift-merge-bot[bot] merged 6 commits into
openshift:mainfrom
arun717:add_tls-scanner_ci_job

Conversation

@arun717

@arun717 arun717 commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds an optional, manually triggered tls-scanner presubmit for openshift/cert-manager-operator on master.
  • The job provisions an AWS cluster, installs the cert-manager-operator bundle, deploys the CertManager operand, enables TLS 1.3 strict adherence, and runs tls-scanner-run against the cert-manager-operator and cert-manager namespaces.
  • Pattern follows STOR-3001: Add TLS scanner job to csi-operator for SMB #82657.

Test plan

  • /pj-rehearse list confirms pull-ci-openshift-cert-manager-operator-master-tls-scanner is rehearsable
  • /pj-rehearse pull-ci-openshift-cert-manager-operator-master-tls-scanner succeeds
  • On a cert-manager-operator PR against master, /test tls-scanner can trigger the job after this merges

Summary by CodeRabbit

  • Adds an optional, manually triggered tls-scanner presubmit job for openshift/cert-manager-operator on master.
  • Provisions an AWS cluster and installs the operator bundle.
  • Waits for the TrustManager feature gate by polling UNSUPPORTED_ADDON_FEATURES on the operator deployment.
  • Verifies TrustManager rollout and creates a TrustManager resource.
  • Waits for trust-manager availability.
  • Runs strict TLS 1.3 and tls-scanner-run tests against the cert-manager-operator and cert-manager namespaces.
  • Adds the tls-scanner-tool base image required by the workflow.

Add a manually triggered tls-scanner presubmit on master that installs
the operator, deploys the CertManager operand, and runs tls-scanner-run
against the cert-manager namespaces.
@coderabbitai

coderabbitai Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

The cert-manager operator CI configuration adds a tls-scanner-tool base image and an optional AWS workflow. The workflow configures cert-manager and TrustManager, verifies deployment readiness, and runs TLS 1.3 and TLS scanner tests.

Changes

TLS scanner workflow

Layer / File(s) Summary
Workflow definition
ci-operator/config/openshift/cert-manager-operator/openshift-cert-manager-operator-master.yaml
Adds the tls-scanner-tool base image and defines the optional AWS workflow settings.
Operator and TrustManager setup
ci-operator/config/openshift/cert-manager-operator/openshift-cert-manager-operator-master.yaml
Waits for cert-manager resources, enables the TrustManager feature gate, verifies rollout, creates a TrustManager resource, and waits for deployment availability.
TLS test execution
ci-operator/config/openshift/cert-manager-operator/openshift-cert-manager-operator-master.yaml
Runs TLS 1.3 and TLS scanner tests and connects the workflow to the AWS operator SDK workflow.

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

Sequence Diagram(s)

sequenceDiagram
  participant Workflow as tls-scanner workflow
  participant Operator as cert-manager operator
  participant TrustManager
  participant Scanner as TLS scanner tests
  Workflow->>Operator: Install bundle and wait for deployments
  Workflow->>Operator: Enable TrustManager feature gate
  Operator-->>Workflow: Report rollout readiness
  Workflow->>TrustManager: Create TrustManager resource
  TrustManager-->>Workflow: Report deployment availability
  Workflow->>Scanner: Run TLS 1.3 and TLS scanner tests
Loading

Suggested reviewers: bharath-b-rh, mytreya-rh


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 The new job invokes tls-scanner-run without TLS_SCANNER_CLUSTER_LABEL; its default path creates a pod with privileged:true, hostNetwork:true, hostPID:true, and runAsUser:0. Run the scanner in restricted pod mode, or provide a narrowly reviewed non-privileged scanner implementation instead of the default host-mode pod.
✅ 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 an optional TLS scanner CI job for cert-manager-operator.
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 changes only a YAML CI workflow. It adds no Ginkgo It/Describe/Context/When titles, and its CI aliases are static.
Test Structure And Quality ✅ Passed The pull request changes only CI YAML; it adds no Ginkgo It blocks or test code for this check.
Microshift Test Compatibility ✅ Passed The pull request changes only a CI YAML workflow and adds no Ginkgo e2e tests, so MicroShift test compatibility checks do not apply.
Single Node Openshift (Sno) Test Compatibility ✅ Passed The PR changes only two YAML CI configuration files; added lines define workflow refs and presubmit triggers, with no new Ginkgo It/Describe/Context/When tests or multi-node assumptions.
Topology-Aware Scheduling Compatibility ✅ Passed PR changes only CI YAML and a generated presubmit; no affinity, topology spread, node selector, toleration, replica, or PDB constraints were added.
Ote Binary Stdout Contract ✅ Passed The PR changes only two YAML workflow/job files; it adds no OTE binary or suite lifecycle code. The added echo commands run in CI shell setup, which the check excludes.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed The PR changes only CI YAML; it adds no Ginkgo declarations or test source files, so this IPv4 and disconnected-network test check is not applicable.
No-Weak-Crypto ✅ Passed The 96 added lines contain no MD5, SHA1, DES, RC4, 3DES, Blowfish, ECB, custom crypto, or secret comparisons; checks compare only feature flags.
No-Sensitive-Data-In-Logs ✅ Passed The workflow logs only resource diagnostics and the fixed TrustManager feature value; no passwords, tokens, API keys, PII, session IDs, or customer data are emitted.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@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/cert-manager-operator/openshift-cert-manager-operator-master.yaml`:
- Around line 468-469: The workflow references tls-scanner-run without
TLS_SCANNER_CLUSTER_LABEL, causing the scanner to use its privileged host-mode
configuration. Update this workflow to select a supported restricted scanner
mode for standard AWS clusters by configuring the required cluster label, or
remove the scanner reference until the shared step supports restricted
execution; do not enable host mode without documented approval.
- Around line 460-463: Update the operand-wait sequence after the “Waiting for
cert-manager operand deployments...” message to first wait for creation of the
cert-manager namespace and each deployment using oc wait --for=create, then
retain the existing --for=condition=Available checks for cert-manager,
cert-manager-webhook, and cert-manager-cainjector.
🪄 Autofix (Beta)

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: a60eeb49-e9b2-441e-827c-909c4e928439

📥 Commits

Reviewing files that changed from the base of the PR and between 32fb6ae and ed976da.

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

Comment on lines +468 to +469
- ref: tls-13
- ref: tls-scanner-run

@coderabbitai coderabbitai Bot Jul 31, 2026

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.

🔒 Security & Privacy | 🟠 Major | 🏗️ Heavy lift

Do not use the scanner’s default privileged host mode without an explicit security decision.

This workflow does not set TLS_SCANNER_CLUSTER_LABEL. The shared tls-scanner-run step therefore uses its default host-mode path, which creates a pod with privileged: true, hostNetwork: true, hostPID: true, and runAsUser: 0. It also grants cluster-admin to the scanner service account. OO_SECURITY_CONTEXT: restricted only affects operator installation; it does not restrict this scanner pod. (raw.githubusercontent.com)

Use a supported restricted scanner mode for standard AWS clusters, or update the shared step before adding this workflow. If host mode is required, document and approve the exception.

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

fd -t f -g 'tls-scanner-run-ref.yaml' -g 'tls-scanner-run-commands.sh' \
  -x rg -n -C 4 \
  'TLS_SCANNER_CLUSTER_LABEL|privileged: true|hostNetwork|hostPID|runAsUser|cluster-admin|allowPrivilegeEscalation|runAsNonRoot|capabilities'

As per path instructions, this YAML review must flag privileged: true, hostPID, hostNetwork, and root execution.

🤖 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/cert-manager-operator/openshift-cert-manager-operator-master.yaml`
around lines 468 - 469, The workflow references tls-scanner-run without
TLS_SCANNER_CLUSTER_LABEL, causing the scanner to use its privileged host-mode
configuration. Update this workflow to select a supported restricted scanner
mode for standard AWS clusters by configuring the required cluster label, or
remove the scanner reference until the shared step supports restricted
execution; do not enable host mode without documented approval.

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.

Could you let us know, where are you suggesting the change to be made?

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.

🧩 Analysis chain

🏁 Script executed:

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

fd -t f -g 'tls-scanner-run-ref.yaml' -g 'tls-scanner-run-commands.sh' \
  -x sh -c '
    echo "===== $1 ====="
    rg -n -C 5 "TLS_SCANNER_CLUSTER_LABEL|privileged: true|hostNetwork|hostPID|cluster-admin" "$1"
  ' sh {}

Length of output: 682


🏁 Script executed:

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

step_dir='ci-operator/step-registry/tls/scanner/run'

echo '===== files ====='
fd -t f . "$step_dir"

echo '===== relevant configuration ====='
fd -t f . "$step_dir" -x rg -n -C 5 \
  'TLS_SCANNER_CLUSTER_LABEL|privileged: true|hostNetwork|hostPID|cluster-admin|restricted'

Length of output: 7878


@bharath-b-rh, the workflow-local location is the env: block in ci-operator/config/openshift/cert-manager-operator/openshift-cert-manager-operator-master.yaml, next to SCAN_NAMESPACE.

For example, a HyperShift workflow would set:

env:
  TLS_SCANNER_CLUSTER_LABEL: guest

However, I verified the current tls-scanner-run step. This is not a valid fix for this standard AWS workflow:

  • The step accepts only management and guest.
  • Those values select HyperShift-specific kubeconfigs.
  • An empty value uses the default host-mode scanner.
  • The default host-mode scanner uses privileged, hostNetwork, and hostPID.

Therefore, this job cannot select a supported restricted mode only by editing its env: block. The valid options are:

  1. Document and obtain approval for the required host-mode exception, or
  2. Update the shared tls-scanner-run step to support restricted execution for standard AWS clusters before using it here.

I should have stated this limitation in the original comment.


🧠 Learnings used
Learnt from: dustman9000
Repo: openshift/release PR: 80929
File: ci-operator/config/openshift-online/rosa-e2e/openshift-online-rosa-e2e-main__ocm-fvt-rosa-hcp-production.yaml:31-39
Timestamp: 2026-06-24T02:25:16.245Z
Learning: In the openshift/release repo, when a PR makes structural changes to CI operator config (e.g., adding/renaming tests, changing the pre/post steps, or adding allow_best_effort_post_steps), require that the contributor regenerated the downstream Prow job definitions/metadata by running exactly: `make registry-metadata && make ci-operator-config && make jobs`. If the contributor confirms those commands were run successfully and the relevant CI checks passed, then treat the regeneration requirement as satisfied for review purposes.

You are interacting with an AI system.

@arun717

arun717 commented Jul 31, 2026

Copy link
Copy Markdown
Contributor Author

/pj-rehearse pull-ci-openshift-cert-manager-operator-master-tls-scanner

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

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

@arun717 arun717 changed the title Add optional TLS scanner CI job for cert-manager-operator NO-JIRA: Add optional TLS scanner CI job for cert-manager-operator Jul 31, 2026
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jul 31, 2026
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@arun717: This pull request explicitly references no jira issue.

Details

In response to this:

Summary

  • Adds an optional, manually triggered tls-scanner presubmit for openshift/cert-manager-operator on master.
  • The job provisions an AWS cluster, installs the cert-manager-operator bundle, deploys the CertManager operand, enables TLS 1.3 strict adherence, and runs tls-scanner-run against the cert-manager-operator and cert-manager namespaces.
  • Pattern follows STOR-3001: Add TLS scanner job to csi-operator for SMB #82657.

Test plan

  • /pj-rehearse list confirms pull-ci-openshift-cert-manager-operator-master-tls-scanner is rehearsable
  • /pj-rehearse pull-ci-openshift-cert-manager-operator-master-tls-scanner succeeds
  • On a cert-manager-operator PR against master, /test tls-scanner can trigger the job after this merges

Summary by CodeRabbit

  • Adds an optional, manually triggered tls-scanner presubmit job for openshift/cert-manager-operator on master.
  • Provisions an AWS cluster, installs the operator bundle, deploys the CertManager operand, and waits for deployments.
  • Enables strict TLS 1.3 adherence and runs tls-scanner-run against the cert-manager-operator and cert-manager namespaces.
  • Adds the tls-scanner-tool base image required by the workflow.

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.

@arun717

arun717 commented Jul 31, 2026

Copy link
Copy Markdown
Contributor Author

/pj-rehearse pull-ci-openshift-cert-manager-operator-master-tls-scanner

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

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

@arun717

arun717 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

/pj-rehearse pull-ci-openshift-cert-manager-operator-master-tls-scanner

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

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

arun717 added 2 commits August 4, 2026 13:21
Replace the redundant CertManager CR apply with enabling the TrustManager
feature gate via subscription, waiting for operator rollout, creating the
TrustManager CR, and waiting for the trust-manager deployment.
Add oc wait --for=create for the cert-manager namespace and operand
deployments before the existing Available checks in the TLS scanner job.
@arun717

arun717 commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

/pj-rehearse pull-ci-openshift-cert-manager-operator-master-tls-scanner

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

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

@siddhibhor-56

Copy link
Copy Markdown
Contributor

/pj-rehearse

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

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

operator-sdk run bundle creates a versioned Subscription, so stop
hardcoding cert-manager-operator and patch the Subscription that exists.
@arun717

arun717 commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

/pj-rehearse pull-ci-openshift-cert-manager-operator-master-tls-scanner

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

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

arun717 added 2 commits August 6, 2026 11:26
Match e2e: poll UNSUPPORTED_ADDON_FEATURES on the operator
deployment instead of a CLI arg that is never set by OLM.
Preserve existing Subscription env when enabling the feature gate,
apply a minimal TrustManager CR without defaultCAPackage, and wait
for Ready before scanning.
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

[REHEARSALNOTIFIER]
@arun717: 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-cert-manager-operator-master-tls-scanner openshift/cert-manager-operator presubmit Presubmit changed
pull-ci-openshift-cert-manager-operator-master-ci-bundle-cert-manager-operator-bundle openshift/cert-manager-operator presubmit Ci-operator config changed
pull-ci-openshift-cert-manager-operator-master-e2e-operator openshift/cert-manager-operator presubmit Ci-operator config changed
pull-ci-openshift-cert-manager-operator-master-e2e-operator-aws-proxy openshift/cert-manager-operator presubmit Ci-operator config changed
pull-ci-openshift-cert-manager-operator-master-e2e-operator-aws-sts openshift/cert-manager-operator presubmit Ci-operator config changed
pull-ci-openshift-cert-manager-operator-master-e2e-operator-aws-upi-proxy openshift/cert-manager-operator presubmit Ci-operator config changed
pull-ci-openshift-cert-manager-operator-master-e2e-operator-azure-ovn openshift/cert-manager-operator presubmit Ci-operator config changed
pull-ci-openshift-cert-manager-operator-master-e2e-operator-azure-workload-identity openshift/cert-manager-operator presubmit Ci-operator config changed
pull-ci-openshift-cert-manager-operator-master-e2e-operator-consoleless openshift/cert-manager-operator presubmit Ci-operator config changed
pull-ci-openshift-cert-manager-operator-master-e2e-operator-coverage openshift/cert-manager-operator presubmit Ci-operator config changed
pull-ci-openshift-cert-manager-operator-master-e2e-operator-gcp-ovn openshift/cert-manager-operator presubmit Ci-operator config changed
pull-ci-openshift-cert-manager-operator-master-e2e-operator-gcp-workload-identity openshift/cert-manager-operator presubmit Ci-operator config changed
pull-ci-openshift-cert-manager-operator-master-e2e-operator-tech-preview openshift/cert-manager-operator presubmit Ci-operator config changed
pull-ci-openshift-cert-manager-operator-master-fips-image-scan-cert-manager openshift/cert-manager-operator presubmit Ci-operator config changed
pull-ci-openshift-cert-manager-operator-master-fips-image-scan-istio-csr openshift/cert-manager-operator presubmit Ci-operator config changed
pull-ci-openshift-cert-manager-operator-master-fips-image-scan-operator openshift/cert-manager-operator presubmit Ci-operator config changed
pull-ci-openshift-cert-manager-operator-master-fips-image-scan-trust-manager openshift/cert-manager-operator presubmit Ci-operator config changed
pull-ci-openshift-cert-manager-operator-master-images openshift/cert-manager-operator presubmit Ci-operator config changed
pull-ci-openshift-cert-manager-operator-master-unit openshift/cert-manager-operator presubmit Ci-operator config changed
pull-ci-openshift-cert-manager-operator-master-verify openshift/cert-manager-operator 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.

@arun717

arun717 commented Aug 6, 2026

Copy link
Copy Markdown
Contributor Author

/pj-rehearse pull-ci-openshift-cert-manager-operator-master-tls-scanner

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@arun717: 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 6, 2026

Copy link
Copy Markdown
Contributor

@arun717: 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/cert-manager-operator/master/tls-scanner 7bf722c link unknown /pj-rehearse pull-ci-openshift-cert-manager-operator-master-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.

@bharath-b-rh bharath-b-rh 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.

/lgtm
/approve

SUB=$(oc -n cert-manager-operator get subscriptions.operators.coreos.com -o jsonpath='{.items[0].metadata.name}')
if [[ -z "${SUB}" ]]; then
echo "No Subscription found in cert-manager-operator namespace"
oc -n cert-manager-operator get subscriptions.operators.coreos.com -o yaml || true

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.

nit: what is the use of the command here?

exit 1
fi
echo "Patching Subscription ${SUB} (preserve existing env, match e2e patchSubscriptionWithEnvVars)"
PATCH=$(oc -n cert-manager-operator get "subscription/${SUB}" -o json | python3 -c 'import json,sys; sub=json.load(sys.stdin); cfg=(sub.get("spec") or {}).get("config") or {}; env=[e for e in (cfg.get("env") or []) if e.get("name")!="UNSUPPORTED_ADDON_FEATURES"]; env.append({"name":"UNSUPPORTED_ADDON_FEATURES","value":"TrustManager=true"}); print(json.dumps({"spec":{"config":{"env":env}}}))')

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.

nit: it's always to be generic, but here I think it is not required, instead we could just patch it, since the subscription is fesh created. No harm having it though.

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Aug 6, 2026
@openshift-ci

openshift-ci Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: arun717, bharath-b-rh

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 6, 2026
@bharath-b-rh

Copy link
Copy Markdown
Contributor

The rehearse is expected to fail, since there are few changes which are being addressed in openshift/cert-manager-operator#466. Proceeding with the merge here and the workflow will be tested on the mentioned PR.

Endpoint                                                Port                                                  Pod
--------------------------------------------------------------------------------------------------------------------------------------
trust-manager webhook                    :6443                                        trust-manager-…
cert-manager-operator metrics        :8443                                         cert-manager-operator-controller-manager-...

/pj-rehearse ack

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

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

@openshift-merge-bot openshift-merge-bot Bot added the rehearsals-ack Signifies that rehearsal jobs have been acknowledged label Aug 6, 2026
@openshift-merge-bot
openshift-merge-bot Bot merged commit fb13548 into openshift:main Aug 6, 2026
16 of 17 checks passed
fracappa pushed a commit to fracappa/release that referenced this pull request Aug 6, 2026
…penshift#82715)

* Add optional TLS scanner CI job for cert-manager-operator

Add a manually triggered tls-scanner presubmit on master that installs
the operator, deploys the CertManager operand, and runs tls-scanner-run
against the cert-manager namespaces.

* Enable TrustManager before cert-manager-operator TLS scanner

Replace the redundant CertManager CR apply with enabling the TrustManager
feature gate via subscription, waiting for operator rollout, creating the
TrustManager CR, and waiting for the trust-manager deployment.

* Wait for cert-manager namespace and deployments to be created

Add oc wait --for=create for the cert-manager namespace and operand
deployments before the existing Available checks in the TLS scanner job.

* Discover cert-manager Subscription name before TrustManager patch

operator-sdk run bundle creates a versioned Subscription, so stop
hardcoding cert-manager-operator and patch the Subscription that exists.

* Wait for TrustManager feature gate via deployment env

Match e2e: poll UNSUPPORTED_ADDON_FEATURES on the operator
deployment instead of a CLI arg that is never set by OLM.

* Align TrustManager enablement with e2e helpers

Preserve existing Subscription env when enabling the feature gate,
apply a minimal TrustManager CR without defaultCAPackage, and wait
for Ready before scanning.
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. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. rehearsals-ack Signifies that rehearsal jobs have been acknowledged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants