Skip to content

CMP-3867: Add RapidDast test for Compliance Operator#1010

Open
xiaojiey wants to merge 1 commit into
ComplianceAsCode:masterfrom
xiaojiey:add-dast
Open

CMP-3867: Add RapidDast test for Compliance Operator#1010
xiaojiey wants to merge 1 commit into
ComplianceAsCode:masterfrom
xiaojiey:add-dast

Conversation

@xiaojiey
Copy link
Copy Markdown
Collaborator

@xiaojiey xiaojiey commented Nov 28, 2025

  1. Add RapidDast test for Compliance Operator
  2. Local test PASS:
% mkdir /tmp/compliance-test-artifacts
% export ARTIFACT_DIR=/tmp/compliance-test-artifacts
% make e2e-parallel  E2E_GO_TEST_FLAGS="-v -timeout 60m -run TestComplianceOperatorPassesDAST"
2025/11/28 13:42:24 Successfully deleted ClusterRoleBinding rapidast-admin-osdk-e2e-731934cd-32b8-410d-a113-4a6af4b0687d
    main_test.go:5228: Compliance operator passed DAST scan
--- PASS: TestComplianceOperatorPassesDAST (32.05s)
PASS
  1. If you want to see the full report, you can see it with command below. Only Low risk alert showed:
    cat $ARTIFACT_DIR/rapiddastresultsISC/compliance_v1alpha1_rapidast.result
  2. Include the required selectors to machineconfig to pass the ValidatingAdmissionPolicy which address in CMP-3930: Include the required selectors to machineconfig to pass the ValidatingAdmissionPolicy #960

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Nov 28, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: xiaojiey

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

@xiaojiey xiaojiey changed the title Add RapidDast test for Compliance Operator CMP-3867: Add RapidDast test for Compliance Operator Nov 28, 2025
@openshift-ci-robot
Copy link
Copy Markdown
Collaborator

@xiaojiey: This pull request references CMP-3867 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 story to target the "4.21.0" version, but no target version was set.

Details

In response to this:

  1. Add RapidDast test for Compliance Operator
  2. Local test PASS:
% mkdir /tmp/compliance-test-artifacts
% export ARTIFACT_DIR=/tmp/compliance-test-artifacts
% make e2e-parallel  E2E_GO_TEST_FLAGS="-v -timeout 60m -run TestComplianceOperatorPassesDAST"
2025/11/28 13:42:24 Successfully deleted ClusterRoleBinding rapidast-admin-osdk-e2e-731934cd-32b8-410d-a113-4a6af4b0687d
   main_test.go:5228: Compliance operator passed DAST scan
--- PASS: TestComplianceOperatorPassesDAST (32.05s)
PASS
  1. If you want to see the full report, you can see it with command below. Only Low risk alert showed:
    cat $ARTIFACT_DIR/rapiddastresultsISC/compliance_v1alpha1_rapidast.result

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.

@github-actions
Copy link
Copy Markdown

🤖 To deploy this PR, run the following command:

make catalog-deploy CATALOG_IMG=ghcr.io/complianceascode/compliance-operator-catalog:1010-27bb62d32bc92fa4dde502f1dff2aad42cd21143

@github-actions
Copy link
Copy Markdown

🤖 To deploy this PR, run the following command:

make catalog-deploy CATALOG_IMG=ghcr.io/complianceascode/compliance-operator-catalog:1010-40327bc324356a1041ebbcc56070688915fe07e0

@github-actions
Copy link
Copy Markdown

🤖 To deploy this PR, run the following command:

make catalog-deploy CATALOG_IMG=ghcr.io/complianceascode/compliance-operator-catalog:1010-0f2a7f41b6578278bcb7f816ad8c4e24f866150c

@github-actions
Copy link
Copy Markdown

🤖 To deploy this PR, run the following command:

make catalog-deploy CATALOG_IMG=ghcr.io/complianceascode/compliance-operator-catalog:1010-9f57772af0bd01c07e9d14f39784616051172d6d

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Dec 1, 2025

🤖 To deploy this PR, run the following command:

make catalog-deploy CATALOG_IMG=ghcr.io/complianceascode/compliance-operator-catalog:1010-68b3b2669721eb6be36c0b1c0f36b0995d82c2af

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Dec 1, 2025

🤖 To deploy this PR, run the following command:

make catalog-deploy CATALOG_IMG=ghcr.io/complianceascode/compliance-operator-catalog:1010-7e5d6c077f348a09c595919a357b0aefa8f5cab9

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Dec 3, 2025

🤖 To deploy this PR, run the following command:

make catalog-deploy CATALOG_IMG=ghcr.io/complianceascode/compliance-operator-catalog:1010-68c536c153aca64f48747b856a1542f84de110dc

@xiaojiey
Copy link
Copy Markdown
Collaborator Author

xiaojiey commented Dec 3, 2025

/retest

3 similar comments
@xiaojiey
Copy link
Copy Markdown
Collaborator Author

xiaojiey commented Dec 3, 2025

/retest

@xiaojiey
Copy link
Copy Markdown
Collaborator Author

xiaojiey commented Dec 3, 2025

/retest

@xiaojiey
Copy link
Copy Markdown
Collaborator Author

xiaojiey commented Dec 5, 2025

/retest

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Dec 9, 2025

🤖 To deploy this PR, run the following command:

make catalog-deploy CATALOG_IMG=ghcr.io/complianceascode/compliance-operator-catalog:1010-14560f69d7cd0338b3fbede5d807cbbf21af29ef

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 4, 2026

🤖 To deploy this PR, run the following command:

make catalog-deploy CATALOG_IMG=ghcr.io/complianceascode/compliance-operator-catalog:1010-5ed563919dcce248cc347b835b9e942828f4f30c

@github-actions
Copy link
Copy Markdown

🤖 To deploy this PR, run the following command:

make catalog-deploy CATALOG_IMG=ghcr.io/complianceascode/compliance-operator-catalog:1010-2feb9029942a0e1e60aa2ef6924258c5c7e3daa6

This adds support for running DAST scans using RapidAST, including:
- Google Cloud Storage upload support for DAST results when credentials are available
- Configuration files for both standard and upload-enabled scans
- The implementation checks for GCS secret file existence and conditionally:
  - Switches to upload-enabled config file (rapidast-config-upload.yaml)
  - Includes dast-gcs-secret.json in the ConfigMap
  - Uploads results to GCS bucket under isc/compliance-operator directory
- Test automatically skips when cluster nodes are not amd64 architecture
@github-actions
Copy link
Copy Markdown

🤖 To deploy this PR, run the following command:

make catalog-deploy CATALOG_IMG=ghcr.io/complianceascode/compliance-operator-catalog:1010-dd4013bf6b5ba118a1778ce65cd641696d9a3010

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Mar 17, 2026

@xiaojiey: 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/prow/e2e-rosa dd4013b link true /test e2e-rosa

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.

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Apr 2, 2026

PR needs rebase.

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.

@taimurhafeez
Copy link
Copy Markdown
Collaborator

Superseded and rebased in PR-1186.

@rhmdnd rhmdnd removed their request for review April 28, 2026 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants