@netlify/build 33.0.0 → 33.1.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/lib/plugins/compatibility.d.ts +1 -1
- package/lib/plugins/manifest/main.d.ts +1 -1
- package/lib/plugins/options.d.ts +1 -1
- package/lib/plugins/plugin_conditions.d.ts +1 -1
- package/lib/plugins_core/secrets_scanning/secret_prefixes.d.ts +5 -0
- package/lib/plugins_core/secrets_scanning/secret_prefixes.js +35 -0
- package/lib/plugins_core/secrets_scanning/utils.js +1 -3
- package/lib/utils/json.d.ts +1 -1
- package/lib/utils/package.d.ts +1 -1
- package/lib/utils/package.js +1 -1
- package/package.json +13 -13
package/lib/plugins/options.d.ts
CHANGED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Likely secret prefixes used for enhanced secret scanning.
|
|
3
|
+
* Note: string comparison is case-insensitive so we use all lowercase here.
|
|
4
|
+
*/
|
|
5
|
+
const AWS_PREFIXES = ['aws_', 'asia', 'akia', 'aida', 'ar0a', 'apka', 'abia', 'asca'];
|
|
6
|
+
const SLACK_PREFIXES = ['xoxb-', 'xwfp-', 'xoxb-', 'xoxp-', 'xapp-'];
|
|
7
|
+
const GCP_PREFIXES = ['aiza', 'ya29'];
|
|
8
|
+
const NETLIFY_PREFIXES = ['nf_'];
|
|
9
|
+
const GITHUB_PREFIXES = ['ghp_', 'gho_', 'ghu_', 'ghs_', 'ghr_', 'github_pat_'];
|
|
10
|
+
const SHOPIFY_PREFIXES = ['shpss_', 'shpat_', 'shpca_', 'shppa_'];
|
|
11
|
+
const SQUARE_PREFIXES = ['sq0atp-'];
|
|
12
|
+
const OTHER_COMMON_PREFIXES = [
|
|
13
|
+
'pk_',
|
|
14
|
+
'sk_',
|
|
15
|
+
'pat_',
|
|
16
|
+
'sk-',
|
|
17
|
+
'db_',
|
|
18
|
+
'api_',
|
|
19
|
+
'secret_',
|
|
20
|
+
'auth_',
|
|
21
|
+
'access_',
|
|
22
|
+
'twilio_',
|
|
23
|
+
'-----begin',
|
|
24
|
+
'ls0t',
|
|
25
|
+
];
|
|
26
|
+
export const LIKELY_SECRET_PREFIXES = [
|
|
27
|
+
...AWS_PREFIXES,
|
|
28
|
+
...SLACK_PREFIXES,
|
|
29
|
+
...GCP_PREFIXES,
|
|
30
|
+
...NETLIFY_PREFIXES,
|
|
31
|
+
...GITHUB_PREFIXES,
|
|
32
|
+
...SHOPIFY_PREFIXES,
|
|
33
|
+
...SQUARE_PREFIXES,
|
|
34
|
+
...OTHER_COMMON_PREFIXES,
|
|
35
|
+
];
|
|
@@ -3,6 +3,7 @@ import path from 'node:path';
|
|
|
3
3
|
import { createInterface } from 'node:readline';
|
|
4
4
|
import { fdir } from 'fdir';
|
|
5
5
|
import { minimatch } from 'minimatch';
|
|
6
|
+
import { LIKELY_SECRET_PREFIXES } from './secret_prefixes.js';
|
|
6
7
|
/**
|
|
7
8
|
* Determine if the user disabled scanning via env var
|
|
8
9
|
* @param env current envars
|
|
@@ -85,9 +86,6 @@ export function getNonSecretKeysToScanFor(env, secretKeys) {
|
|
|
85
86
|
});
|
|
86
87
|
return nonSecretKeysToScanFor;
|
|
87
88
|
}
|
|
88
|
-
const AWS_PREFIXES = ['aws_', 'asia'];
|
|
89
|
-
const SLACK_PREFIXES = ['xoxb-', 'xwfp-', 'xoxb-', 'xoxp-', 'xapp-'];
|
|
90
|
-
const LIKELY_SECRET_PREFIXES = ['pk_', 'sk_', 'pat_', 'db_', 'github_pat_', ...AWS_PREFIXES, ...SLACK_PREFIXES];
|
|
91
89
|
const LIKELY_SECRET_MIN_LENGTH = 16;
|
|
92
90
|
/**
|
|
93
91
|
* When the enhanced secret scan is run, we check any env vars _not_ marked as secret if they are highly likely to be secret values.
|
package/lib/utils/json.d.ts
CHANGED
package/lib/utils/package.d.ts
CHANGED
package/lib/utils/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/build",
|
|
3
|
-
"version": "33.
|
|
3
|
+
"version": "33.1.0",
|
|
4
4
|
"description": "Netlify build module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./lib/index.js",
|
|
@@ -69,15 +69,15 @@
|
|
|
69
69
|
"@bugsnag/js": "^7.0.0",
|
|
70
70
|
"@netlify/blobs": "^8.2.0",
|
|
71
71
|
"@netlify/cache-utils": "^6.0.0",
|
|
72
|
-
"@netlify/config": "^23.0.
|
|
73
|
-
"@netlify/edge-bundler": "14.0.
|
|
74
|
-
"@netlify/framework-info": "^10.0.
|
|
75
|
-
"@netlify/functions-utils": "^6.0.
|
|
72
|
+
"@netlify/config": "^23.0.1",
|
|
73
|
+
"@netlify/edge-bundler": "14.0.2",
|
|
74
|
+
"@netlify/framework-info": "^10.0.1",
|
|
75
|
+
"@netlify/functions-utils": "^6.0.2",
|
|
76
76
|
"@netlify/git-utils": "^6.0.0",
|
|
77
77
|
"@netlify/opentelemetry-utils": "^2.0.0",
|
|
78
78
|
"@netlify/plugins-list": "^6.80.0",
|
|
79
79
|
"@netlify/run-utils": "^6.0.0",
|
|
80
|
-
"@netlify/zip-it-and-ship-it": "
|
|
80
|
+
"@netlify/zip-it-and-ship-it": "12.0.0",
|
|
81
81
|
"@sindresorhus/slugify": "^2.0.0",
|
|
82
82
|
"ansi-escapes": "^6.0.0",
|
|
83
83
|
"chalk": "^5.0.0",
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"pkg-dir": "^7.0.0",
|
|
111
111
|
"pretty-ms": "^8.0.0",
|
|
112
112
|
"ps-list": "^8.0.0",
|
|
113
|
-
"read-
|
|
113
|
+
"read-package-up": "^11.0.0",
|
|
114
114
|
"readdirp": "^3.4.0",
|
|
115
115
|
"resolve": "^2.0.0-next.5",
|
|
116
116
|
"rfdc": "^1.3.0",
|
|
@@ -118,11 +118,11 @@
|
|
|
118
118
|
"semver": "^7.3.8",
|
|
119
119
|
"string-width": "^5.0.0",
|
|
120
120
|
"strip-ansi": "^7.0.0",
|
|
121
|
-
"supports-color": "^
|
|
121
|
+
"supports-color": "^10.0.0",
|
|
122
122
|
"terminal-link": "^3.0.0",
|
|
123
123
|
"ts-node": "^10.9.1",
|
|
124
124
|
"typescript": "^5.0.0",
|
|
125
|
-
"uuid": "^
|
|
125
|
+
"uuid": "^11.0.0",
|
|
126
126
|
"yargs": "^17.6.0"
|
|
127
127
|
},
|
|
128
128
|
"devDependencies": {
|
|
@@ -132,16 +132,16 @@
|
|
|
132
132
|
"@types/node": "^14.18.53",
|
|
133
133
|
"atob": "^2.1.2",
|
|
134
134
|
"ava": "^4.0.0",
|
|
135
|
-
"c8": "^
|
|
135
|
+
"c8": "^10.0.0",
|
|
136
136
|
"copyfiles": "^2.4.1",
|
|
137
137
|
"cpy": "^9.0.0",
|
|
138
138
|
"get-node": "^12.0.0",
|
|
139
139
|
"get-port": "^6.0.0",
|
|
140
|
-
"has-ansi": "^
|
|
140
|
+
"has-ansi": "^6.0.0",
|
|
141
141
|
"moize": "^6.0.0",
|
|
142
142
|
"npm-run-all2": "^5.0.0",
|
|
143
143
|
"process-exists": "^5.0.0",
|
|
144
|
-
"sinon": "^
|
|
144
|
+
"sinon": "^20.0.0",
|
|
145
145
|
"tmp-promise": "^3.0.2",
|
|
146
146
|
"tsd": "^0.32.0",
|
|
147
147
|
"vitest": "^0.34.0",
|
|
@@ -159,5 +159,5 @@
|
|
|
159
159
|
"engines": {
|
|
160
160
|
"node": ">=18.14.0"
|
|
161
161
|
},
|
|
162
|
-
"gitHead": "
|
|
162
|
+
"gitHead": "11241b50b724a2f229614e74dd22c86c4ca8757d"
|
|
163
163
|
}
|