snyk-broker 4.127.1 → 4.128.0
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/dist/client-templates/nexus/.env.sample +7 -3
- package/dist/client-templates/nexus/accept.json.sample +6 -1
- package/dist/client-templates/nexus2/.env.sample +27 -0
- package/dist/client-templates/nexus2/accept.json.sample +26 -0
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +3 -3
- package/package.json +1 -1
|
@@ -18,12 +18,16 @@ ACCEPT=accept.json
|
|
|
18
18
|
# The path for the broker's internal healthcheck URL. Must start with a '/'.
|
|
19
19
|
BROKER_HEALTHCHECK_PATH=/healthcheck
|
|
20
20
|
|
|
21
|
-
# Provide RES_BODY_URL_SUB with the URL of the Nexus without credentials
|
|
21
|
+
# Provide RES_BODY_URL_SUB with the URL of the Nexus without credentials
|
|
22
22
|
# This URL substitution is required for NPM integration
|
|
23
|
-
# RES_BODY_URL_SUB=
|
|
23
|
+
# RES_BODY_URL_SUB=https://<your.nexus.hostname>/repository
|
|
24
24
|
|
|
25
25
|
# Nexus validation url, checked by broker client systemcheck endpoint
|
|
26
|
-
#
|
|
26
|
+
# users must have 'nx-metrics-all' privilege enabled to access
|
|
27
27
|
# https://support.sonatype.com/hc/en-us/articles/226254487-System-Status-and-Metrics-REST-API
|
|
28
|
+
# NOTE! If NOT using username and password in BASE_NEXUS_URL, because your Nexus server is open on a private network, then use '/service/rest/v1/status' for BROKER_CLIENT_VALIDATION_URL.
|
|
29
|
+
# '/service/rest/v1/status/check' requires an authenticated connection while '/service/rest/v1/status' does not.
|
|
30
|
+
#BROKER_CLIENT_VALIDATION_URL=$BASE_NEXUS_URL/service/rest/v1/status
|
|
28
31
|
BROKER_CLIENT_VALIDATION_URL=$BASE_NEXUS_URL/service/rest/v1/status/check
|
|
32
|
+
|
|
29
33
|
BROKER_CLIENT_VALIDATION_JSON_DISABLED=true
|
|
@@ -12,13 +12,18 @@
|
|
|
12
12
|
"path": "/",
|
|
13
13
|
"origin": "${BASE_NEXUS_URL}"
|
|
14
14
|
},
|
|
15
|
+
{
|
|
16
|
+
"method": "GET",
|
|
17
|
+
"path": "/service/rest/v1/status",
|
|
18
|
+
"origin": "${BASE_NEXUS_URL}"
|
|
19
|
+
},
|
|
15
20
|
{
|
|
16
21
|
"method": "GET",
|
|
17
22
|
"path": "/service/rest/v1/status/check",
|
|
18
23
|
"origin": "${BASE_NEXUS_URL}"
|
|
19
24
|
},
|
|
20
25
|
{
|
|
21
|
-
"method": "
|
|
26
|
+
"method": "GET",
|
|
22
27
|
"path": "/*",
|
|
23
28
|
"origin": "${NEXUS_URL}"
|
|
24
29
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# your unique broker identifier
|
|
2
|
+
BROKER_TOKEN=<broker-token>
|
|
3
|
+
|
|
4
|
+
# The Base URL for your Nexus Repository Manager
|
|
5
|
+
# If not using basic auth this will only be "https://<your.nexus.hostname>"
|
|
6
|
+
BASE_NEXUS_URL=https://<username>:<password>@<your.nexus.hostname>
|
|
7
|
+
|
|
8
|
+
# The URL to your Nexus Repository Manager
|
|
9
|
+
NEXUS_URL=$BASE_NEXUS_URL/nexus/content
|
|
10
|
+
|
|
11
|
+
# The URL of the Snyk broker server
|
|
12
|
+
BROKER_SERVER_URL=https://broker.snyk.io
|
|
13
|
+
|
|
14
|
+
# the fine detail accept rules that allow Snyk to make API requests to your
|
|
15
|
+
# Nexus instance
|
|
16
|
+
ACCEPT=accept.json
|
|
17
|
+
|
|
18
|
+
# The path for the broker's internal healthcheck URL. Must start with a '/'.
|
|
19
|
+
BROKER_HEALTHCHECK_PATH=/healthcheck
|
|
20
|
+
|
|
21
|
+
# Provide RES_BODY_URL_SUB with the URL of the Nexus without credentials
|
|
22
|
+
# This URL substitution is required for NPM integration
|
|
23
|
+
# RES_BODY_URL_SUB=https://<your.nexus.hostname>/nexus/content
|
|
24
|
+
|
|
25
|
+
BROKER_CLIENT_VALIDATION_URL=$BASE_NEXUS_URL/nexus/service/local/status
|
|
26
|
+
|
|
27
|
+
BROKER_CLIENT_VALIDATION_JSON_DISABLED=true
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"public": [
|
|
3
|
+
{
|
|
4
|
+
"method": "any",
|
|
5
|
+
"path": "/*",
|
|
6
|
+
"stream": true
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"private": [
|
|
10
|
+
{
|
|
11
|
+
"method": "HEAD",
|
|
12
|
+
"path": "/",
|
|
13
|
+
"origin": "${BASE_NEXUS_URL}"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"method": "GET",
|
|
17
|
+
"path": "/nexus/service/local/status",
|
|
18
|
+
"origin": "${BASE_NEXUS_URL}"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"method": "GET",
|
|
22
|
+
"path": "/*",
|
|
23
|
+
"origin": "${NEXUS_URL}"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
package/dist/package.json
CHANGED
|
@@ -472,7 +472,7 @@
|
|
|
472
472
|
"affectsGlobalScope": true
|
|
473
473
|
},
|
|
474
474
|
"../package.json": {
|
|
475
|
-
"version": "
|
|
475
|
+
"version": "893510d9bf5d178a425edbb6f7bb01e181cb7143795ae7f6a6f52f46bc565392",
|
|
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": "67633388f50fe010a7b4d892721437d0fac88a282ef46217137d263a8a6651ed",
|
|
571
|
+
"signature": "67633388f50fe010a7b4d892721437d0fac88a282ef46217137d263a8a6651ed",
|
|
572
572
|
"affectsGlobalScope": false
|
|
573
573
|
},
|
|
574
574
|
"../node_modules/@types/babel__generator/index.d.ts": {
|
package/package.json
CHANGED