Repository navigation
NO-JIRA: Add optional TLS scanner CI job for cert-manager-operator #82715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
ed976da
ebebc78
d2c7ad2
3aca361
0389fe4
7bf722c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,6 +11,10 @@ base_images: | |
| name: "4.19" | ||
| namespace: origin | ||
| tag: operator-sdk | ||
| tls-scanner-tool: | ||
| name: tls-scanner | ||
| namespace: tls-scanner | ||
| tag: tls-scanner-tool | ||
| upi-installer: | ||
| name: "4.22" | ||
| namespace: ocp | ||
|
|
@@ -424,6 +428,46 @@ tests: | |
| requests: | ||
| cpu: 100m | ||
| workflow: openshift-e2e-azure-manual-oidc-workload-identity | ||
| - always_run: false | ||
| as: tls-scanner | ||
| optional: true | ||
| steps: | ||
| cluster_profile: openshift-org-aws | ||
| dependencies: | ||
| OO_BUNDLE: cert-manager-operator-bundle | ||
| env: | ||
| OO_INSTALL_MODE: AllNamespaces | ||
| OO_INSTALL_NAMESPACE: cert-manager-operator | ||
| OO_SECURITY_CONTEXT: restricted | ||
| SCAN_NAMESPACE: cert-manager-operator,cert-manager | ||
| SCANNER_CPU: "1" | ||
| SCANNER_MEMORY: 1Gi | ||
| TLS_13_ENABLE_TLS_ADHERENCE: "true" | ||
| TLS_13_TLS_ADHERENCE_POLICY: StrictAllComponents | ||
| test: | ||
| - as: deploy-operand | ||
| cli: latest | ||
| commands: |- | ||
| oc apply -f - <<EOF | ||
| apiVersion: operator.openshift.io/v1alpha1 | ||
| kind: CertManager | ||
| metadata: | ||
| name: cluster | ||
| spec: | ||
| logLevel: Normal | ||
| managementState: Managed | ||
| EOF | ||
| echo "Waiting for cert-manager operand deployments..." | ||
| oc wait --for=condition=Available -n cert-manager deployment/cert-manager --timeout=5m | ||
| oc wait --for=condition=Available -n cert-manager deployment/cert-manager-webhook --timeout=5m | ||
| oc wait --for=condition=Available -n cert-manager deployment/cert-manager-cainjector --timeout=5m | ||
| from: src | ||
| resources: | ||
| requests: | ||
| cpu: 100m | ||
| - ref: tls-13 | ||
| - ref: tls-scanner-run | ||
|
Comment on lines
+530
to
+531
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 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 🤖 Prompt for AI Agents
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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
For example, a HyperShift workflow would set: env:
TLS_SCANNER_CLUSTER_LABEL: guestHowever, I verified the current
Therefore, this job cannot select a supported restricted mode only by editing its
I should have stated this limitation in the original comment. 🧠 Learnings usedYou are interacting with an AI system. |
||
| workflow: optional-operators-ci-operator-sdk-aws | ||
| zz_generated_metadata: | ||
| branch: master | ||
| org: openshift | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.