You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hooks/notification/README.md
+41-3Lines changed: 41 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -126,7 +126,7 @@ This means that you can define key-value pairs as well as providing envs via sec
126
126
The rules can be defined in the values of the Chart.
127
127
The syntax and semantic for these rules are quite similar to CascadingRules (See: [secureCodeBox | CascadingRules](/docs/api/crds/cascading-rule))
128
128
To define Rules you will have to provide the `rules` field with one or more `matches` elements.
129
-
Each `machtes` defines one Rule.
129
+
Each `matches` defines one Rule.
130
130
For example:
131
131
132
132
```yaml
@@ -147,14 +147,52 @@ Within the `matches` you will have to provide `anyOf`
147
147
`anyOf` contains one or more conditions to be met by the finding to match the rule.
148
148
Notice that only one of these elements needs to match the finding for the rule to match.
149
149
150
-
#### Configuration of a Slack Notification
150
+
#### Configuration of a Slack Notification (WebHook)
151
151
152
152
To configure a Slack notification set the `type` to `slack` and the `endPoint` to point to your env containing your Webhook URL to slack.
153
153
You can use one of the following default templates:
154
154
155
155
- `slack-messageCard`: Sends a message with a summary listing the number of findings per category and severity.
156
156
- `slack-individual-findings-with-defectdojo`: Sends a message with a list of all findings with a link to the finding in DefectDojo. Will only work correctly if the DefectDojo hook is installed in the same namespace.
157
157
158
+
##### Example Config
159
+
160
+
The below example shows how to create a helm values chart and load secrets for access.
161
+
You must have `endPoint` point to a [defined environment variable](https://github.com/secureCodeBox/secureCodeBox/blob/main/hooks/notification/hook/hook.ts#L20), not a string.
0 commit comments