Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Commit

Permalink
Groom DAST scan tool template (#170)
Browse files Browse the repository at this point in the history
Resolves: #169

Signed-off-by: Sergio Arroutbi <[email protected]>
  • Loading branch information
sarroutbi authored Oct 6, 2023
1 parent 6d5774b commit b2aa0a3
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions tools/scan_tools/tang_operator_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,13 @@ general:
type: "http_header"
parameters:
name: "Authorization"
# Ways to obtain token:
# oc get secret $(oc get secret | grep ^default-token | awk '{print $1}') -o json | jq -Mr '.data.token' | base64 -d
# oc whoami -t
value: "Bearer AUTH_TOKEN_HERE"
container:
# currently supported: `podman` and `none`
type: "none"

scanners:
zap:
# parameters:
# executable: "ZAP_2.13.0/zap.sh"
# define a scan through the ZAP scanner
apiScan:
apis:
apiUrl: "API_HOST_PORT_HERE/openapi/v3/apis/daemons.redhat.com/v1alpha1"
Expand All @@ -46,8 +40,8 @@ scanners:
miscOptions:
# enableUI (default: false), requires a compatible runtime (e.g.: flatpak or no containment)
enableUI: false
# Defaults to true, set false to prevent auto update of ZAP plugins
# Defaults to True, set False to prevent auto update of ZAP plugins
updateAddons: false
overrideConfigs:
- formhandler.fields.field(0).fieldId="namespace"
- formhandler.fields.field(0).value="OPERATOR_NAMESPACE_HERE"
- formhandler.fields.field(0).fieldId=namespace
- formhandler.fields.field(0).value=OPERATOR_NAMESPACE_HERE

0 comments on commit b2aa0a3

Please sign in to comment.