From ece4d2407eae2af46650af3cc4a04d2241ea850f Mon Sep 17 00:00:00 2001 From: Francisco Javier Moreno Date: Thu, 5 Dec 2024 18:25:15 +0100 Subject: [PATCH] remove dockerfile definition --- images/rhwa/dast/Dockerfile | 7 ---- images/rhwa/dast/config/rapidastConfig.yaml | 46 --------------------- tests/rhwa/internal/rhwaparams/const.go | 2 +- 3 files changed, 1 insertion(+), 54 deletions(-) delete mode 100644 images/rhwa/dast/Dockerfile delete mode 100644 images/rhwa/dast/config/rapidastConfig.yaml diff --git a/images/rhwa/dast/Dockerfile b/images/rhwa/dast/Dockerfile deleted file mode 100644 index 8022b7663..000000000 --- a/images/rhwa/dast/Dockerfile +++ /dev/null @@ -1,7 +0,0 @@ -# Use the official RAPIDast image as the base -FROM quay.io/redhatproductsecurity/rapidast:2.8.0 - -# Set working directory to the RAPIDast installation -WORKDIR /opt/rapidast - -COPY ./config/rapidastConfig.yaml ./config/ diff --git a/images/rhwa/dast/config/rapidastConfig.yaml b/images/rhwa/dast/config/rapidastConfig.yaml deleted file mode 100644 index 8ea4a5130..000000000 --- a/images/rhwa/dast/config/rapidastConfig.yaml +++ /dev/null @@ -1,46 +0,0 @@ -# This is a configuration template file to perform scans using user-defined container images or scripts -# -# Author: Red Hat Product Security -config: - # WARNING: `configVersion` indicates the schema version of the config file. - # This value tells RapiDAST what schema should be used to read this configuration. - # Therefore you should only change it if you update the configuration to a newer schema - # It is intended to keep backward compatibility (newer RapiDAST running an older config) - configVersion: 5 -# `application` contains data related to the application, not to the scans. -application: - shortName: "trivy" -# `general` is a section that will be applied to all scanners. -general: - container: - # This configures what technology is to be used for RapiDAST to run each scanner. - # Currently supported: `podman` and `none` - # none: Default. RapiDAST runs each scanner in the same host or inside the RapiDAST image container - # podman: RapiDAST orchestrates each scanner on its own using podman - # When undefined, relies on rapidast-defaults.yaml, or `none` if nothing is set - type: "none" -# `scanners' is a section that configures scanning options -scanners: - #generic_oobt: - # #results: "/opt/rapidast/results/oobtkube.sarif.json" # if None or "*stdout", the command's standard output is selected - # # toolDir: scanners/generic/tools - # inline: "python3 oobtkube.py -d 120 -p 12345 -i 10.74.16.40 -f /test/far_template.yaml -o oobtkube.sarif.json" - generic_trivy: - # results: - # An absolute path to file or directory where results are stored on the host. - # if it is "*stdout" or unspecified, the command's standard output will be selected - # When container.type is 'podman', this needs to be used along with the container.volumes configuration below - # If the result needs to be sent to DefectDojo, this must be a SARIF format file - #results: "/test/results/oobttest" - # Example: scan a k8s cluster for misconfiguration issue - # - kubeconfig file for the cluster is required - # - See https://aquasecurity.github.io/trivy/v0.49/docs/target/kubernetes/ for more information on 'trivy k8s' scan - # - scanners/generic/tools/convert_trivy_k8s_to_sarif.py converts the Trivy json result to the SARIF format - # 'inline' is used when container.type is not 'podman' - # 'toolDir' specifies the default directory where inline scripts are located - #toolDir: scanners/generic/tools - inline: "trivy k8s -n $NAMESPACE pod --severity=HIGH,CRITICAL --scanners=misconfig --report all --format json" - container: - parameters: - # Optional: list of expected return codes, anything else will be considered as an error. by default: [0] - validReturns: [ 0 ] \ No newline at end of file diff --git a/tests/rhwa/internal/rhwaparams/const.go b/tests/rhwa/internal/rhwaparams/const.go index 122edc3b3..78d4ee4b8 100644 --- a/tests/rhwa/internal/rhwaparams/const.go +++ b/tests/rhwa/internal/rhwaparams/const.go @@ -16,5 +16,5 @@ const ( // LogLevel for the supporting functions. LogLevel = 90 // TestContainerDast specifies the container image to use for rapidast tests. - TestContainerDast = "quay.io/frmoreno/eco-dast:latest" + TestContainerDast = "quay.io/ocp-edge-qe/eco-dast:latest" )