@astram/guard 0.20.2 → 0.22.0
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/audit/audit-chain-sealer.d.ts +1 -1
- package/dist/audit/audit-chain-sealer.d.ts.map +1 -1
- package/dist/audit/audit-sealer.service.d.ts +9 -2
- package/dist/audit/audit-sealer.service.d.ts.map +1 -1
- package/dist/audit/audit-sealer.service.js +20 -3
- package/dist/auth/connections.d.ts +66 -8
- package/dist/auth/connections.d.ts.map +1 -1
- package/dist/auth/connections.js +100 -18
- package/dist/auth/persistence.module.d.ts +11 -6
- package/dist/auth/persistence.module.d.ts.map +1 -1
- package/dist/auth/persistence.module.js +34 -11
- package/dist/auth/tokens.d.ts +6 -0
- package/dist/auth/tokens.d.ts.map +1 -1
- package/dist/auth/tokens.js +8 -2
- package/dist/authentication/mariadb-email-address-changer.d.ts +2 -1
- package/dist/authentication/mariadb-email-address-changer.d.ts.map +1 -1
- package/dist/authentication/mariadb-email-address-changer.js +3 -3
- package/dist/authz/operation-marker-check.d.ts +6 -0
- package/dist/authz/operation-marker-check.d.ts.map +1 -1
- package/dist/authz/operation-marker-check.js +18 -10
- package/dist/boot/boot-sequence.d.ts +7 -2
- package/dist/boot/boot-sequence.d.ts.map +1 -1
- package/dist/boot/boot-sequence.js +21 -4
- package/dist/config/app-config.d.ts +45 -3
- package/dist/config/app-config.d.ts.map +1 -1
- package/dist/config/app-config.js +52 -3
- package/dist/identity/module-registry.bridge.d.ts.map +1 -1
- package/dist/identity/module-registry.bridge.js +10 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -3
- package/dist/internal.d.ts +6 -0
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js +22 -15
- package/package.json +5 -5
package/dist/internal.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MariaDbMfaResetter = exports.accountUnlockKeys = exports.AdminControlUnavailableError = exports.SHIELD_ACCOUNT_UNLOCKER = exports.SHIELD_ADMIN_STEP_UP = exports.SHIELD_MFA_REQUIREMENT_SOURCE = exports.SHIELD_MFA_REQUIREMENT = exports.SHIELD_MFA_POLICY_FEATURE = exports.SHIELD_DEFAULT_AUTH_AUDIT_SINK = exports.SHIELD_ATTEMPT_LIMITER_FACTORY = exports.SHIELD_REDIS = exports.AttemptLimiter = exports.MariaDbCredentialProvisioner = exports.SHIELD_DB_POOL = exports.PersistenceModule = void 0;
|
|
3
|
+
exports.MariaDbMfaResetter = exports.accountUnlockKeys = exports.AdminControlUnavailableError = exports.SHIELD_ACCOUNT_UNLOCKER = exports.SHIELD_ADMIN_STEP_UP = exports.SHIELD_MFA_REQUIREMENT_SOURCE = exports.SHIELD_MFA_REQUIREMENT = exports.SHIELD_MFA_POLICY_FEATURE = exports.SHIELD_DEFAULT_AUTH_AUDIT_SINK = exports.SHIELD_ATTEMPT_LIMITER_FACTORY = exports.SHIELD_REDIS = exports.AttemptLimiter = exports.MariaDbCredentialProvisioner = exports.SHIELD_AUDIT_SEALER_POOL = exports.SHIELD_DB_POOL = exports.PersistenceModule = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* @astram/guard/internal — framework-composition and test surface (Phase 8 #5).
|
|
6
6
|
*
|
|
@@ -14,6 +14,13 @@ var persistence_module_js_1 = require("./auth/persistence.module.js");
|
|
|
14
14
|
Object.defineProperty(exports, "PersistenceModule", { enumerable: true, get: function () { return persistence_module_js_1.PersistenceModule; } });
|
|
15
15
|
var tokens_js_1 = require("./auth/tokens.js");
|
|
16
16
|
Object.defineProperty(exports, "SHIELD_DB_POOL", { enumerable: true, get: function () { return tokens_js_1.SHIELD_DB_POOL; } });
|
|
17
|
+
/**
|
|
18
|
+
* Test surface only (G-026 spec 5.D): the audit sealer's own pool token. `PersistenceModule` does
|
|
19
|
+
* not export it (only the sealer injects it); a spec that stubs `SHIELD_DB_POOL` overrides this
|
|
20
|
+
* one too, else a real one-connection pool is opened for the sealer.
|
|
21
|
+
*/
|
|
22
|
+
var tokens_js_2 = require("./auth/tokens.js");
|
|
23
|
+
Object.defineProperty(exports, "SHIELD_AUDIT_SEALER_POOL", { enumerable: true, get: function () { return tokens_js_2.SHIELD_AUDIT_SEALER_POOL; } });
|
|
17
24
|
var mariadb_credential_provisioner_js_1 = require("./authentication/mariadb-credential-provisioner.js");
|
|
18
25
|
Object.defineProperty(exports, "MariaDbCredentialProvisioner", { enumerable: true, get: function () { return mariadb_credential_provisioner_js_1.MariaDbCredentialProvisioner; } });
|
|
19
26
|
/**
|
|
@@ -24,40 +31,40 @@ Object.defineProperty(exports, "MariaDbCredentialProvisioner", { enumerable: tru
|
|
|
24
31
|
*/
|
|
25
32
|
var attempt_limiter_js_1 = require("./auth/rate-limit/attempt-limiter.js");
|
|
26
33
|
Object.defineProperty(exports, "AttemptLimiter", { enumerable: true, get: function () { return attempt_limiter_js_1.AttemptLimiter; } });
|
|
27
|
-
var tokens_js_2 = require("./auth/tokens.js");
|
|
28
|
-
Object.defineProperty(exports, "SHIELD_REDIS", { enumerable: true, get: function () { return tokens_js_2.SHIELD_REDIS; } });
|
|
29
34
|
var tokens_js_3 = require("./auth/tokens.js");
|
|
30
|
-
Object.defineProperty(exports, "
|
|
35
|
+
Object.defineProperty(exports, "SHIELD_REDIS", { enumerable: true, get: function () { return tokens_js_3.SHIELD_REDIS; } });
|
|
36
|
+
var tokens_js_4 = require("./auth/tokens.js");
|
|
37
|
+
Object.defineProperty(exports, "SHIELD_ATTEMPT_LIMITER_FACTORY", { enumerable: true, get: function () { return tokens_js_4.SHIELD_ATTEMPT_LIMITER_FACTORY; } });
|
|
31
38
|
/**
|
|
32
39
|
* For `@astram/identity` only (R12.1, B-3): the token identity binds its default auth audit sink
|
|
33
40
|
* under, so guard's auth surface records to `audit_log` when the app supplies no `auditSink`.
|
|
34
41
|
*/
|
|
35
|
-
var
|
|
36
|
-
Object.defineProperty(exports, "SHIELD_DEFAULT_AUTH_AUDIT_SINK", { enumerable: true, get: function () { return
|
|
42
|
+
var tokens_js_5 = require("./auth/tokens.js");
|
|
43
|
+
Object.defineProperty(exports, "SHIELD_DEFAULT_AUTH_AUDIT_SINK", { enumerable: true, get: function () { return tokens_js_5.SHIELD_DEFAULT_AUTH_AUDIT_SINK; } });
|
|
37
44
|
/**
|
|
38
45
|
* For `@astram/identity` only (auth capabilities R2): the token identity binds `true` when its
|
|
39
46
|
* security-policy feature is registered, which turns guard's mandatory-2FA evaluation on.
|
|
40
47
|
*/
|
|
41
|
-
var tokens_js_5 = require("./auth/tokens.js");
|
|
42
|
-
Object.defineProperty(exports, "SHIELD_MFA_POLICY_FEATURE", { enumerable: true, get: function () { return tokens_js_5.SHIELD_MFA_POLICY_FEATURE; } });
|
|
43
|
-
/** Test surface (auth capabilities R2): the guard's mandatory-2FA service token (`null` when off). */
|
|
44
48
|
var tokens_js_6 = require("./auth/tokens.js");
|
|
45
|
-
Object.defineProperty(exports, "
|
|
49
|
+
Object.defineProperty(exports, "SHIELD_MFA_POLICY_FEATURE", { enumerable: true, get: function () { return tokens_js_6.SHIELD_MFA_POLICY_FEATURE; } });
|
|
50
|
+
/** Test surface (auth capabilities R2): the guard's mandatory-2FA service token (`null` when off). */
|
|
51
|
+
var tokens_js_7 = require("./auth/tokens.js");
|
|
52
|
+
Object.defineProperty(exports, "SHIELD_MFA_REQUIREMENT", { enumerable: true, get: function () { return tokens_js_7.SHIELD_MFA_REQUIREMENT; } });
|
|
46
53
|
/**
|
|
47
54
|
* For `@astram/identity` only (auth capabilities R11.3): the guard's MariaDB mandatory-2FA source
|
|
48
55
|
* token; identity's users list falls back to its batched confirmed-device read when the policy
|
|
49
56
|
* feature is off.
|
|
50
57
|
*/
|
|
51
|
-
var
|
|
52
|
-
Object.defineProperty(exports, "SHIELD_MFA_REQUIREMENT_SOURCE", { enumerable: true, get: function () { return
|
|
58
|
+
var tokens_js_8 = require("./auth/tokens.js");
|
|
59
|
+
Object.defineProperty(exports, "SHIELD_MFA_REQUIREMENT_SOURCE", { enumerable: true, get: function () { return tokens_js_8.SHIELD_MFA_REQUIREMENT_SOURCE; } });
|
|
53
60
|
/**
|
|
54
61
|
* For `@astram/identity` only (auth capabilities R11, B-5): the admin sign-in controls. The step-up
|
|
55
62
|
* (the admin's own TOTP on their `mfa:pid` budget), the account unlocker (login, MFA, recovery and
|
|
56
63
|
* CAPTCHA account counters) and the MFA resetter identity builds over its runtime pool.
|
|
57
64
|
*/
|
|
58
|
-
var
|
|
59
|
-
Object.defineProperty(exports, "SHIELD_ADMIN_STEP_UP", { enumerable: true, get: function () { return
|
|
60
|
-
Object.defineProperty(exports, "SHIELD_ACCOUNT_UNLOCKER", { enumerable: true, get: function () { return
|
|
65
|
+
var tokens_js_9 = require("./auth/tokens.js");
|
|
66
|
+
Object.defineProperty(exports, "SHIELD_ADMIN_STEP_UP", { enumerable: true, get: function () { return tokens_js_9.SHIELD_ADMIN_STEP_UP; } });
|
|
67
|
+
Object.defineProperty(exports, "SHIELD_ACCOUNT_UNLOCKER", { enumerable: true, get: function () { return tokens_js_9.SHIELD_ACCOUNT_UNLOCKER; } });
|
|
61
68
|
var admin_signin_controls_js_1 = require("./auth/admin-signin-controls.js");
|
|
62
69
|
Object.defineProperty(exports, "AdminControlUnavailableError", { enumerable: true, get: function () { return admin_signin_controls_js_1.AdminControlUnavailableError; } });
|
|
63
70
|
Object.defineProperty(exports, "accountUnlockKeys", { enumerable: true, get: function () { return admin_signin_controls_js_1.accountUnlockKeys; } });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astram/guard",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Astram framework — the enforcement guard + real-world adapters (the 'hands'). One global deny-by-default gate every request passes through (ADR-0002), classification decorators, boot-pool assertion (ADR-0018), the forRoot() registration seam, and the DB/Redis/crypto adapters that connect the sealed core to a real backend. Depends on @astram/core (ADR-0003, ADR-0023).",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"argon2": "^0.41.1",
|
|
37
37
|
"ioredis": "^5.4.1",
|
|
38
38
|
"mariadb": "^3.5.4",
|
|
39
|
-
"@astram/
|
|
40
|
-
"@astram/
|
|
39
|
+
"@astram/engine": "0.15.0",
|
|
40
|
+
"@astram/core": "1.12.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@nestjs/common": "^11",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@nestjs/platform-express": "^11",
|
|
46
46
|
"reflect-metadata": "^0.2",
|
|
47
47
|
"rxjs": "^7",
|
|
48
|
-
"@astram/messaging": "^0.1.
|
|
48
|
+
"@astram/messaging": "^0.1.7"
|
|
49
49
|
},
|
|
50
50
|
"peerDependenciesMeta": {
|
|
51
51
|
"@astram/messaging": {
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"typescript": "^5.7.0",
|
|
69
69
|
"unplugin-swc": "^1.5.1",
|
|
70
70
|
"vitest": "^2.1.8",
|
|
71
|
-
"@astram/messaging": "0.1.
|
|
71
|
+
"@astram/messaging": "0.1.7"
|
|
72
72
|
},
|
|
73
73
|
"repository": {
|
|
74
74
|
"type": "git",
|