snyk-broker 4.117.0 → 4.118.2

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 CHANGED
@@ -437,6 +437,30 @@ docker run --restart=always \
437
437
  snyk/broker:bitbucket-server
438
438
  ```
439
439
 
440
+ #### Infrastructure as Code (IaC)
441
+
442
+ By default, some file types used by Infrastructure-as-Code (IaC) are not enabled. To grant the Broker access to IaC files in your repository, such as Terraform for example, edit your `accept.json` and add the relevant IaC specific rules.
443
+
444
+ For example, if you are using GitHub and you would like to give the Broker access to your Terraform files, you should add the following rules to your `accept.json`:
445
+
446
+ ```console
447
+ {
448
+ "//": "used to enable scanning of Terraform files",
449
+ "method": "GET",
450
+ "path": "/repos/:name/:repo/contents/:path*/*.tf",
451
+ "origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
452
+ },
453
+ {
454
+ "//": "used to enable scanning of Terraform files",
455
+ "method": "GET",
456
+ "path": "/repos/:name/:repo/contents/:path*%2F*.tf",
457
+ "origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
458
+ },
459
+ ```
460
+
461
+ More details can be found here:
462
+ [Detecting infrastructure as code files using a broker](https://docs.snyk.io/products/snyk-infrastructure-as-code/detecting-infrastructure-as-code-files-using-a-broker)
463
+
440
464
  ### Custom approved-listing filter
441
465
 
442
466
  The default approved-listing filter supports the bare minimum to operate on all repositories supported by Snyk. In order to customize the approved-listing filter, create the default one locally by installing `snyk-broker` and running `broker init [Git type]`. The created `accept.json` is the default filter for the chosen Git. Place the file in a separate folder such as `./private/accept.json`, and provide it to the docker container by mounting the folder and using the `ACCEPT` environment variable:
@@ -1098,25 +1098,25 @@
1098
1098
  {
1099
1099
  "//": "used to scan Dockerfile",
1100
1100
  "method": "GET",
1101
- "path": "/repos/:name/:repo/contents/:path*/Dockerfile*",
1101
+ "path": "/repos/:name/:repo/contents/:path*/*Dockerfile*",
1102
1102
  "origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
1103
1103
  },
1104
1104
  {
1105
1105
  "//": "used to scan Dockerfile",
1106
1106
  "method": "GET",
1107
- "path": "/repos/:name/:repo/contents/:path*%2FDockerfile*",
1107
+ "path": "/repos/:name/:repo/contents/:path*%2F*Dockerfile*",
1108
1108
  "origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
1109
1109
  },
1110
1110
  {
1111
1111
  "//": "used to scan Dockerfile",
1112
1112
  "method": "GET",
1113
- "path": "/:name/:repo/:path*/Dockerfile*",
1113
+ "path": "/:name/:repo/:path*/*Dockerfile*",
1114
1114
  "origin": "https://${GITHUB_TOKEN}@${GITHUB_RAW}"
1115
1115
  },
1116
1116
  {
1117
1117
  "//": "used to scan Dockerfile",
1118
1118
  "method": "GET",
1119
- "path": "/:name/:repo/:path*%2FDockerfile*",
1119
+ "path": "/:name/:repo/:path*%2F*Dockerfile*",
1120
1120
  "origin": "https://${GITHUB_TOKEN}@${GITHUB_RAW}"
1121
1121
  },
1122
1122
  {
@@ -1843,25 +1843,25 @@
1843
1843
  {
1844
1844
  "//": "used to update Dockerfile",
1845
1845
  "method": "PUT",
1846
- "path": "/repos/:name/:repo/contents/:path*/Dockerfile*",
1846
+ "path": "/repos/:name/:repo/contents/:path*/*Dockerfile*",
1847
1847
  "origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
1848
1848
  },
1849
1849
  {
1850
1850
  "//": "used to update Dockerfile",
1851
1851
  "method": "PUT",
1852
- "path": "/repos/:name/:repo/contents/:path*%2FDockerfile*",
1852
+ "path": "/repos/:name/:repo/contents/:path*%2F*Dockerfile*",
1853
1853
  "origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
1854
1854
  },
1855
1855
  {
1856
1856
  "//": "used to update Dockerfile",
1857
1857
  "method": "PUT",
1858
- "path": "/:name/:repo/:path*/Dockerfile*",
1858
+ "path": "/:name/:repo/:path*/*Dockerfile*",
1859
1859
  "origin": "https://${GITHUB_TOKEN}@${GITHUB_RAW}"
1860
1860
  },
1861
1861
  {
1862
1862
  "//": "used to update Dockerfile",
1863
1863
  "method": "PUT",
1864
- "path": "/:name/:repo/:path*%2FDockerfile*",
1864
+ "path": "/:name/:repo/:path*%2F*Dockerfile*",
1865
1865
  "origin": "https://${GITHUB_TOKEN}@${GITHUB_RAW}"
1866
1866
  },
1867
1867
  {
@@ -762,25 +762,25 @@
762
762
  {
763
763
  "//": "used to scan Dockerfile",
764
764
  "method": "GET",
765
- "path": "/repos/:name/:repo/contents/:path*/Dockerfile*",
765
+ "path": "/repos/:name/:repo/contents/:path*/*Dockerfile*",
766
766
  "origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
767
767
  },
768
768
  {
769
769
  "//": "used to scan Dockerfile",
770
770
  "method": "GET",
771
- "path": "/repos/:name/:repo/contents/:path*%2FDockerfile*",
771
+ "path": "/repos/:name/:repo/contents/:path*%2F*Dockerfile*",
772
772
  "origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
773
773
  },
774
774
  {
775
775
  "//": "used to scan Dockerfile",
776
776
  "method": "GET",
777
- "path": "/:name/:repo/:path*/Dockerfile*",
777
+ "path": "/:name/:repo/:path*/*Dockerfile*",
778
778
  "origin": "https://${GITHUB_TOKEN}@${GITHUB_RAW}"
779
779
  },
780
780
  {
781
781
  "//": "used to scan Dockerfile",
782
782
  "method": "GET",
783
- "path": "/:name/:repo/:path*%2FDockerfile*",
783
+ "path": "/:name/:repo/:path*%2F*Dockerfile*",
784
784
  "origin": "https://${GITHUB_TOKEN}@${GITHUB_RAW}"
785
785
  },
786
786
  {
@@ -1170,25 +1170,25 @@
1170
1170
  {
1171
1171
  "//": "used to update Dockerfile",
1172
1172
  "method": "PUT",
1173
- "path": "/repos/:name/:repo/contents/:path*/Dockerfile*",
1173
+ "path": "/repos/:name/:repo/contents/:path*/*Dockerfile*",
1174
1174
  "origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
1175
1175
  },
1176
1176
  {
1177
1177
  "//": "used to update Dockerfile",
1178
1178
  "method": "PUT",
1179
- "path": "/repos/:name/:repo/contents/:path*%2FDockerfile*",
1179
+ "path": "/repos/:name/:repo/contents/:path*%2F*Dockerfile*",
1180
1180
  "origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
1181
1181
  },
1182
1182
  {
1183
1183
  "//": "used to update Dockerfile",
1184
1184
  "method": "PUT",
1185
- "path": "/:name/:repo/:path*/Dockerfile*",
1185
+ "path": "/:name/:repo/:path*/*Dockerfile*",
1186
1186
  "origin": "https://${GITHUB_TOKEN}@${GITHUB_RAW}"
1187
1187
  },
1188
1188
  {
1189
1189
  "//": "used to update Dockerfile",
1190
1190
  "method": "PUT",
1191
- "path": "/:name/:repo/:path*%2FDockerfile*",
1191
+ "path": "/:name/:repo/:path*%2F*Dockerfile*",
1192
1192
  "origin": "https://${GITHUB_TOKEN}@${GITHUB_RAW}"
1193
1193
  },
1194
1194
  {
package/dist/package.json CHANGED
@@ -55,8 +55,8 @@
55
55
  "clarify": "^2.0.0",
56
56
  "dotenv": "^6.2.0",
57
57
  "ejson": "^2.2.0",
58
- "engine.io": "^5.1.1",
59
- "engine.io-client": "^5.1.2",
58
+ "engine.io": "^5.2.1",
59
+ "engine.io-client": "^5.2.0",
60
60
  "express": "^4.17.1",
61
61
  "express-prom-bundle": "^5.1.5",
62
62
  "js-yaml": "^3.13.1",
@@ -87,5 +87,5 @@
87
87
  },
88
88
  "homepage": "https://github.com/snyk/broker#readme",
89
89
  "snyk": true,
90
- "version": "4.117.0"
90
+ "version": "4.118.2"
91
91
  }
@@ -237,8 +237,8 @@
237
237
  "affectsGlobalScope": false
238
238
  },
239
239
  "../node_modules/@types/node/globals.d.ts": {
240
- "version": "21197c184a961ba77cca22c79a291a1c5392ed9b000dd65d8b4117f769f72c74",
241
- "signature": "21197c184a961ba77cca22c79a291a1c5392ed9b000dd65d8b4117f769f72c74",
240
+ "version": "47117739479a08186bedfa718870a3e92f8ee03d40296dfcd7ba6eed41db932b",
241
+ "signature": "47117739479a08186bedfa718870a3e92f8ee03d40296dfcd7ba6eed41db932b",
242
242
  "affectsGlobalScope": true
243
243
  },
244
244
  "../node_modules/@types/node/async_hooks.d.ts": {
@@ -252,8 +252,8 @@
252
252
  "affectsGlobalScope": false
253
253
  },
254
254
  "../node_modules/@types/node/child_process.d.ts": {
255
- "version": "bf0ae001d0797ccbb74b3a91d88d28022e809f47f97e1b2b44b3e343b114cc95",
256
- "signature": "bf0ae001d0797ccbb74b3a91d88d28022e809f47f97e1b2b44b3e343b114cc95",
255
+ "version": "78650a1b5800e82b6914260e9ca0fe9ea744e4333c3bec51b08f91525718d7fa",
256
+ "signature": "78650a1b5800e82b6914260e9ca0fe9ea744e4333c3bec51b08f91525718d7fa",
257
257
  "affectsGlobalScope": false
258
258
  },
259
259
  "../node_modules/@types/node/cluster.d.ts": {
@@ -302,13 +302,13 @@
302
302
  "affectsGlobalScope": false
303
303
  },
304
304
  "../node_modules/@types/node/http.d.ts": {
305
- "version": "64879fb86594f54077671388ff9ea86929303128d75a39b86dc46b568afd2f13",
306
- "signature": "64879fb86594f54077671388ff9ea86929303128d75a39b86dc46b568afd2f13",
305
+ "version": "8698062058cbdc84171bd576315a5eecab2bf46d7d034144653ae78864889683",
306
+ "signature": "8698062058cbdc84171bd576315a5eecab2bf46d7d034144653ae78864889683",
307
307
  "affectsGlobalScope": false
308
308
  },
309
309
  "../node_modules/@types/node/http2.d.ts": {
310
- "version": "318e46e7f7893360bf389abd8e33259a81a424038163a11493c4f2771e5645fe",
311
- "signature": "318e46e7f7893360bf389abd8e33259a81a424038163a11493c4f2771e5645fe",
310
+ "version": "b3e4f2772da66bac2144ca8cd63f70d211d2f970c93fcb789d03e8a046d47c93",
311
+ "signature": "b3e4f2772da66bac2144ca8cd63f70d211d2f970c93fcb789d03e8a046d47c93",
312
312
  "affectsGlobalScope": false
313
313
  },
314
314
  "../node_modules/@types/node/https.d.ts": {
@@ -327,8 +327,8 @@
327
327
  "affectsGlobalScope": false
328
328
  },
329
329
  "../node_modules/@types/node/net.d.ts": {
330
- "version": "64bac41b1ecd4578543db0c244addd3fa59ada4cedd6e761cdae0e2fc2e340f2",
331
- "signature": "64bac41b1ecd4578543db0c244addd3fa59ada4cedd6e761cdae0e2fc2e340f2",
330
+ "version": "f50f52f8fc2a5f8dfa594ff59a6273876b1734fe612e9f331ca9078fede3b304",
331
+ "signature": "f50f52f8fc2a5f8dfa594ff59a6273876b1734fe612e9f331ca9078fede3b304",
332
332
  "affectsGlobalScope": false
333
333
  },
334
334
  "../node_modules/@types/node/os.d.ts": {
@@ -372,8 +372,8 @@
372
372
  "affectsGlobalScope": false
373
373
  },
374
374
  "../node_modules/@types/node/stream.d.ts": {
375
- "version": "5019dc3aca34da91b66286bf0e906d229f02d835e68cd99e282cb70aba1b2f97",
376
- "signature": "5019dc3aca34da91b66286bf0e906d229f02d835e68cd99e282cb70aba1b2f97",
375
+ "version": "ece46d0e5702e9c269aa71b42d02c934c10d4d24545b1d8594a8115f23a9011f",
376
+ "signature": "ece46d0e5702e9c269aa71b42d02c934c10d4d24545b1d8594a8115f23a9011f",
377
377
  "affectsGlobalScope": false
378
378
  },
379
379
  "../node_modules/@types/node/string_decoder.d.ts": {
@@ -387,8 +387,8 @@
387
387
  "affectsGlobalScope": false
388
388
  },
389
389
  "../node_modules/@types/node/tls.d.ts": {
390
- "version": "e4cd1b0962728076cb75389e6afe280342da5258347210ae04665ba9095dc6c4",
391
- "signature": "e4cd1b0962728076cb75389e6afe280342da5258347210ae04665ba9095dc6c4",
390
+ "version": "8e721f0a95eb26a30228d571659d2db062213bfe066a97fff7967a0c8e1d56e4",
391
+ "signature": "8e721f0a95eb26a30228d571659d2db062213bfe066a97fff7967a0c8e1d56e4",
392
392
  "affectsGlobalScope": false
393
393
  },
394
394
  "../node_modules/@types/node/trace_events.d.ts": {
@@ -402,9 +402,9 @@
402
402
  "affectsGlobalScope": false
403
403
  },
404
404
  "../node_modules/@types/node/url.d.ts": {
405
- "version": "807bf667365224f909aed5111ac8527e8e148f37fc73c61f70c762b920fb62c7",
406
- "signature": "807bf667365224f909aed5111ac8527e8e148f37fc73c61f70c762b920fb62c7",
407
- "affectsGlobalScope": false
405
+ "version": "fd240b48ab1e78082c96c1faca62df02c0b8befa1fd98d031fab4f75c90feee6",
406
+ "signature": "fd240b48ab1e78082c96c1faca62df02c0b8befa1fd98d031fab4f75c90feee6",
407
+ "affectsGlobalScope": true
408
408
  },
409
409
  "../node_modules/@types/node/util.d.ts": {
410
410
  "version": "3d87bdaed72f86b91f99401e6e04729afbb5916064778cf324b3d9b51c3a6d91",
@@ -462,8 +462,8 @@
462
462
  "affectsGlobalScope": false
463
463
  },
464
464
  "../node_modules/@types/request/index.d.ts": {
465
- "version": "29a3410f55dec5f3b980c13fe549ecdaf6a895c561cbd5a9b5b8236e8f3806c1",
466
- "signature": "29a3410f55dec5f3b980c13fe549ecdaf6a895c561cbd5a9b5b8236e8f3806c1",
465
+ "version": "bf0b1297461549a0e32cd57dffb992c63d7c7134fe0f9e15d359abcc88dbd28c",
466
+ "signature": "bf0b1297461549a0e32cd57dffb992c63d7c7134fe0f9e15d359abcc88dbd28c",
467
467
  "affectsGlobalScope": false
468
468
  },
469
469
  "../lib/patch-https-request-for-proxying.js": {
@@ -472,7 +472,7 @@
472
472
  "affectsGlobalScope": true
473
473
  },
474
474
  "../package.json": {
475
- "version": "8118220f995e22e40db3aa594c49f9cfea370ac57948877465e530fa77d7f20b",
475
+ "version": "221c09e8be422b6738a067a17c48c30ccd6475a14914938f5d9e910f8452d41e",
476
476
  "signature": "239021c66489cbe324ac934597c505bd38e71473acd933fa8f185e12d13100aa",
477
477
  "affectsGlobalScope": true
478
478
  },
@@ -567,18 +567,18 @@
567
567
  "affectsGlobalScope": true
568
568
  },
569
569
  "../node_modules/@babel/types/lib/index.d.ts": {
570
- "version": "272c2dac4baaf7fdd2d7efeef0fa2547af54cc21883c5e138b8c4d1661697a54",
571
- "signature": "272c2dac4baaf7fdd2d7efeef0fa2547af54cc21883c5e138b8c4d1661697a54",
570
+ "version": "2ff9995137f3e5d68971388ec58af0c79721626323884513f9f5e2e996ac1fdd",
571
+ "signature": "2ff9995137f3e5d68971388ec58af0c79721626323884513f9f5e2e996ac1fdd",
572
572
  "affectsGlobalScope": false
573
573
  },
574
574
  "../node_modules/@types/babel__generator/index.d.ts": {
575
- "version": "8dfed5c91ad36e69e6da6b7e49be929d4e19666db2b651aa839c485170a2902c",
576
- "signature": "8dfed5c91ad36e69e6da6b7e49be929d4e19666db2b651aa839c485170a2902c",
575
+ "version": "cc957354aa3c94c9961ebf46282cfde1e81d107fc5785a61f62c67f1dd3ac2eb",
576
+ "signature": "cc957354aa3c94c9961ebf46282cfde1e81d107fc5785a61f62c67f1dd3ac2eb",
577
577
  "affectsGlobalScope": false
578
578
  },
579
579
  "../node_modules/@babel/parser/typings/babel-parser.d.ts": {
580
- "version": "64b867c61effed7b5bc0cc06b3d8eac23b067a3fba581fc7d3c292fa593e6a45",
581
- "signature": "64b867c61effed7b5bc0cc06b3d8eac23b067a3fba581fc7d3c292fa593e6a45",
580
+ "version": "1a7cc144992d79b062c22ac0309c6624dbb0d49bbddff7ea3b9daa0c17bcac0a",
581
+ "signature": "1a7cc144992d79b062c22ac0309c6624dbb0d49bbddff7ea3b9daa0c17bcac0a",
582
582
  "affectsGlobalScope": false
583
583
  },
584
584
  "../node_modules/@types/babel__template/index.d.ts": {
@@ -592,8 +592,8 @@
592
592
  "affectsGlobalScope": false
593
593
  },
594
594
  "../node_modules/@types/babel__core/index.d.ts": {
595
- "version": "80164ffebe1723a50e020a648e0623c026ff39be13c5cd45e6a82d0fcc06e2d0",
596
- "signature": "80164ffebe1723a50e020a648e0623c026ff39be13c5cd45e6a82d0fcc06e2d0",
595
+ "version": "dd5647a9ccccb2b074dca8a02b00948ac293091ebe73fdf2e6e98f718819f669",
596
+ "signature": "dd5647a9ccccb2b074dca8a02b00948ac293091ebe73fdf2e6e98f718819f669",
597
597
  "affectsGlobalScope": false
598
598
  },
599
599
  "../node_modules/@types/eslint-visitor-keys/index.d.ts": {
@@ -607,8 +607,8 @@
607
607
  "affectsGlobalScope": false
608
608
  },
609
609
  "../node_modules/@types/istanbul-lib-coverage/index.d.ts": {
610
- "version": "de18acda71730bac52f4b256ce7511bb56cc21f6f114c59c46782eff2f632857",
611
- "signature": "de18acda71730bac52f4b256ce7511bb56cc21f6f114c59c46782eff2f632857",
610
+ "version": "8b06ac3faeacb8484d84ddb44571d8f410697f98d7bfa86c0fda60373a9f5215",
611
+ "signature": "8b06ac3faeacb8484d84ddb44571d8f410697f98d7bfa86c0fda60373a9f5215",
612
612
  "affectsGlobalScope": false
613
613
  },
614
614
  "../node_modules/@types/istanbul-lib-report/index.d.ts": {
@@ -672,8 +672,8 @@
672
672
  "affectsGlobalScope": false
673
673
  },
674
674
  "../node_modules/@types/prettier/index.d.ts": {
675
- "version": "9d9e658d1d5b805562749ce383ef8c67ccb796394d8734d9c138788d7dab6ee3",
676
- "signature": "9d9e658d1d5b805562749ce383ef8c67ccb796394d8734d9c138788d7dab6ee3",
675
+ "version": "6209c901f30cc321f4b86800d11fad3d67e73a3308f19946b1bc642af0280298",
676
+ "signature": "6209c901f30cc321f4b86800d11fad3d67e73a3308f19946b1bc642af0280298",
677
677
  "affectsGlobalScope": false
678
678
  },
679
679
  "../node_modules/@types/stack-utils/index.d.ts": {
@@ -959,13 +959,15 @@
959
959
  "../node_modules/@types/node/events.d.ts"
960
960
  ],
961
961
  "../node_modules/@types/node/tls.d.ts": [
962
- "../node_modules/@types/node/net.d.ts"
962
+ "../node_modules/@types/node/net.d.ts",
963
+ "../node_modules/@types/node/stream.d.ts"
963
964
  ],
964
965
  "../node_modules/@types/node/tty.d.ts": [
965
966
  "../node_modules/@types/node/net.d.ts"
966
967
  ],
967
968
  "../node_modules/@types/node/url.d.ts": [
968
- "../node_modules/@types/node/querystring.d.ts"
969
+ "../node_modules/@types/node/querystring.d.ts",
970
+ "../node_modules/@types/node/url.d.ts"
969
971
  ],
970
972
  "../node_modules/@types/node/v8.d.ts": [
971
973
  "../node_modules/@types/node/stream.d.ts"
@@ -1182,13 +1184,15 @@
1182
1184
  "../node_modules/@types/node/events.d.ts"
1183
1185
  ],
1184
1186
  "../node_modules/@types/node/tls.d.ts": [
1185
- "../node_modules/@types/node/net.d.ts"
1187
+ "../node_modules/@types/node/net.d.ts",
1188
+ "../node_modules/@types/node/stream.d.ts"
1186
1189
  ],
1187
1190
  "../node_modules/@types/node/tty.d.ts": [
1188
1191
  "../node_modules/@types/node/net.d.ts"
1189
1192
  ],
1190
1193
  "../node_modules/@types/node/url.d.ts": [
1191
- "../node_modules/@types/node/querystring.d.ts"
1194
+ "../node_modules/@types/node/querystring.d.ts",
1195
+ "../node_modules/@types/node/url.d.ts"
1192
1196
  ],
1193
1197
  "../node_modules/@types/node/v8.d.ts": [
1194
1198
  "../node_modules/@types/node/stream.d.ts"
package/package.json CHANGED
@@ -55,8 +55,8 @@
55
55
  "clarify": "^2.0.0",
56
56
  "dotenv": "^6.2.0",
57
57
  "ejson": "^2.2.0",
58
- "engine.io": "^5.1.1",
59
- "engine.io-client": "^5.1.2",
58
+ "engine.io": "^5.2.1",
59
+ "engine.io-client": "^5.2.0",
60
60
  "express": "^4.17.1",
61
61
  "express-prom-bundle": "^5.1.5",
62
62
  "js-yaml": "^3.13.1",
@@ -87,5 +87,5 @@
87
87
  },
88
88
  "homepage": "https://github.com/snyk/broker#readme",
89
89
  "snyk": true,
90
- "version": "4.117.0"
90
+ "version": "4.118.2"
91
91
  }