@envseal/detector 0.1.0 → 0.1.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/dist/patterns.js +5 -0
- package/package.json +11 -2
package/dist/patterns.js
CHANGED
|
@@ -5,6 +5,11 @@ function escapeRegExp(s) {
|
|
|
5
5
|
const SW = '[A-Za-z0-9_\\-]';
|
|
6
6
|
const HAND_PATTERNS = [
|
|
7
7
|
{ id: 'openai-project-key', label: 'OpenAI project API key', providerId: 'openai', source: `sk-proj-${SW}{20,}` },
|
|
8
|
+
// F5: legacy OpenAI live keys (`sk-live-…`) and bare `sk-` runs were not
|
|
9
|
+
// covered — the W4 battle-test pasted `KEY=sk-live-w4bt…` straight through
|
|
10
|
+
// the user-prompt redactor. Same shape family as sk-proj-, so same guard.
|
|
11
|
+
{ id: 'openai-legacy-key', label: 'OpenAI API key', providerId: 'openai', source: `sk-live-${SW}{20,}` },
|
|
12
|
+
{ id: 'openai-generic-key', label: 'possible OpenAI API key', providerId: 'openai', source: `sk-(?!proj-|live-)[A-Za-z0-9]{20,}` },
|
|
8
13
|
{ id: 'anthropic-api03', label: 'Anthropic API key', providerId: 'anthropic', source: `sk-ant-api03-${SW}{20,}` },
|
|
9
14
|
{ id: 'github-pat', label: 'GitHub personal access token', providerId: 'github', source: `ghp_${SW}{30,}` },
|
|
10
15
|
{ id: 'github-oauth', label: 'GitHub OAuth access token', providerId: 'github', source: `gho_${SW}{30,}` },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@envseal/detector",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -20,7 +20,16 @@
|
|
|
20
20
|
"provenance": true
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@envseal/registry": "0.1.
|
|
23
|
+
"@envseal/registry": "0.1.2"
|
|
24
|
+
},
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "git+https://github.com/NDilanka/envseal.git",
|
|
28
|
+
"directory": "detector/package.json"
|
|
29
|
+
},
|
|
30
|
+
"homepage": "https://github.com/NDilanka/envseal#readme",
|
|
31
|
+
"bugs": {
|
|
32
|
+
"url": "https://github.com/NDilanka/envseal/issues"
|
|
24
33
|
},
|
|
25
34
|
"scripts": {
|
|
26
35
|
"build": "tsc -p tsconfig.json",
|