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: README.md
+78-5Lines changed: 78 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,71 @@ If required, specify your [Snyk Region](https://docs.snyk.io/working-with-snyk/r
31
31
region: "eu"
32
32
```
33
33
34
+
### Credential References
35
+
36
+
Any Credential References (refer to the example provided on [docs.snyk.io](https://docs.snyk.io/enterprise-setup/snyk-broker/universal-broker/set-up-a-github-connection-using-the-api#id-3-create-your-credentials-references)) must be provided to the Universal Broker. This can be achieved directly through Helm, or via an external Kubernetes Secret.
37
+
38
+
For the following example, assume three credential references are created of the following `deployment_credential` types:
39
+
- `github`
40
+
- `gitlab`
41
+
- `azure-repos`
42
+
43
+
An example data object is shown for the `github` type.
44
+
```json
45
+
{
46
+
...
47
+
"data":{
48
+
"id": "uuidv4",
49
+
"type": "deployment_credential",
50
+
"attributes": {
51
+
"comment": "",
52
+
"deployment_id": "uuidv4",
53
+
"environment_variable_name": "MY_GITHUB_TOKEN",
54
+
"type": "github"
55
+
}
56
+
}
57
+
}
58
+
```
59
+
The number of credential references will depend on the `type` of the `deployment_credential`; `github` holds just one (the GitHub PAT), whilst `azure-repos` holds three (the Azure Repos Org, Username and Password)
60
+
61
+
#### Via Helm
62
+
63
+
Provide the environment variable used when creating the credential reference, and the actual value of your credential.
64
+
65
+
For example, providing the Universal Broker with a GitHub, GitLab and Azure Repos credential:
The Universal Broker Helm Chart creates this secret for you.
77
+
78
+
#### Via External Secret
79
+
80
+
First create or otherwise ensure the secret exists:
81
+
82
+
```yaml
83
+
kind: Secret
84
+
apiVersion: v1
85
+
metadata:
86
+
name: my-universal-broker-secrets
87
+
data:
88
+
MY_GITHUB_TOKEN: <your-github-token>
89
+
...
90
+
```
91
+
92
+
Then set values within `.Values.credentialReferencesSecret` that match your external Secret:
93
+
94
+
```yaml
95
+
credentialReferencesSecret:
96
+
name: my-universal-broker-secrets
97
+
```
98
+
34
99
## Advanced Configuration
35
100
36
101
### Certificate Trust
@@ -102,16 +167,24 @@ image:
102
167
103
168
### Snyk Broker parameters
104
169
170
+
Refer to documentation via [docs.snyk.io](https://docs.snyk.io/enterprise-setup/snyk-broker/universal-broker/initial-configuration-of-the-universal-broker) to obtain `deploymentId`, `clientId`, `clientSecret` values.
171
+
172
+
Credential References should contain one or more key/value pairs where each key matches the `environment_variable_name` of a `deployment_credential`, and the value provides the secret. For example:
| `brokerClientUrl` | is the address of the broker. This needs to be the address of itself. In the case of Kubernetes, you need to ensure that you are pointing to the cluster ingress you have setup. | `""` |
108
180
| `region` | Optionally specify a Snyk Region - e.g. "eu" for "SNYK-EU-01". Defaults to "SNYK-US-01", app.snyk.io | `""` |
| `deploymentId` | Obtained by installing the Broker App | `""` |
183
+
| `clientId` | Obtained by installing the Broker App | `""` |
184
+
| `clientSecret` | Obtained by installing the Broker App | `""` |
185
+
| `platformAuthSecret.name` | Optionally provide an external secret containing three keys: `DEPLOYMENT_ID`, `CLIENT_ID` and `CLIENT_SECRET` | `""` |
186
+
| `credentialReferences` | Credential References to pass to Broker | `{}` |
187
+
| `credentialReferencesSecret.name` | Optionally provide a pre-existing secret with SCM credential reference data | `""` |
115
188
| `acceptCode` | Set to false to block Broker rules relating to Snyk Code analysis | `true` |
116
189
| `acceptAppRisk` | Set to false to block Broker rules relating to AppRisk | `true` |
117
190
| `acceptIaC` | Defaults to "tf,yaml,yml,json,tpl". Optionally remove any extensions not required. Must be comma separated. Set to "" to block Broker rules relating to Snyk IaC analysis | `""` |
0 commit comments