@conarium-ai/core 0.2.2 → 0.2.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 +40 -1
- package/README.md +3 -3
- package/dist/config.d.ts +72 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +14 -0
- package/dist/config.js.map +1 -1
- package/dist/http.js +3 -1
- package/dist/http.js.map +1 -1
- package/dist/types.d.ts +6 -5
- package/dist/types.d.ts.map +1 -1
- package/docs/RECEIPT-SPEC.md +7 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,46 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
-
Nothing yet — 0.2.
|
|
5
|
+
Nothing yet — 0.2.3 is the current cut.
|
|
6
|
+
|
|
7
|
+
## 0.2.3 — 2026-08-13
|
|
8
|
+
|
|
9
|
+
The published 0.2.2 tarball rejected the `policy.profiles` config its own
|
|
10
|
+
README documented. Same class of defect as 0.2.2 itself (the README said IBAN;
|
|
11
|
+
the tarball did not).
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- **`loadConfig()` rejected `policy.profiles` / `policy.actorProfiles`.**
|
|
16
|
+
`GovernancePolicySchema` was `.strict()` and those keys were not on it, so a
|
|
17
|
+
config copied from the README's "Per-person masking profiles" example threw
|
|
18
|
+
`Unrecognized key` and the gateway would not boot. The class honoured the
|
|
19
|
+
fields when constructed by hand; the loader did not. The schema now keeps
|
|
20
|
+
`profiles`, `actorProfiles` and `maskLabelledNames`. A profile may still
|
|
21
|
+
carry only `maskColumns`, `maxRows` and `maskLabelledNames`; an
|
|
22
|
+
`allowTables` key on a profile is still rejected — a profile cannot widen
|
|
23
|
+
reach.
|
|
24
|
+
- **`types.ts` JSDoc said an empty allow-list meant "allow all".** The code has
|
|
25
|
+
been default-deny since 2026-07-06. The comments now match: missing or empty
|
|
26
|
+
`allowTables` / `allowConnectors` denies everything.
|
|
27
|
+
- **Stale receipt wording.** README labelled receipts `(v0.1)` while the
|
|
28
|
+
schema string is `conarium-receipt/0.3`. RECEIPT-SPEC said a block-explorer
|
|
29
|
+
network error was exit 14; calendar unreachability is already exit 15, and
|
|
30
|
+
this repository has no separate explorer client. Exit codes were not
|
|
31
|
+
changed.
|
|
32
|
+
|
|
33
|
+
### Added
|
|
34
|
+
|
|
35
|
+
- **The remote HTTP gateway is started as a real process in CI**
|
|
36
|
+
(`test/http_gateway.e2e.mjs`). The session-owner unit test still calls the
|
|
37
|
+
handler with a fake `req`. The new test binds port 0, speaks Streamable HTTP
|
|
38
|
+
over `fetch`, parses SSE as frames, and locks the restart regression
|
|
39
|
+
(unknown `Mcp-Session-Id` → 404 + JSON-RPC `-32004`, not 400 +
|
|
40
|
+
`text/plain`). Happy path: initialize → session → `tools/list` → masked
|
|
41
|
+
`tools/call` → receipt file 0→1 → `conarium-verify` exit 0. Error bodies
|
|
42
|
+
for 401 / 403 / 404 / 429 / 400 / 500 are asserted `application/json`.
|
|
43
|
+
**Not deployed to Hetzner.** The test file is not in the npm tarball
|
|
44
|
+
(`test/` is outside the `files` allowlist).
|
|
6
45
|
|
|
7
46
|
## 0.2.2 — 2026-08-13
|
|
8
47
|
|
package/README.md
CHANGED
|
@@ -27,11 +27,11 @@ The AI gets the context it needs to write code, but never sees your secrets.
|
|
|
27
27
|
|
|
28
28
|
### Key Features
|
|
29
29
|
|
|
30
|
-
- **Inline PII Masking:** Emails, IDs, cards, and secrets are redacted in the response stream (`[
|
|
30
|
+
- **Inline PII Masking:** Emails, IDs, cards, and secrets are redacted in the response stream (`[MASKED_PII]` / `[MASKED_SECRET]`) before the model sees a single character.
|
|
31
31
|
- **Allow / Deny Lists:** Whitelist what AI can access. Your `secrets` and `financials` tables stay invisible.
|
|
32
32
|
- **Row Caps:** Hard per-query limits. Prevent the silent exfiltration of millions of rows.
|
|
33
33
|
- **Immutable Audit Ledger:** Every access is logged (who, what, when, rows, decision). Hash-chained and PII-safe — no raw PII ever written to the logs.
|
|
34
|
-
- **Verifiable Receipts
|
|
34
|
+
- **Verifiable Receipts:** Ed25519-signed, independently verifiable receipts — see below.
|
|
35
35
|
- **Per-person masking profiles:** what to mask for an AI agent is not what to mask for the data controller. A named profile relaxes masking for one identified person, and the receipt records which profile applied — see below.
|
|
36
36
|
- **Coverage & Reconciliation:** a signed coverage declaration over the receipt chain (`conarium-coverage`), plus two-sided reconciliation against the database's own query counters (`conarium-reconcile`) — DB-recorded activity that no receipt covers is surfaced instead of staying invisible.
|
|
37
37
|
- **100% Self-Hosted:** Runs entirely on your infrastructure. Your data never crosses your perimeter. The gateway makes exactly one outbound request that is not yours: at startup it asks the public npm registry whether a newer version exists, and prints one line to stderr if so. It sends nothing about you — no identifier, no config, no counts — and a remote gateway nobody looks at for weeks is the reason it exists at all. Disable it with `CONARIUM_NO_UPDATE_CHECK=1`, or point it at your internal mirror with `CONARIUM_NPM_REGISTRY`. It has a 2-second timeout and never blocks or fails startup. We list it here because a governance product that makes an undisclosed outbound connection has already lost the argument.
|
|
@@ -378,7 +378,7 @@ Control access using a simple `conarium.json` policy file:
|
|
|
378
378
|
}
|
|
379
379
|
```
|
|
380
380
|
|
|
381
|
-
Anything not in `allowTables` is denied by default; matched `maskColumns` are redacted to `[
|
|
381
|
+
Anything not in `allowTables` is denied by default; matched `maskColumns` are redacted to `[MASKED_PII]` before the data ever reaches the model.
|
|
382
382
|
|
|
383
383
|
> **Connectors are fail-closed.** `allowConnectors` is a strict allow-list:
|
|
384
384
|
> if it is missing or empty, **no** connector is permitted (previously an empty
|
package/dist/config.d.ts
CHANGED
|
@@ -5,28 +5,57 @@ export declare const GovernancePolicySchema: z.ZodObject<{
|
|
|
5
5
|
denyTables: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
6
6
|
maskColumns: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
7
7
|
maxRows: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
maskLabelledNames: z.ZodOptional<z.ZodBoolean>;
|
|
8
9
|
allowTools: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
9
10
|
denyTools: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
10
11
|
allowConnectors: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
11
12
|
denyConnectors: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
13
|
+
profiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
14
|
+
maskColumns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
15
|
+
maxRows: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
maskLabelledNames: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
}, "strict", z.ZodTypeAny, {
|
|
18
|
+
maskColumns?: string[] | undefined;
|
|
19
|
+
maxRows?: number | undefined;
|
|
20
|
+
maskLabelledNames?: boolean | undefined;
|
|
21
|
+
}, {
|
|
22
|
+
maskColumns?: string[] | undefined;
|
|
23
|
+
maxRows?: number | undefined;
|
|
24
|
+
maskLabelledNames?: boolean | undefined;
|
|
25
|
+
}>>>;
|
|
26
|
+
actorProfiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12
27
|
}, "strict", z.ZodTypeAny, {
|
|
13
28
|
maskColumns?: string[] | undefined;
|
|
14
29
|
maxRows?: number | undefined;
|
|
30
|
+
maskLabelledNames?: boolean | undefined;
|
|
15
31
|
allowTables?: string[] | undefined;
|
|
16
32
|
denyTables?: string[] | undefined;
|
|
17
33
|
allowTools?: string[] | undefined;
|
|
18
34
|
denyTools?: string[] | undefined;
|
|
19
35
|
allowConnectors?: string[] | undefined;
|
|
20
36
|
denyConnectors?: string[] | undefined;
|
|
37
|
+
profiles?: Record<string, {
|
|
38
|
+
maskColumns?: string[] | undefined;
|
|
39
|
+
maxRows?: number | undefined;
|
|
40
|
+
maskLabelledNames?: boolean | undefined;
|
|
41
|
+
}> | undefined;
|
|
42
|
+
actorProfiles?: Record<string, string> | undefined;
|
|
21
43
|
}, {
|
|
22
44
|
maskColumns?: string[] | undefined;
|
|
23
45
|
maxRows?: number | undefined;
|
|
46
|
+
maskLabelledNames?: boolean | undefined;
|
|
24
47
|
allowTables?: string[] | undefined;
|
|
25
48
|
denyTables?: string[] | undefined;
|
|
26
49
|
allowTools?: string[] | undefined;
|
|
27
50
|
denyTools?: string[] | undefined;
|
|
28
51
|
allowConnectors?: string[] | undefined;
|
|
29
52
|
denyConnectors?: string[] | undefined;
|
|
53
|
+
profiles?: Record<string, {
|
|
54
|
+
maskColumns?: string[] | undefined;
|
|
55
|
+
maxRows?: number | undefined;
|
|
56
|
+
maskLabelledNames?: boolean | undefined;
|
|
57
|
+
}> | undefined;
|
|
58
|
+
actorProfiles?: Record<string, string> | undefined;
|
|
30
59
|
}>;
|
|
31
60
|
export declare const AuditConfigSchema: z.ZodObject<{
|
|
32
61
|
sink: z.ZodOptional<z.ZodString>;
|
|
@@ -123,28 +152,57 @@ export declare const ConariumConfigSchema: z.ZodObject<{
|
|
|
123
152
|
denyTables: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
124
153
|
maskColumns: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
125
154
|
maxRows: z.ZodOptional<z.ZodNumber>;
|
|
155
|
+
maskLabelledNames: z.ZodOptional<z.ZodBoolean>;
|
|
126
156
|
allowTools: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
127
157
|
denyTools: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
128
158
|
allowConnectors: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
129
159
|
denyConnectors: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
160
|
+
profiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
161
|
+
maskColumns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
162
|
+
maxRows: z.ZodOptional<z.ZodNumber>;
|
|
163
|
+
maskLabelledNames: z.ZodOptional<z.ZodBoolean>;
|
|
164
|
+
}, "strict", z.ZodTypeAny, {
|
|
165
|
+
maskColumns?: string[] | undefined;
|
|
166
|
+
maxRows?: number | undefined;
|
|
167
|
+
maskLabelledNames?: boolean | undefined;
|
|
168
|
+
}, {
|
|
169
|
+
maskColumns?: string[] | undefined;
|
|
170
|
+
maxRows?: number | undefined;
|
|
171
|
+
maskLabelledNames?: boolean | undefined;
|
|
172
|
+
}>>>;
|
|
173
|
+
actorProfiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
130
174
|
}, "strict", z.ZodTypeAny, {
|
|
131
175
|
maskColumns?: string[] | undefined;
|
|
132
176
|
maxRows?: number | undefined;
|
|
177
|
+
maskLabelledNames?: boolean | undefined;
|
|
133
178
|
allowTables?: string[] | undefined;
|
|
134
179
|
denyTables?: string[] | undefined;
|
|
135
180
|
allowTools?: string[] | undefined;
|
|
136
181
|
denyTools?: string[] | undefined;
|
|
137
182
|
allowConnectors?: string[] | undefined;
|
|
138
183
|
denyConnectors?: string[] | undefined;
|
|
184
|
+
profiles?: Record<string, {
|
|
185
|
+
maskColumns?: string[] | undefined;
|
|
186
|
+
maxRows?: number | undefined;
|
|
187
|
+
maskLabelledNames?: boolean | undefined;
|
|
188
|
+
}> | undefined;
|
|
189
|
+
actorProfiles?: Record<string, string> | undefined;
|
|
139
190
|
}, {
|
|
140
191
|
maskColumns?: string[] | undefined;
|
|
141
192
|
maxRows?: number | undefined;
|
|
193
|
+
maskLabelledNames?: boolean | undefined;
|
|
142
194
|
allowTables?: string[] | undefined;
|
|
143
195
|
denyTables?: string[] | undefined;
|
|
144
196
|
allowTools?: string[] | undefined;
|
|
145
197
|
denyTools?: string[] | undefined;
|
|
146
198
|
allowConnectors?: string[] | undefined;
|
|
147
199
|
denyConnectors?: string[] | undefined;
|
|
200
|
+
profiles?: Record<string, {
|
|
201
|
+
maskColumns?: string[] | undefined;
|
|
202
|
+
maxRows?: number | undefined;
|
|
203
|
+
maskLabelledNames?: boolean | undefined;
|
|
204
|
+
}> | undefined;
|
|
205
|
+
actorProfiles?: Record<string, string> | undefined;
|
|
148
206
|
}>>;
|
|
149
207
|
audit: z.ZodOptional<z.ZodObject<{
|
|
150
208
|
sink: z.ZodOptional<z.ZodString>;
|
|
@@ -210,12 +268,19 @@ export declare const ConariumConfigSchema: z.ZodObject<{
|
|
|
210
268
|
policy?: {
|
|
211
269
|
maskColumns?: string[] | undefined;
|
|
212
270
|
maxRows?: number | undefined;
|
|
271
|
+
maskLabelledNames?: boolean | undefined;
|
|
213
272
|
allowTables?: string[] | undefined;
|
|
214
273
|
denyTables?: string[] | undefined;
|
|
215
274
|
allowTools?: string[] | undefined;
|
|
216
275
|
denyTools?: string[] | undefined;
|
|
217
276
|
allowConnectors?: string[] | undefined;
|
|
218
277
|
denyConnectors?: string[] | undefined;
|
|
278
|
+
profiles?: Record<string, {
|
|
279
|
+
maskColumns?: string[] | undefined;
|
|
280
|
+
maxRows?: number | undefined;
|
|
281
|
+
maskLabelledNames?: boolean | undefined;
|
|
282
|
+
}> | undefined;
|
|
283
|
+
actorProfiles?: Record<string, string> | undefined;
|
|
219
284
|
} | undefined;
|
|
220
285
|
serverName?: string | undefined;
|
|
221
286
|
serverVersion?: string | undefined;
|
|
@@ -244,12 +309,19 @@ export declare const ConariumConfigSchema: z.ZodObject<{
|
|
|
244
309
|
policy?: {
|
|
245
310
|
maskColumns?: string[] | undefined;
|
|
246
311
|
maxRows?: number | undefined;
|
|
312
|
+
maskLabelledNames?: boolean | undefined;
|
|
247
313
|
allowTables?: string[] | undefined;
|
|
248
314
|
denyTables?: string[] | undefined;
|
|
249
315
|
allowTools?: string[] | undefined;
|
|
250
316
|
denyTools?: string[] | undefined;
|
|
251
317
|
allowConnectors?: string[] | undefined;
|
|
252
318
|
denyConnectors?: string[] | undefined;
|
|
319
|
+
profiles?: Record<string, {
|
|
320
|
+
maskColumns?: string[] | undefined;
|
|
321
|
+
maxRows?: number | undefined;
|
|
322
|
+
maskLabelledNames?: boolean | undefined;
|
|
323
|
+
}> | undefined;
|
|
324
|
+
actorProfiles?: Record<string, string> | undefined;
|
|
253
325
|
} | undefined;
|
|
254
326
|
serverName?: string | undefined;
|
|
255
327
|
serverVersion?: string | undefined;
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAYhD,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBxB,CAAA;AAEX,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAanB,CAAA;AAEX,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;EAKvB,CAAA;AAEX,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOtB,CAAA;AAEX,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,OAAO,GAAG,cAAc,CAEhE"}
|
package/dist/config.js
CHANGED
|
@@ -1,14 +1,28 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
const stringArray = z.array(z.string().min(1)).default([]);
|
|
3
|
+
const MaskingProfileSchema = z.object({
|
|
4
|
+
// No .default([]): an omitted maskColumns must stay omitted so the overlay
|
|
5
|
+
// does not silently empty the base list.
|
|
6
|
+
maskColumns: z.array(z.string().min(1)).optional(),
|
|
7
|
+
maxRows: z.number().int().positive().max(10000).optional(),
|
|
8
|
+
maskLabelledNames: z.boolean().optional(),
|
|
9
|
+
}).strict();
|
|
3
10
|
export const GovernancePolicySchema = z.object({
|
|
4
11
|
allowTables: stringArray.optional(),
|
|
5
12
|
denyTables: stringArray.optional(),
|
|
6
13
|
maskColumns: stringArray.optional(),
|
|
7
14
|
maxRows: z.number().int().positive().max(10000).optional(),
|
|
15
|
+
maskLabelledNames: z.boolean().optional(),
|
|
8
16
|
allowTools: stringArray.optional(),
|
|
9
17
|
denyTools: stringArray.optional(),
|
|
10
18
|
allowConnectors: stringArray.optional(),
|
|
11
19
|
denyConnectors: stringArray.optional(),
|
|
20
|
+
// These exist on Governance and in README. Until they were on this schema,
|
|
21
|
+
// loadConfig() threw Unrecognized key and the gateway could not boot a
|
|
22
|
+
// profiled config — the feature worked only when tests constructed the
|
|
23
|
+
// class by hand.
|
|
24
|
+
profiles: z.record(MaskingProfileSchema).optional(),
|
|
25
|
+
actorProfiles: z.record(z.string().min(1)).optional(),
|
|
12
26
|
}).strict();
|
|
13
27
|
export const AuditConfigSchema = z.object({
|
|
14
28
|
sink: z.string().min(1).optional(),
|
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"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,CAAC,KAAK,CAAC,qBAAqB,CAAC;IAC1C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACxC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC3C,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACtC,MAAM,EAAE,sBAAsB,CAAC,QAAQ,EAAE;IACzC,KAAK,EAAE,iBAAiB,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC,MAAM,EAAE,CAAA;AAEX,MAAM,UAAU,mBAAmB,CAAC,GAAY;IAC9C,OAAO,oBAAoB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;AACxC,CAAC"}
|
package/dist/http.js
CHANGED
|
@@ -206,8 +206,10 @@ async function main() {
|
|
|
206
206
|
sweepTimer.unref();
|
|
207
207
|
const httpServer = createHttpServer(createHandler(deps, transports, limiter));
|
|
208
208
|
httpServer.listen(PORT, HOST, () => {
|
|
209
|
+
const addr = httpServer.address();
|
|
210
|
+
const bound = typeof addr === 'object' && addr !== null ? addr.port : PORT;
|
|
209
211
|
const rate = limiter.enabled ? `${RATE_PER_MIN}/dk` : 'KAPALI';
|
|
210
|
-
console.error(`[conarium-http] remote MCP hazır — http://${HOST}:${
|
|
212
|
+
console.error(`[conarium-http] remote MCP hazır — http://${HOST}:${bound} (token: SET, ${deps.connectors.length} connector, rate-limit: ${rate})`);
|
|
211
213
|
// A remote gateway is the one nobody looks at for weeks. One stderr line at
|
|
212
214
|
// start is the only place a stale build gets announced to its operator.
|
|
213
215
|
announceUpdate();
|
package/dist/http.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.js","sourceRoot":"","sources":["../src/http.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;;;;;;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AO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACjB,CAAC,CAAC,CAAA;AACJ,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,oBAAoB,GAAG,CAAC,GAAG,EAAE;IACjC,IAAI,CAAC;QACH,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,KAAK,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;IAC5F,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAA;IACb,CAAC;AACH,CAAC,CAAC,EAAE,CAAA;AAEJ,IAAI,oBAAoB,EAAE,CAAC;IACzB,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;QACjB,OAAO,CAAC,KAAK,CAAC,wBAAwB,EAAE,GAAG,CAAC,CAAA;QAC5C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACjB,CAAC,CAAC,CAAA;AACJ,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export interface ConariumConfig {
|
|
|
10
10
|
audit?: AuditConfig;
|
|
11
11
|
}
|
|
12
12
|
export interface GovernancePolicy {
|
|
13
|
-
/** Allow-list of schema-qualified tables (glob: "billing.*", "*").
|
|
13
|
+
/** Allow-list of schema-qualified tables (glob: "billing.*", "*"). Missing or empty = deny all (default-deny). */
|
|
14
14
|
allowTables?: string[];
|
|
15
15
|
/** Deny-list of schema-qualified tables; takes precedence over allow. */
|
|
16
16
|
denyTables?: string[];
|
|
@@ -35,7 +35,7 @@ export interface GovernancePolicy {
|
|
|
35
35
|
allowTools?: string[];
|
|
36
36
|
/** Denied API tools. */
|
|
37
37
|
denyTools?: string[];
|
|
38
|
-
/** Allowed connector names (glob).
|
|
38
|
+
/** Allowed connector names (glob). Missing or empty = deny all (fail-closed). */
|
|
39
39
|
allowConnectors?: string[];
|
|
40
40
|
/** Denied connector names (glob); takes precedence over allow. */
|
|
41
41
|
denyConnectors?: string[];
|
|
@@ -47,9 +47,10 @@ export interface GovernancePolicy {
|
|
|
47
47
|
* the name; the assistant summarising revenue does not. A global on/off switch
|
|
48
48
|
* would answer that by disabling the product's only real guarantee.
|
|
49
49
|
*
|
|
50
|
-
* Deliberately narrow: a profile may override `maskColumns
|
|
51
|
-
* NOTHING else. Table, tool and connector permissions
|
|
52
|
-
* can never widen what is reachable — only what is
|
|
50
|
+
* Deliberately narrow: a profile may override `maskColumns`, `maxRows` and
|
|
51
|
+
* `maskLabelledNames` — and NOTHING else. Table, tool and connector permissions
|
|
52
|
+
* stay global, so a profile can never widen what is reachable — only what is
|
|
53
|
+
* legible within it.
|
|
53
54
|
*/
|
|
54
55
|
profiles?: Record<string, MaskingProfile>;
|
|
55
56
|
/**
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,eAAe,EAAE,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,sDAAsD;IACtD,MAAM,CAAC,EAAE,gBAAgB,CAAA;IACzB,2BAA2B;IAC3B,KAAK,CAAC,EAAE,WAAW,CAAA;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC/B,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,eAAe,EAAE,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE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B,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,qBAAqB,CAAA;IACnC,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;IACxB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;IAC3B,UAAU,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC,CAAA;IACpC,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAA;IAClD,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC,CAAA;IAC5D,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC,CAAA;CAC/D"}
|
package/docs/RECEIPT-SPEC.md
CHANGED
|
@@ -102,10 +102,13 @@ conarium-verify <file|dir> --pubkey <path> [--pubkey <path2>] [--anchor-check] [
|
|
|
102
102
|
|
|
103
103
|
Fail-closed: if the verifier is unsure, it does not exit 0.
|
|
104
104
|
|
|
105
|
-
⚠️
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
105
|
+
⚠️ Under `--anchor-check`, an OpenTimestamps **calendar** that cannot be
|
|
106
|
+
reached is exit **15** (`anchor could not be checked`) — not 14. Digest
|
|
107
|
+
comparison is offline and still holds. A `verify()` error that is *not*
|
|
108
|
+
classified as unreachable still falls through to 14. There is no separate
|
|
109
|
+
block-explorer client in this repository; `ignoreBitcoinNode: true` is set.
|
|
110
|
+
Tracked remainder: unclassified network-shaped errors still share 14 with
|
|
111
|
+
"proof does not hold".
|
|
109
112
|
|
|
110
113
|
## Conformance vectors
|
|
111
114
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@conarium-ai/core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"//files-artefakt": "examples/ altindaki uretilmis dosyalar (ozel anahtar, makbuz/denetim JSONL) ELENIR. .gitignore npm'i baglamaz: izin listesinde 'examples' oldugu icin demoyu kosturmus bir makinede 'npm publish' _keys/audit-ed25519.pem'i (OZEL ANAHTAR) ve makbuzlari yayinliyordu. test/pack_artefakt.mjs bunu kilitler. Elemeler examples/ ile SINIRLI: test-vectors/ altindaki receipts.jsonl ve .pub.pem YAYINLANMAK ZORUNDA, yoksa ucuncu taraf konformans vektorlerini kosturamaz.",
|
|
5
5
|
"//files": "Pakete NE gireceginin izin listesi. Liste olmadan npm her seyi gonderiyordu: 296 dosya / 1.5 MB — CI workflowlari, gitleaks ayari, 137 KB pazarlama gorseli, sitenin api/chat.js dosyasi. Bir bankanin guvenlik ekibi tarball'i acip bunlari gorur. scripts/ BILEREK var: conarium-reconcile calisirken scripts/pg-snapshot.sql'e atif yapiyor, olmazsa kullanici destek maili yazar.",
|
|
6
6
|
"files": [
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"build": "tsc",
|
|
70
70
|
"test": "vitest run",
|
|
71
71
|
"test:anchor-verify": "npm run build && node test/anchor_verify.mjs",
|
|
72
|
-
"test:checks": "npm run build && node test/doctor.mjs && node test/console_cli.mjs && node test/console_policy.mjs && node test/init.mjs && node test/demo_bank_seed.mjs && node test/pack_artefakt.mjs && node test/connectors.mjs && node test/governance_lineage_adversarial.mjs && node test/governance_security_regression.mjs && node test/security_hardening_14.mjs && node test/anchor_verify.mjs && node test/spec_exitcode_drift.mjs && node test/vectors_run.mjs",
|
|
72
|
+
"test:checks": "npm run build && node test/doctor.mjs && node test/console_cli.mjs && node test/console_policy.mjs && node test/init.mjs && node test/demo_bank_seed.mjs && node test/pack_artefakt.mjs && node test/connectors.mjs && node test/governance_lineage_adversarial.mjs && node test/governance_security_regression.mjs && node test/security_hardening_14.mjs && node test/anchor_verify.mjs && node test/spec_exitcode_drift.mjs && node test/vectors_run.mjs && node test/http_gateway.e2e.mjs",
|
|
73
73
|
"test:all": "npm run lint && npm run test && npm run test:checks",
|
|
74
74
|
"dev": "tsx watch src/index.ts",
|
|
75
75
|
"start": "node dist/index.js",
|