@silmaril-security/firewall-plugin 1.2.9 → 1.2.10
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/CLAUDE.md +5 -1
- package/NOTICE +17 -0
- package/README.md +16 -7
- package/dist/index.js +12 -1
- package/package.json +2 -2
package/CLAUDE.md
CHANGED
|
@@ -44,6 +44,10 @@ Source file: `index.ts`
|
|
|
44
44
|
|
|
45
45
|
OpenClaw runtime entrypoint: `dist/index.js`
|
|
46
46
|
|
|
47
|
+
Package and runtime attribution are prepared as `1.2.10` with
|
|
48
|
+
`@silmaril-security/sdk` `0.8.2`; the published install remains `1.2.9`.
|
|
49
|
+
Local archive examples below use the source package version.
|
|
50
|
+
|
|
47
51
|
Runtime behavior:
|
|
48
52
|
|
|
49
53
|
- the manifest declares Gateway startup activation for OpenClaw hook capability
|
|
@@ -246,7 +250,7 @@ for direct source loading or the CLI install path is unavailable.
|
|
|
246
250
|
|
|
247
251
|
```sh
|
|
248
252
|
npm pack
|
|
249
|
-
openclaw plugins install ./silmaril-security-firewall-plugin-1.2.
|
|
253
|
+
openclaw plugins install ./silmaril-security-firewall-plugin-1.2.10.tgz
|
|
250
254
|
openclaw plugins enable firewall-plugin
|
|
251
255
|
```
|
|
252
256
|
|
package/NOTICE
CHANGED
|
@@ -2,3 +2,20 @@ Silmaril OpenClaw Firewall Plugin
|
|
|
2
2
|
Copyright 2026 Silmaril Security Inc.
|
|
3
3
|
|
|
4
4
|
This product includes software developed by Silmaril Security Inc.
|
|
5
|
+
|
|
6
|
+
The package depends on @silmaril-security/sdk 0.8.2, installed separately by
|
|
7
|
+
npm. That dependency is distributed under the following license included in
|
|
8
|
+
its published package:
|
|
9
|
+
|
|
10
|
+
PROPRIETARY AND CONFIDENTIAL
|
|
11
|
+
|
|
12
|
+
Copyright (c) 2024-2025 Silmaril Security Inc. All rights reserved.
|
|
13
|
+
|
|
14
|
+
This software and its documentation are proprietary to Silmaril Security Inc.
|
|
15
|
+
Unauthorized copying, distribution, modification, or use of this software,
|
|
16
|
+
in whole or in part, is strictly prohibited without the express written
|
|
17
|
+
permission of Silmaril Security Inc.
|
|
18
|
+
|
|
19
|
+
This software is provided "AS IS" without warranty of any kind, express or
|
|
20
|
+
implied, including but not limited to the warranties of merchantability,
|
|
21
|
+
fitness for a particular purpose, and noninfringement.
|
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ agent-visible context.
|
|
|
14
14
|
|
|
15
15
|
The package declares OpenClaw plugin API `>=2026.5.28` and minimum gateway
|
|
16
16
|
version `2026.5.28` (`package.json` `openclaw.compat`). The shipped classifier
|
|
17
|
-
dependency is `@silmaril-security/sdk` `0.
|
|
17
|
+
dependency pin in this source checkout is `@silmaril-security/sdk` `0.8.2`. The manifest declares startup
|
|
18
18
|
activation for hook capability loading, and the runtime entry registers typed
|
|
19
19
|
Gateway hooks with `api.on(...)`.
|
|
20
20
|
|
|
@@ -39,7 +39,7 @@ Hook registration is unconditional, so OpenClaw can discover and invoke the
|
|
|
39
39
|
Gateway hooks even before classifier settings are validated. Classifier config
|
|
40
40
|
is resolved inside each hook call.
|
|
41
41
|
|
|
42
|
-
Enforceable hooks await `@silmaril-security/sdk` `0.
|
|
42
|
+
Enforceable hooks await `@silmaril-security/sdk` `0.8.2` with a plugin-owned
|
|
43
43
|
timeout. `before_prompt_build` and `before_agent_run` share one prompt
|
|
44
44
|
classification for five seconds when both callbacks provide the same stable
|
|
45
45
|
event ID and unchanged content. ID-less callbacks classify independently. Warn
|
|
@@ -130,6 +130,15 @@ outside that range. That value bounds each classifier request.
|
|
|
130
130
|
|
|
131
131
|
The Silmaril endpoint app supplies `endpointId` as a canonical UUID v4. Every classifier request carries plugin-owned `metadata.silmaril.provenance` with `schema_version` `1` and harness `openclaw`. An omitted or invalid endpoint ID omits `endpoint_id`. On macOS, provenance can also include the local computer name. Classification does not wait for that lookup, and other platforms omit it.
|
|
132
132
|
|
|
133
|
+
Classifier calls identify the fixed OpenClaw agent through the SDK's typed
|
|
134
|
+
governance context. Tool-call and tool-response hooks with a native `toolName`
|
|
135
|
+
use a canonical `tool` resource; other classified hooks use the fixed
|
|
136
|
+
`openclaw` agent resource. SDK 0.8.2 serializes that resource at the request's
|
|
137
|
+
top-level `resource` field and repeats the same attribution under
|
|
138
|
+
`metadata.silmaril.governance`. A tool name remains a flat `tool` identity.
|
|
139
|
+
The plugin does not infer an MCP server, emit an `mcp_tool` resource, or treat
|
|
140
|
+
ordinary metadata as authenticated principal or resource identity.
|
|
141
|
+
|
|
133
142
|
Each hook invocation classifies the current event text at most once. The plugin reads current prompt, tool, message, and lifecycle fields and does not read a transcript `messages` array. It sets `metadata.conversationId` from the child session, session, session key, or parent session, in that order. The Firewall backend owns the incremental sequence for that conversation id.
|
|
134
143
|
|
|
135
144
|
Omit `mode` to use the mode on the classifier response, or set it to `shadow`,
|
|
@@ -182,9 +191,11 @@ not represented as independently verified prevention.
|
|
|
182
191
|
|
|
183
192
|
## Install
|
|
184
193
|
|
|
185
|
-
|
|
194
|
+
The immutable published install remains `1.2.9`. This source checkout is
|
|
195
|
+
prepared as `1.2.10` with SDK `0.8.2` and can be validated through the source
|
|
196
|
+
or locally packed archive flows below.
|
|
186
197
|
|
|
187
|
-
Install
|
|
198
|
+
Install the published version:
|
|
188
199
|
|
|
189
200
|
```sh
|
|
190
201
|
openclaw plugins install @silmaril-security/firewall-plugin@1.2.9
|
|
@@ -192,8 +203,6 @@ openclaw plugins enable firewall-plugin
|
|
|
192
203
|
openclaw gateway restart
|
|
193
204
|
```
|
|
194
205
|
|
|
195
|
-
Publishing this version requires a new immutable tag `v1.2.9` and the normal release workflow. Never replace an existing package version or tag.
|
|
196
|
-
|
|
197
206
|
This repository also supports direct source loading and two local CLI install styles.
|
|
198
207
|
|
|
199
208
|
OpenClaw does not automatically discover or pull this repository by plugin id.
|
|
@@ -233,7 +242,7 @@ generated tarball:
|
|
|
233
242
|
npm install
|
|
234
243
|
npm run build
|
|
235
244
|
npm pack
|
|
236
|
-
openclaw plugins install ./silmaril-security-firewall-plugin-1.2.
|
|
245
|
+
openclaw plugins install ./silmaril-security-firewall-plugin-1.2.10.tgz
|
|
237
246
|
openclaw plugins enable firewall-plugin
|
|
238
247
|
openclaw gateway restart
|
|
239
248
|
```
|
package/dist/index.js
CHANGED
|
@@ -225,7 +225,8 @@ function omitUndefined(record) {
|
|
|
225
225
|
|
|
226
226
|
// index.ts
|
|
227
227
|
var PLUGIN_ID = "firewall-plugin";
|
|
228
|
-
var PLUGIN_VERSION = "1.2.
|
|
228
|
+
var PLUGIN_VERSION = "1.2.10";
|
|
229
|
+
var OPENCLAW_AGENT_ID = "openclaw";
|
|
229
230
|
var LOCAL_EVIDENCE_POLICY_VERSION = "openclaw-plugin-policy-v1";
|
|
230
231
|
var DEFAULT_CLASSIFY_TIMEOUT_MS = 2500;
|
|
231
232
|
var MIN_CLASSIFY_TIMEOUT_MS = 250;
|
|
@@ -662,6 +663,7 @@ async function classifyHookPayload(firewall, text, meta, endpointId) {
|
|
|
662
663
|
hook: meta.hook,
|
|
663
664
|
toolName: meta.toolName,
|
|
664
665
|
requestId: buildStableRequestId(meta, text),
|
|
666
|
+
governance: buildGovernanceContext(meta),
|
|
665
667
|
metadata: withProvenance({
|
|
666
668
|
eventType: meta.hookName,
|
|
667
669
|
conversationId: meta.conversationId,
|
|
@@ -675,6 +677,14 @@ async function classifyHookPayload(firewall, text, meta, endpointId) {
|
|
|
675
677
|
}));
|
|
676
678
|
return result;
|
|
677
679
|
}
|
|
680
|
+
function buildGovernanceContext(meta) {
|
|
681
|
+
const isToolBoundary = meta.hook === HookLabel.TOOL_CALL || meta.hook === HookLabel.TOOL_RESPONSE;
|
|
682
|
+
const resource = isToolBoundary && meta.toolName ? { kind: "tool", id: meta.toolName } : { kind: "agent", id: OPENCLAW_AGENT_ID };
|
|
683
|
+
return {
|
|
684
|
+
agent: OPENCLAW_AGENT_ID,
|
|
685
|
+
resource
|
|
686
|
+
};
|
|
687
|
+
}
|
|
678
688
|
async function classifyOnce(firewall, text, meta, cache, endpointId, now = Date.now()) {
|
|
679
689
|
const key = outboundDedupeKey(meta, text);
|
|
680
690
|
pruneOutboundCache(cache, now);
|
|
@@ -1307,6 +1317,7 @@ var __testInternals = {
|
|
|
1307
1317
|
readBoolean,
|
|
1308
1318
|
readMode,
|
|
1309
1319
|
classifyHookPayload,
|
|
1320
|
+
buildGovernanceContext,
|
|
1310
1321
|
classifyOnce,
|
|
1311
1322
|
classifyOutboundOnce: classifyOnce,
|
|
1312
1323
|
outboundDedupeKey,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silmaril-security/firewall-plugin",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.10",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"CLAUDE.md"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@silmaril-security/sdk": "0.
|
|
27
|
+
"@silmaril-security/sdk": "0.8.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"esbuild": "0.28.0",
|