@checkstack/common 0.6.1 → 0.6.3
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/CHANGELOG.md +42 -0
- package/package.json +3 -3
- package/src/types.ts +10 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
# @checkstack/common
|
|
2
2
|
|
|
3
|
+
## 0.6.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 0ebbe56: Security Vulnerability Remediation completed:
|
|
8
|
+
- Refactored core authorization to Fail-Closed architecture with secure defaults.
|
|
9
|
+
- Implemented `assertTeamManagementAccess` to resolve BOLA in Teams Management.
|
|
10
|
+
- Protected internal S2S capabilities via explicit wildcard `serviceScope` definitions.
|
|
11
|
+
- Disarmed OS Command Injection in DiskCollector via strict regex validation and bash escaping.
|
|
12
|
+
- Re-architected inline script processing executing scripts in sandboxed Web Worker contexts.
|
|
13
|
+
- Isolated subprocess environment scopes in PingStrategy limiting variable leakage.
|
|
14
|
+
- Enforced strict token/API Key parsing with URLSearchParams checking.
|
|
15
|
+
- Explicitly fail-fast on missing DATABASE_URL configuration across independent backend clusters.
|
|
16
|
+
- Activated strict HTTP Security Headers (HSTS, CSP, X-Frame-Options) across the API automatically.
|
|
17
|
+
|
|
18
|
+
## 0.6.2
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- f676e11: Add script execution support and migrate CodeEditor to Monaco
|
|
23
|
+
|
|
24
|
+
**Integration providers** (`@checkstack/integration-script-backend`):
|
|
25
|
+
|
|
26
|
+
- **Script** - Execute TypeScript/JavaScript with context object
|
|
27
|
+
- **Bash** - Execute shell scripts with environment variables ($EVENT*ID, $PAYLOAD*\*)
|
|
28
|
+
|
|
29
|
+
**Health check collectors** (`@checkstack/healthcheck-script-backend`):
|
|
30
|
+
|
|
31
|
+
- **InlineScriptCollector** - Run TypeScript directly for health checks
|
|
32
|
+
- **ExecuteCollector** - Bash syntax highlighting for command field
|
|
33
|
+
|
|
34
|
+
**CodeEditor migration to Monaco** (`@checkstack/ui`):
|
|
35
|
+
|
|
36
|
+
- Replaced CodeMirror with Monaco Editor (VS Code's editor)
|
|
37
|
+
- Full TypeScript/JavaScript IntelliSense with custom type definitions
|
|
38
|
+
- Added `generateTypeDefinitions()` for JSON Schema → TypeScript conversion
|
|
39
|
+
- Removed all CodeMirror dependencies
|
|
40
|
+
|
|
41
|
+
**Type updates** (`@checkstack/common`):
|
|
42
|
+
|
|
43
|
+
- Added `javascript`, `typescript`, and `bash` to `EditorType` union
|
|
44
|
+
|
|
3
45
|
## 0.6.1
|
|
4
46
|
|
|
5
47
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@checkstack/common",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"typescript": "^5.7.2",
|
|
21
|
-
"@checkstack/tsconfig": "0.0.
|
|
22
|
-
"@checkstack/scripts": "0.1.
|
|
21
|
+
"@checkstack/tsconfig": "0.0.3",
|
|
22
|
+
"@checkstack/scripts": "0.1.1"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
25
|
"typecheck": "tsc --noEmit",
|
package/src/types.ts
CHANGED
|
@@ -19,6 +19,9 @@ import type { AccessRule, InstanceAccessConfig } from "./access-utils";
|
|
|
19
19
|
* - "xml": CodeEditor with XML syntax highlighting
|
|
20
20
|
* - "markdown": CodeEditor with Markdown syntax highlighting
|
|
21
21
|
* - "formdata": Key/value pair editor (URL-encoded)
|
|
22
|
+
* - "javascript": CodeEditor with JavaScript syntax highlighting and autocomplete
|
|
23
|
+
* - "typescript": CodeEditor with TypeScript syntax highlighting and autocomplete
|
|
24
|
+
* - "shell": CodeEditor with Shell syntax highlighting
|
|
22
25
|
*/
|
|
23
26
|
export type EditorType =
|
|
24
27
|
| "none"
|
|
@@ -27,7 +30,10 @@ export type EditorType =
|
|
|
27
30
|
| "yaml"
|
|
28
31
|
| "xml"
|
|
29
32
|
| "markdown"
|
|
30
|
-
| "formdata"
|
|
33
|
+
| "formdata"
|
|
34
|
+
| "javascript"
|
|
35
|
+
| "typescript"
|
|
36
|
+
| "shell";
|
|
31
37
|
|
|
32
38
|
/**
|
|
33
39
|
* Qualifies a resource type with the plugin namespace.
|
|
@@ -120,4 +126,7 @@ export interface ProcedureMetadata {
|
|
|
120
126
|
* ```
|
|
121
127
|
*/
|
|
122
128
|
instanceAccess?: InstanceAccessConfig;
|
|
129
|
+
|
|
130
|
+
/** Restrict service-to-service calls to specific plugin IDs */
|
|
131
|
+
serviceScope?: string[];
|
|
123
132
|
}
|