snyk-broker 4.129.0 → 4.129.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -0
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -261,6 +261,42 @@ ENV BROKER_TOKEN secret-broker-token
|
|
|
261
261
|
ENV ARTIFACTORY_URL <yourdomain>.artifactory.com
|
|
262
262
|
```
|
|
263
263
|
|
|
264
|
+
### Nexus 3
|
|
265
|
+
|
|
266
|
+
To use the Nexus 3 client with an Nexus 3 deployment, run `docker pull snyk/broker:nexus` tag. The following environment variables are needed to customize the Broker client:
|
|
267
|
+
|
|
268
|
+
- `BROKER_TOKEN` - the snyk broker token, obtained from your artifactory integration settings view.
|
|
269
|
+
- `BASE_NEXUS_URL` - the URL of your Nexus 3 deployment, such as `https://[<user>:<pass>@]<your.nexus.hostname>`.
|
|
270
|
+
- `BROKER_CLIENT_VALIDATION_URL` - Nexus validation url, checked by broker client systemcheck endpoint. If Nexus user requires auth, use `$BASE_NEXUS_URL/service/rest/v1/status/check` (e.g. `https://<user>:<pass>@<your.nexus.hostname>/service/rest/v1/status/check`) otherwise use `$BASE_NEXUS_URL/service/rest/v1/status` (e.g. `https://<your.nexus.hostname>/service/rest/v1/status`).
|
|
271
|
+
- (Optional) `RES_BODY_URL_SUB` - This URL substitution is required for NPM/Yarn integration and is the same as the URL of the Nexus without credentials appended with `/repository`, e.g. `https://<your.nexus.hostname>/repository`
|
|
272
|
+
|
|
273
|
+
#### Command-line arguments
|
|
274
|
+
|
|
275
|
+
You can run the docker container by providing the relevant configuration:
|
|
276
|
+
|
|
277
|
+
```console
|
|
278
|
+
docker run --restart=always \
|
|
279
|
+
-p 7341:7341 \
|
|
280
|
+
-e BROKER_TOKEN=secret-broker-token \
|
|
281
|
+
-e BASE_NEXUS_URL=https://[<user>:<pass>@]<your.nexus.hostname> \
|
|
282
|
+
-e BROKER_CLIENT_VALIDATION_URL=https://<your.nexus.hostname>/service/rest/v1/status[/check] \
|
|
283
|
+
-e RES_BODY_URL_SUB=https://<your.nexus.hostname>/repository \
|
|
284
|
+
snyk/broker:nexus
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
#### Derived docker image
|
|
288
|
+
|
|
289
|
+
Another option is to build your own docker image and override relevant environment variables:
|
|
290
|
+
|
|
291
|
+
```dockerfile
|
|
292
|
+
FROM snyk/broker:nexus
|
|
293
|
+
|
|
294
|
+
ENV BROKER_TOKEN secret-broker-token
|
|
295
|
+
ENV BASE_NEXUS_URL https://[<user>:<pass>@]<your.nexus.hostname>
|
|
296
|
+
ENV BROKER_CLIENT_VALIDATION_URL https://<your.nexus.hostname>/service/rest/v1/status[/check]
|
|
297
|
+
ENV RES_BODY_URL_SUB https://<your.nexus.hostname>/repository
|
|
298
|
+
```
|
|
299
|
+
|
|
264
300
|
### Jira
|
|
265
301
|
|
|
266
302
|
To use the Broker client with a Jira deployment, run `docker pull snyk/broker:jira` tag. The following environment variables are mandatory to configure the Broker client:
|
package/dist/package.json
CHANGED
|
@@ -472,7 +472,7 @@
|
|
|
472
472
|
"affectsGlobalScope": true
|
|
473
473
|
},
|
|
474
474
|
"../package.json": {
|
|
475
|
-
"version": "
|
|
475
|
+
"version": "e78ccbd817cb302acae0c92028a36a13010c6fa42542b55bb9c91688189e22b9",
|
|
476
476
|
"signature": "4b7aff601ec65d9674146cc6cb2de0e47e8d203c86a24ccb3d43fbf25afffb24",
|
|
477
477
|
"affectsGlobalScope": true
|
|
478
478
|
},
|
|
@@ -567,8 +567,8 @@
|
|
|
567
567
|
"affectsGlobalScope": true
|
|
568
568
|
},
|
|
569
569
|
"../node_modules/@babel/types/lib/index.d.ts": {
|
|
570
|
-
"version": "
|
|
571
|
-
"signature": "
|
|
570
|
+
"version": "9b6d2a9f610aac2dc6c3fcc45a90dbbde0411dd677bdc956d76f484f397640f1",
|
|
571
|
+
"signature": "9b6d2a9f610aac2dc6c3fcc45a90dbbde0411dd677bdc956d76f484f397640f1",
|
|
572
572
|
"affectsGlobalScope": false
|
|
573
573
|
},
|
|
574
574
|
"../node_modules/@types/babel__generator/index.d.ts": {
|
|
@@ -587,8 +587,8 @@
|
|
|
587
587
|
"affectsGlobalScope": false
|
|
588
588
|
},
|
|
589
589
|
"../node_modules/@types/babel__traverse/ts4.1/index.d.ts": {
|
|
590
|
-
"version": "
|
|
591
|
-
"signature": "
|
|
590
|
+
"version": "4dd55fea4ad11246df875a5fd4663382ed4dd0002d0a0ea77901399e3b678065",
|
|
591
|
+
"signature": "4dd55fea4ad11246df875a5fd4663382ed4dd0002d0a0ea77901399e3b678065",
|
|
592
592
|
"affectsGlobalScope": false
|
|
593
593
|
},
|
|
594
594
|
"../node_modules/@types/babel__core/index.d.ts": {
|
package/package.json
CHANGED