@adaptic/backend-legacy 0.0.1039 → 0.0.1040
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.
|
@@ -36,13 +36,25 @@ export declare const IR_MODELS: readonly EnhanceModelName[];
|
|
|
36
36
|
/**
|
|
37
37
|
* Models whose READ actions are decorated as well as their deletes.
|
|
38
38
|
*
|
|
39
|
-
* These
|
|
39
|
+
* These four answer to anyone today. A read-only probe of the deployed API
|
|
40
40
|
* with no Authorization header returns a real organisation name, a real user's
|
|
41
41
|
* email address, and a real membership row, so the standing escalation is not
|
|
42
42
|
* theoretical. They were outside the checker entirely: `_all` covers the five
|
|
43
43
|
* investor-relations models, everything else got delete coverage only, and a
|
|
44
44
|
* query the checker never runs for is a query it cannot even count.
|
|
45
45
|
*
|
|
46
|
+
* `AuditLog` joined them on 2026-09-26, on the same admission criterion and by
|
|
47
|
+
* measurement rather than by inspection. It is the largest of the four by some
|
|
48
|
+
* distance and the only one carrying correlatable personal data: a census of
|
|
49
|
+
* the anonymously readable rows found, across roughly 70,000 rows, at most five
|
|
50
|
+
* distinct email identities, 33 distinct IP addresses, at most four person
|
|
51
|
+
* names and two user agents. Report that as a small number of data subjects
|
|
52
|
+
* with a great many records about each, NOT as a large exposure — the row count
|
|
53
|
+
* is a true number answering a question nobody asked. Note also that 27,964
|
|
54
|
+
* `accountName` rows, first classified as an account label, were hash-matched
|
|
55
|
+
* in-database against the users table to three real email addresses, so
|
|
56
|
+
* per-subject completeness is higher than a field-name reading suggests.
|
|
57
|
+
*
|
|
46
58
|
* Decorating them changes NO behaviour while the checker is in shadow — a
|
|
47
59
|
* would-deny is logged and counted and then allowed. What it changes is that
|
|
48
60
|
* the exposure becomes measurable. Enforcement cannot be argued from a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorization-map.d.ts","sourceRoot":"","sources":["../../../src/auth/authorization-map.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;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AAgB,2BAA2B,IAAI,uBAAuB,CAcrE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorization-map.js","sourceRoot":"","sources":["../../../src/auth/authorization-map.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EACL,wBAAwB,GAEzB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,cAAc,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAKzC;;;GAGG;AACH,MAAM,CAAC,MAAM,SAAS,GAAgC;IACpD,UAAU;IACV,SAAS;IACT,qBAAqB;IACrB,kBAAkB;IAClB,aAAa;CACd,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"authorization-map.js","sourceRoot":"","sources":["../../../src/auth/authorization-map.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EACL,wBAAwB,GAEzB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,cAAc,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAKzC;;;GAGG;AACH,MAAM,CAAC,MAAM,SAAS,GAAgC;IACpD,UAAU;IACV,SAAS;IACT,qBAAqB;IACrB,kBAAkB;IAClB,aAAa;CACd,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAgC;IACpE,cAAc;IACd,eAAe;IACf,MAAM;IACN,UAAU;CACX,CAAC;AAEF;;;;;;;;;GASG;AACH,M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ELS = [
|
|
|
44
44
|
/**
|
|
45
45
|
* Models whose READ actions are decorated as well as their deletes.
|
|
46
46
|
*
|
|
47
|
-
* These
|
|
47
|
+
* These four answer to anyone today. A read-only probe of the deployed API
|
|
48
48
|
* with no Authorization header returns a real organisation name, a real user's
|
|
49
49
|
* email address, and a real membership row, so the standing escalation is not
|
|
50
50
|
* theoretical. They were outside the checker entirely: `_all` covers the five
|
|
51
51
|
* investor-relations models, everything else got delete coverage only, and a
|
|
52
52
|
* query the checker never runs for is a query it cannot even count.
|
|
53
53
|
*
|
|
54
|
+
* `AuditLog` joined them on 2026-09-26, on the same admission criterion and by
|
|
55
|
+
* measurement rather than by inspection. It is the largest of the four by some
|
|
56
|
+
* distance and the only one carrying correlatable personal data: a census of
|
|
57
|
+
* the anonymously readable rows found, across roughly 70,000 rows, at most five
|
|
58
|
+
* distinct email identities, 33 distinct IP addresses, at most four person
|
|
59
|
+
* names and two user agents. Report that as a small number of data subjects
|
|
60
|
+
* with a great many records about each, NOT as a large exposure — the row count
|
|
61
|
+
* is a true number answering a question nobody asked. Note also that 27,964
|
|
62
|
+
* `accountName` rows, first classified as an account label, were hash-matched
|
|
63
|
+
* in-database against the users table to three real email addresses, so
|
|
64
|
+
* per-subject completeness is higher than a field-name reading suggests.
|
|
65
|
+
*
|
|
54
66
|
* Decorating them changes NO behaviour while the checker is in shadow — a
|
|
55
67
|
* would-deny is logged and counted and then allowed. What it changes is that
|
|
56
68
|
* the exposure becomes measurable. Enforcement cannot be argued from a
|
|
@@ -61,6 +73,7 @@ export const TENANT_SCOPED_READ_MODELS = [
|
|
|
61
73
|
'Organization',
|
|
62
74
|
'OrgMembership',
|
|
63
75
|
'User',
|
|
76
|
+
'AuditLog',
|
|
64
77
|
];
|
|
65
78
|
/**
|
|
66
79
|
* Action-name prefixes that MUTATE. Everything else on a generated CRUD
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptic/backend-legacy",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1040",
|
|
4
4
|
"description": "Backend executable CRUD functions with dynamic variables construction, and type definitions for the Adaptic AI platform.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "index.d.ts",
|