@astram/guard 0.39.0 → 0.40.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/agent/agent-provenance.d.ts +24 -0
- package/dist/agent/agent-provenance.d.ts.map +1 -1
- package/dist/agent/agent-provenance.js +33 -1
- package/dist/auth/auth.module.d.ts.map +1 -1
- package/dist/auth/auth.module.js +40 -2
- package/dist/auth/tokens.d.ts +14 -0
- package/dist/auth/tokens.d.ts.map +1 -1
- package/dist/auth/tokens.js +16 -2
- package/dist/authentication/service-account-principal.d.ts +29 -0
- package/dist/authentication/service-account-principal.d.ts.map +1 -0
- package/dist/authentication/service-account-principal.js +55 -0
- package/dist/enforcement/facts-version.d.ts +22 -0
- package/dist/enforcement/facts-version.d.ts.map +1 -0
- package/dist/enforcement/facts-version.js +34 -0
- package/dist/enforcement/global-enforcement.guard.d.ts +9 -26
- package/dist/enforcement/global-enforcement.guard.d.ts.map +1 -1
- package/dist/enforcement/global-enforcement.guard.js +48 -177
- package/dist/enforcement/session-facts-reload.d.ts +66 -0
- package/dist/enforcement/session-facts-reload.d.ts.map +1 -0
- package/dist/enforcement/session-facts-reload.js +168 -0
- package/dist/identity/identity-actions.d.ts +1 -1
- package/dist/identity/identity-actions.d.ts.map +1 -1
- package/dist/identity/identity-actions.js +4 -0
- package/dist/internal.d.ts +23 -0
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js +36 -1
- package/dist/module/shield-tokens.d.ts +60 -11
- package/dist/module/shield-tokens.d.ts.map +1 -1
- package/dist/notifications/notification.service.d.ts +3 -0
- package/dist/notifications/notification.service.d.ts.map +1 -1
- package/dist/notifications/notification.service.js +9 -0
- package/dist/request-auth/request-principal.d.ts +5 -0
- package/dist/request-auth/request-principal.d.ts.map +1 -1
- package/dist/request-auth/request-principal.js +7 -1
- package/dist/request-auth/session-token-binder.d.ts +79 -6
- package/dist/request-auth/session-token-binder.d.ts.map +1 -1
- package/dist/request-auth/session-token-binder.js +264 -173
- package/dist/session/call-principals.d.ts +54 -0
- package/dist/session/call-principals.d.ts.map +1 -0
- package/dist/session/call-principals.js +38 -0
- package/dist/session/session-principal.d.ts +86 -0
- package/dist/session/session-principal.d.ts.map +1 -0
- package/dist/session/session-principal.js +139 -0
- 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.isLoopbackHost = exports.isExplicitOnlyPermissionKey = exports.expandPermissionGrantKeys = exports.mintAgentProvenance = exports.isMintedAgentProvenance = exports.AGENT_PROVENANCE_ID_MAX = exports.insideRequest = exports.requestFactsVersion = exports.RedisSessionLiveness = exports.SHIELD_SESSION_LIVENESS = 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_SCOPE_SUBTREE_RESOLVER = 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;
|
|
3
|
+
exports.isLoopbackHost = exports.isExplicitOnlyPermissionKey = exports.expandPermissionGrantKeys = exports.mintAgentUnattendedProvenance = exports.isMintedAgentUnattendedProvenance = exports.AGENT_UNATTENDED_PENDING_PER_KIND_MAX = exports.AGENT_UNATTENDED_PENDING_PER_KIND_DEFAULT = exports.mintAgentProvenance = exports.isMintedAgentProvenance = exports.AGENT_PROVENANCE_ID_MAX = exports.insideRequest = exports.requestServiceKeyVersion = exports.requestFactsVersion = exports.principalForServiceAccount = exports.refreshSessionFacts = exports.principalFactsVersion = exports.principalForSession = exports.GuardCallPrincipals = exports.SHIELD_CALL_PRINCIPALS = exports.RedisSessionLiveness = exports.SHIELD_SESSION_LIVENESS = 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_SCOPE_SUBTREE_RESOLVER = 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
|
*
|
|
@@ -84,6 +84,23 @@ var tokens_js_11 = require("./auth/tokens.js");
|
|
|
84
84
|
Object.defineProperty(exports, "SHIELD_SESSION_LIVENESS", { enumerable: true, get: function () { return tokens_js_11.SHIELD_SESSION_LIVENESS; } });
|
|
85
85
|
var session_liveness_js_1 = require("./session/session-liveness.js");
|
|
86
86
|
Object.defineProperty(exports, "RedisSessionLiveness", { enumerable: true, get: function () { return session_liveness_js_1.RedisSessionLiveness; } });
|
|
87
|
+
/**
|
|
88
|
+
* For `@astram/agent` only (background-agent-tasks SPEC v2 §5 B): the per-call principals of a
|
|
89
|
+
* background (session) or unattended (service-account) run, rebuilt by the guard's own code;
|
|
90
|
+
* `null` ⇒ the caller stops (fail closed). `principalFactsVersion` reads the permission version a
|
|
91
|
+
* session principal was derived under (the `requestFactsVersion` rule); `undefined` ⇒ fail closed.
|
|
92
|
+
*/
|
|
93
|
+
var tokens_js_12 = require("./auth/tokens.js");
|
|
94
|
+
Object.defineProperty(exports, "SHIELD_CALL_PRINCIPALS", { enumerable: true, get: function () { return tokens_js_12.SHIELD_CALL_PRINCIPALS; } });
|
|
95
|
+
var call_principals_js_1 = require("./session/call-principals.js");
|
|
96
|
+
Object.defineProperty(exports, "GuardCallPrincipals", { enumerable: true, get: function () { return call_principals_js_1.GuardCallPrincipals; } });
|
|
97
|
+
var session_principal_js_1 = require("./session/session-principal.js");
|
|
98
|
+
Object.defineProperty(exports, "principalForSession", { enumerable: true, get: function () { return session_principal_js_1.principalForSession; } });
|
|
99
|
+
Object.defineProperty(exports, "principalFactsVersion", { enumerable: true, get: function () { return session_principal_js_1.principalFactsVersion; } });
|
|
100
|
+
// SPEC v9 §5 C: the off-request session facts refresh (the guard's request-path reload).
|
|
101
|
+
Object.defineProperty(exports, "refreshSessionFacts", { enumerable: true, get: function () { return session_principal_js_1.refreshSessionFacts; } });
|
|
102
|
+
var service_account_principal_js_1 = require("./authentication/service-account-principal.js");
|
|
103
|
+
Object.defineProperty(exports, "principalForServiceAccount", { enumerable: true, get: function () { return service_account_principal_js_1.principalForServiceAccount; } });
|
|
87
104
|
/**
|
|
88
105
|
* For `@astram/agent` only (SPEC §5 run-loop "Manifest"): the permission version the enforcement
|
|
89
106
|
* guard derived `req.principal` under (gate 5's reload, else its cached facts); `undefined` ⇒ the
|
|
@@ -91,6 +108,13 @@ Object.defineProperty(exports, "RedisSessionLiveness", { enumerable: true, get:
|
|
|
91
108
|
*/
|
|
92
109
|
var global_enforcement_guard_js_1 = require("./enforcement/global-enforcement.guard.js");
|
|
93
110
|
Object.defineProperty(exports, "requestFactsVersion", { enumerable: true, get: function () { return global_enforcement_guard_js_1.requestFactsVersion; } });
|
|
111
|
+
/**
|
|
112
|
+
* For `@astram/agent` only (background-agent-tasks SPEC v3 §5 B): the version of the `ask_` key the
|
|
113
|
+
* enforcement guard verified for this request (service-account principals only; `undefined`
|
|
114
|
+
* otherwise ⇒ the caller fails closed). The unattended start stores it as the task's key version.
|
|
115
|
+
*/
|
|
116
|
+
var global_enforcement_guard_js_2 = require("./enforcement/global-enforcement.guard.js");
|
|
117
|
+
Object.defineProperty(exports, "requestServiceKeyVersion", { enumerable: true, get: function () { return global_enforcement_guard_js_2.requestServiceKeyVersion; } });
|
|
94
118
|
/**
|
|
95
119
|
* For `@astram/agent` only (capability-outbound-audit SPEC v6 §5 G, QA P2-1): read-only, `true`
|
|
96
120
|
* inside a request that passed the framework middleware (with or without a principal). The audited
|
|
@@ -107,6 +131,17 @@ var agent_provenance_js_1 = require("./agent/agent-provenance.js");
|
|
|
107
131
|
Object.defineProperty(exports, "AGENT_PROVENANCE_ID_MAX", { enumerable: true, get: function () { return agent_provenance_js_1.AGENT_PROVENANCE_ID_MAX; } });
|
|
108
132
|
Object.defineProperty(exports, "isMintedAgentProvenance", { enumerable: true, get: function () { return agent_provenance_js_1.isMintedAgentProvenance; } });
|
|
109
133
|
Object.defineProperty(exports, "mintAgentProvenance", { enumerable: true, get: function () { return agent_provenance_js_1.mintAgentProvenance; } });
|
|
134
|
+
/**
|
|
135
|
+
* For `@astram/agent` (mint) and `@astram/identity` (check) only (background-agent-tasks SPEC v4
|
|
136
|
+
* §5 G): the unforgeable provenance of an unattended (service-account) task's proposal, with the
|
|
137
|
+
* agent's per-kind pending cap. Identity refuses `origin: 'agent_unattended'` unless it is the
|
|
138
|
+
* minted object AND the request principal is a service account (`forbidden`).
|
|
139
|
+
*/
|
|
140
|
+
var agent_provenance_js_2 = require("./agent/agent-provenance.js");
|
|
141
|
+
Object.defineProperty(exports, "AGENT_UNATTENDED_PENDING_PER_KIND_DEFAULT", { enumerable: true, get: function () { return agent_provenance_js_2.AGENT_UNATTENDED_PENDING_PER_KIND_DEFAULT; } });
|
|
142
|
+
Object.defineProperty(exports, "AGENT_UNATTENDED_PENDING_PER_KIND_MAX", { enumerable: true, get: function () { return agent_provenance_js_2.AGENT_UNATTENDED_PENDING_PER_KIND_MAX; } });
|
|
143
|
+
Object.defineProperty(exports, "isMintedAgentUnattendedProvenance", { enumerable: true, get: function () { return agent_provenance_js_2.isMintedAgentUnattendedProvenance; } });
|
|
144
|
+
Object.defineProperty(exports, "mintAgentUnattendedProvenance", { enumerable: true, get: function () { return agent_provenance_js_2.mintAgentUnattendedProvenance; } });
|
|
110
145
|
/**
|
|
111
146
|
* For `@astram/identity` only (schema-change registration SPEC v13 §5): guard's grant-key expander
|
|
112
147
|
* and its explicit-only predicate, so identity's parity test can prove both expanders agree.
|
|
@@ -97,6 +97,17 @@ export type ProposalProvenanceLike = {
|
|
|
97
97
|
readonly origin: 'agent';
|
|
98
98
|
readonly taskId: string;
|
|
99
99
|
readonly callId: string;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* background-agent-tasks SPEC v4 §5 G: an unattended (service-account) task's call, minted only
|
|
103
|
+
* by the agent (`mintAgentUnattendedProvenance`, `@astram/guard/internal`); the request principal
|
|
104
|
+
* must be that service account. Stored as origin `agent` with requester kind `service_account`.
|
|
105
|
+
*/
|
|
106
|
+
| {
|
|
107
|
+
readonly origin: 'agent_unattended';
|
|
108
|
+
readonly taskId: string;
|
|
109
|
+
readonly callId: string;
|
|
110
|
+
readonly maxPendingPerKind?: number;
|
|
100
111
|
};
|
|
101
112
|
/** What a submit returns (SPEC §5 E): counts only, never the payload. */
|
|
102
113
|
export interface SubmittedProposalLike {
|
|
@@ -200,6 +211,13 @@ export interface AgentAuditLinks {
|
|
|
200
211
|
userLabels(userIds: readonly string[]): Promise<ReadonlyMap<string, string>>;
|
|
201
212
|
/** The proposals of the tenant whose `p_task_id` is in `taskIds` (at most 100 ids per call). */
|
|
202
213
|
proposalLinks(taskIds: readonly string[]): Promise<ReadonlyArray<AgentAuditProposalLink>>;
|
|
214
|
+
/**
|
|
215
|
+
* background-agent-tasks SPEC v5 §5 H: the label per service-account id, only for accounts of
|
|
216
|
+
* the tenant (the session's active company); any other id is absent (the route then shows
|
|
217
|
+
* "Assistant (via Unknown service account)"). At most 100 ids per call. Optional: a binding
|
|
218
|
+
* without it leaves every account unresolved.
|
|
219
|
+
*/
|
|
220
|
+
accountLabels?(accountIds: readonly string[]): Promise<ReadonlyMap<string, string>>;
|
|
203
221
|
}
|
|
204
222
|
/**
|
|
205
223
|
* {@link AgentAuditLinks} (SPEC §5, §6), bound by `@astram/identity`'s `IdentityFeatureModule` in
|
|
@@ -293,9 +311,10 @@ export interface FileShareParent {
|
|
|
293
311
|
readonly id: string;
|
|
294
312
|
}
|
|
295
313
|
/**
|
|
296
|
-
* What `shareWithRole`
|
|
297
|
-
* `['identity:stored_file:read']` when the role
|
|
298
|
-
*
|
|
314
|
+
* What `shareWithRole` / `shareWithUser` return (SPEC §5 A, decision 3). `effective` is false and
|
|
315
|
+
* `missing` is `['identity:stored_file:read']` when the role (or, for a user grantee, the user's
|
|
316
|
+
* in-effect roles in the file's company) does not hold that key; the share is written anyway and
|
|
317
|
+
* takes effect once the key is granted.
|
|
299
318
|
*/
|
|
300
319
|
export interface FileShareResult {
|
|
301
320
|
readonly created: boolean;
|
|
@@ -303,26 +322,56 @@ export interface FileShareResult {
|
|
|
303
322
|
readonly missing: readonly string[];
|
|
304
323
|
}
|
|
305
324
|
/**
|
|
306
|
-
* The file-share port (SPEC §5 A, B): an app service
|
|
307
|
-
*
|
|
308
|
-
*
|
|
309
|
-
*
|
|
310
|
-
*
|
|
311
|
-
*
|
|
325
|
+
* The file-share port (file-share-port SPEC §5 A, B; file-share-person SPEC §5 A): an app service
|
|
326
|
+
* shares a stored file with a role of the same company, or with one user who has a membership with
|
|
327
|
+
* status `active` in that company, only when the caller may `update` a parent record whose type
|
|
328
|
+
* declares a `references: 'stored_file'` field holding that file, and may itself read the file.
|
|
329
|
+
* Every share is read-only. Rows are written under the declared operation `shield:file-share`
|
|
330
|
+
* (Shield #9) with provenance, in one transaction with their audit. No method takes an actor,
|
|
331
|
+
* tenant, owner or company: those come from the request's session only. Every refusal is a
|
|
332
|
+
* {@link FileShareError}. `revokeForParent` and `reconcileFile` cover role and user rows alike.
|
|
312
333
|
*/
|
|
313
334
|
export interface FileSharePort {
|
|
314
335
|
shareWithRole(fileId: string, roleId: string, parent: FileShareParent): Promise<FileShareResult>;
|
|
336
|
+
/**
|
|
337
|
+
* Share with one user of the file's company (status `active` membership there); never the
|
|
338
|
+
* caller or the file's owner (`file_share_invalid`). An unknown user, or one without such a
|
|
339
|
+
* membership, is `file_share_not_found` like every other not-found.
|
|
340
|
+
*/
|
|
341
|
+
shareWithUser(fileId: string, userId: string, parent: FileShareParent): Promise<FileShareResult>;
|
|
315
342
|
unshare(fileId: string, roleId: string, parent: FileShareParent): Promise<{
|
|
316
343
|
removed: boolean;
|
|
317
344
|
}>;
|
|
345
|
+
/** Remove the port row for (file, user, parent); the parent must be updatable by the caller. */
|
|
346
|
+
unshareUser(fileId: string, userId: string, parent: FileShareParent): Promise<{
|
|
347
|
+
removed: boolean;
|
|
348
|
+
}>;
|
|
318
349
|
revokeForParent(parent: FileShareParent): Promise<{
|
|
319
350
|
removed: number;
|
|
320
351
|
}>;
|
|
321
|
-
|
|
352
|
+
/**
|
|
353
|
+
* The parent's port rows, both grantee kinds (file-share-person SPEC §5 A, decision Q3). The ids
|
|
354
|
+
* are for linking only; a UI resolves labels. Role rows also carry `roleId` (= `granteeId`) so
|
|
355
|
+
* callers written against file-share-port v1 keep working; user rows have no `roleId`.
|
|
356
|
+
*/
|
|
357
|
+
listForParent(parent: FileShareParent): Promise<readonly ({
|
|
322
358
|
fileId: string;
|
|
359
|
+
granteeKind: 'role';
|
|
360
|
+
granteeId: string;
|
|
361
|
+
createdAtMs: number;
|
|
323
362
|
roleId: string;
|
|
363
|
+
} | {
|
|
364
|
+
fileId: string;
|
|
365
|
+
granteeKind: 'user';
|
|
366
|
+
granteeId: string;
|
|
324
367
|
createdAtMs: number;
|
|
325
|
-
|
|
368
|
+
roleId?: undefined;
|
|
369
|
+
})[]>;
|
|
370
|
+
/**
|
|
371
|
+
* Remove port rows of the file whose parent is gone, no longer references the file or is no
|
|
372
|
+
* longer eligible, and user rows whose user no longer has an `active` membership in the file's
|
|
373
|
+
* company; each removal audited.
|
|
374
|
+
*/
|
|
326
375
|
reconcileFile(fileId: string): Promise<{
|
|
327
376
|
removed: number;
|
|
328
377
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shield-tokens.d.ts","sourceRoot":"","sources":["../../src/module/shield-tokens.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;GAUG;AACH,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAEzD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,2BAA2B,eAAwC,CAAC;AAEjF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,eAAgC,CAAC;AAEjE;;;GAGG;AACH,eAAO,MAAM,kBAAkB,eAA+B,CAAC;AAE/D;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAC3B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;AAE9D,iGAAiG;AACjG,MAAM,WAAW,eAAe;IAC9B,qGAAqG;IACrG,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAC5C;;;;;OAKG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;CACpD;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB,eAAqC,CAAC;AAM3E,kGAAkG;AAClG,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,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AkB;CAUrC"}
|
|
@@ -13,6 +13,9 @@ export declare const FRAMEWORK_KIND_PREFIX = "shield.";
|
|
|
13
13
|
* `AccessChangeNotifier`, a personal notice listing the recipient's gained / lost capabilities).
|
|
14
14
|
* G-036 M3 (agent-proposals SPEC §5 B, §10): `shield.proposal_pending` (identity's
|
|
15
15
|
* `ProposalService`, posted to the holders of a kind's `review` key when a proposal is submitted).
|
|
16
|
+
* background-agent-tasks SPEC v5 §5 I, §10: `shield.agent_task_ended` (`@astram/agent`, posted to
|
|
17
|
+
* the user of a session background task when a run ends or asks for input; fixed texts, no
|
|
18
|
+
* content, no ids).
|
|
16
19
|
*/
|
|
17
20
|
export declare const FRAMEWORK_NOTIFICATION_KINDS: readonly NotificationKindRegistration[];
|
|
18
21
|
export interface NotificationPostInput {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.service.d.ts","sourceRoot":"","sources":["../../src/notifications/notification.service.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EASL,KAAK,oBAAoB,EAEzB,KAAK,4BAA4B,EAEjC,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC9B,MAAM,YAAY,CAAC;AAEpB,uBAAuB;AACvB,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAC1C,eAAO,MAAM,qBAAqB,OAAO,CAAC;AAC1C,eAAO,MAAM,qBAAqB,MAAM,CAAC;AACzC,eAAO,MAAM,2BAA2B,OAAO,CAAC;AAchD,yDAAyD;AACzD,eAAO,MAAM,qBAAqB,YAAY,CAAC;AAE/C
|
|
1
|
+
{"version":3,"file":"notification.service.d.ts","sourceRoot":"","sources":["../../src/notifications/notification.service.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC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,QAAQ,CAAC,KAAK;IATxB,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAS;IACpC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAS;IACzC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAe;IACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA4B;gBAGhC,KAAK,EAAE,iBAAiB;IACzC,yFAAyF;IACxE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,EACzB,KAAK,EAAE,wBAAwB;IAChD,yFAAyF;IACzF,OAAO,CAAC,EAAE,oBAAoB,EAC9B,OAAO,GAAE,0BAA+B;IAkB1C,uDAAuD;IACvD,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAI9B;;;;OAIG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,oBAAoB,GAAG,oBAAoB;IAM7E,IAAI,CACR,KAAK,EAAE,qBAAqB,EAC5B,IAAI,GAAE,wBAA6B,GAClC,OAAO,CAAC,sBAAsB,CAAC;IA8ClC,sFAAsF;YACxE,gBAAgB;CAwB/B"}
|
|
@@ -59,6 +59,9 @@ exports.FRAMEWORK_KIND_PREFIX = 'shield.';
|
|
|
59
59
|
* `AccessChangeNotifier`, a personal notice listing the recipient's gained / lost capabilities).
|
|
60
60
|
* G-036 M3 (agent-proposals SPEC §5 B, §10): `shield.proposal_pending` (identity's
|
|
61
61
|
* `ProposalService`, posted to the holders of a kind's `review` key when a proposal is submitted).
|
|
62
|
+
* background-agent-tasks SPEC v5 §5 I, §10: `shield.agent_task_ended` (`@astram/agent`, posted to
|
|
63
|
+
* the user of a session background task when a run ends or asks for input; fixed texts, no
|
|
64
|
+
* content, no ids).
|
|
62
65
|
*/
|
|
63
66
|
exports.FRAMEWORK_NOTIFICATION_KINDS = [
|
|
64
67
|
{
|
|
@@ -73,6 +76,12 @@ exports.FRAMEWORK_NOTIFICATION_KINDS = [
|
|
|
73
76
|
label: 'Proposal to review',
|
|
74
77
|
severity: 'info',
|
|
75
78
|
},
|
|
79
|
+
{
|
|
80
|
+
kind: `${exports.FRAMEWORK_KIND_PREFIX}agent_task_ended`,
|
|
81
|
+
category: 'personal',
|
|
82
|
+
label: 'Assistant task',
|
|
83
|
+
severity: 'info',
|
|
84
|
+
},
|
|
76
85
|
];
|
|
77
86
|
/** Length in characters (code points), as `VARCHAR(n)` in utf8mb4 counts them. */
|
|
78
87
|
function codePoints(s) {
|
|
@@ -53,5 +53,10 @@ export declare function resolveRequestAuth(authorizationHeader: unknown, binder:
|
|
|
53
53
|
mfa?: Pick<MfaRequirementService, 'refresh'> | null): Promise<{
|
|
54
54
|
principal: Principal;
|
|
55
55
|
claims: BoundPrincipalClaims;
|
|
56
|
+
/**
|
|
57
|
+
* Service-account path only (background-agent-tasks SPEC v3 §5 B): the verified key's version,
|
|
58
|
+
* when the authenticator reported one. Never set for a session token.
|
|
59
|
+
*/
|
|
60
|
+
keyVersion?: number;
|
|
56
61
|
} | null>;
|
|
57
62
|
//# sourceMappingURL=request-principal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-principal.d.ts","sourceRoot":"","sources":["../../src/request-auth/request-principal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAC1F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAanF,6EAA6E;AAC7E,wBAAgB,kBAAkB,CAAC,mBAAmB,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAK9E;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,oBAAoB,GAAG,SAAS,GAAG,IAAI,CAiClF;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,KA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H,wBAAsB,kBAAkB,CACtC,mBAAmB,EAAE,OAAO,EAC5B,MAAM,EAAE,kBAAkB,EAC1B,WAAW,CAAC,EAAE,oBAAoB;AAClC;;;;GAIG;AACH,GAAG,CAAC,EAAE,IAAI,CAAC,qBAAqB,EAAE,SAAS,CAAC,GAAG,IAAI,GAClD,OAAO,CAAC;IACT,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,oBAAoB,CAAC;IAC7B;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,GAAG,IAAI,CAAC,CAuBR"}
|
|
@@ -149,7 +149,13 @@ mfa) {
|
|
|
149
149
|
const res = await serviceAuth.authenticateApiKey(token);
|
|
150
150
|
if (!res.ok)
|
|
151
151
|
return null; // uniform fail-closed (malformed/unknown/expired/revoked/outage).
|
|
152
|
-
|
|
152
|
+
const resolved = {
|
|
153
|
+
principal: res.principal,
|
|
154
|
+
claims: claimsFromServicePrincipal(res.principal),
|
|
155
|
+
};
|
|
156
|
+
return typeof res.keyVersion === 'number' && Number.isSafeInteger(res.keyVersion)
|
|
157
|
+
? { ...resolved, keyVersion: res.keyVersion }
|
|
158
|
+
: resolved;
|
|
153
159
|
}
|
|
154
160
|
const bound = await binder.resolve(token);
|
|
155
161
|
if (bound === null)
|
|
@@ -180,6 +180,27 @@ export interface SessionTokenBinderOptions {
|
|
|
180
180
|
* refresh the claims, move the pointer, grace-expire the previous token, clear the marker.
|
|
181
181
|
*/
|
|
182
182
|
export declare const REBIND_ON_ROTATE_SCRIPT = "if redis.call('EXISTS', KEYS[2]) == 0 then return 0 end\nlocal bound = redis.call('EXISTS', KEYS[1]) == 1\nif ARGV[8] == '1' then\n if bound then return 2 end\n redis.call('SET', KEYS[1], ARGV[1], 'PX', ARGV[4])\n redis.call('SET', KEYS[5], ARGV[6], 'PX', ARGV[4])\n return 3\nend\nif bound and redis.call('GET', KEYS[5]) ~= ARGV[6] then return 2 end\nlocal current = redis.call('GET', KEYS[3])\nif current == false then current = '' end\nif current ~= ARGV[5] then\n if bound then return 2 end\n redis.call('SET', KEYS[1], ARGV[1], 'PX', ARGV[4])\n return 3\nend\nredis.call('SET', KEYS[1], ARGV[1], 'PX', ARGV[2])\nredis.call('SET', KEYS[2], ARGV[1], 'PX', ARGV[3], 'XX')\nredis.call('SET', KEYS[3], ARGV[6], 'PX', ARGV[3])\nif ARGV[5] ~= '' and KEYS[4] ~= KEYS[1] then\n local remaining = redis.call('PTTL', KEYS[4])\n if remaining == -1 or remaining > tonumber(ARGV[7]) then\n redis.call('PEXPIRE', KEYS[4], ARGV[7])\n end\nend\nredis.call('DEL', KEYS[5])\nreturn 1";
|
|
183
|
+
/**
|
|
184
|
+
* The mandatory-2FA recompute's compare-and-set (review round 1, item A): write ARGV[2] only if the
|
|
185
|
+
* entry is still exactly ARGV[1] (the value the caller read and judged), keeping its remaining TTL.
|
|
186
|
+
* One script, so of N concurrent recomputes exactly one writes. Returns 1 when written, else 0.
|
|
187
|
+
*/
|
|
188
|
+
export declare const MFA_STATE_CAS_SCRIPT = "\nlocal cur = redis.call('GET', KEYS[1])\nif cur ~= ARGV[1] then return 0 end\nlocal ttl = redis.call('PTTL', KEYS[1])\nif ttl <= 0 then return 0 end\nredis.call('SET', KEYS[1], ARGV[2], 'PX', ttl, 'XX')\nreturn 1";
|
|
189
|
+
/**
|
|
190
|
+
* The session-claims rewrites' compare-and-set (background-agent-tasks QA-1 P2-1): `refreshGrants`,
|
|
191
|
+
* `rederiveScopeSubtree`, `clearReenroll`, `restrictMfaEnrollment` and `clearRestriction` read an
|
|
192
|
+
* entry, transform it and write it back. Written
|
|
193
|
+
* as GET → PTTL → `SET … XX`, a concurrent writer landing between the read and the write (a
|
|
194
|
+
* `restrictMfaEnrollment` restriction + epoch bump, another rewrite) was overwritten by the older
|
|
195
|
+
* copy. This writes ARGV[2] only if the entry is still exactly ARGV[1] (the value the caller read
|
|
196
|
+
* and transformed), keeping its remaining TTL (`PTTL` here, never extended) and `XX` (a deleted
|
|
197
|
+
* entry is never re-created).
|
|
198
|
+
*
|
|
199
|
+
* 1 written.
|
|
200
|
+
* 0 the entry changed since the read: the caller re-reads and re-applies its transformation.
|
|
201
|
+
* -1 the entry is gone or has no TTL: nothing is written, and nothing to retry.
|
|
202
|
+
*/
|
|
203
|
+
export declare const CLAIMS_REWRITE_CAS_SCRIPT = "\nlocal cur = redis.call('GET', KEYS[1])\nif cur == false then return -1 end\nif cur ~= ARGV[1] then return 0 end\nlocal ttl = redis.call('PTTL', KEYS[1])\nif ttl <= 0 then return -1 end\nredis.call('SET', KEYS[1], ARGV[2], 'PX', ttl, 'XX')\nreturn 1";
|
|
183
204
|
export declare class SessionTokenBinder {
|
|
184
205
|
private readonly redis;
|
|
185
206
|
private readonly options;
|
|
@@ -285,12 +306,25 @@ export declare class SessionTokenBinder {
|
|
|
285
306
|
*
|
|
286
307
|
* Each entry is rewritten only when it still belongs to `sessionId` + `tenantId` (a concurrent
|
|
287
308
|
* scope-switch moved it → left alone) and `facts` is fresher than what it holds (a slower request
|
|
288
|
-
* never overwrites newer facts). Each keeps its remaining TTL and is written
|
|
309
|
+
* never overwrites newer facts). Each keeps its remaining TTL and is written by compare-and-set
|
|
310
|
+
* ({@link CLAIMS_REWRITE_CAS_SCRIPT}: a concurrent writer's change is re-read and kept, a logout
|
|
289
311
|
* that deleted it wins). Best-effort: any Redis error or miss → that entry is skipped; the caller
|
|
290
312
|
* still uses the reloaded roles for the current request. Returns `true` when the access-token
|
|
291
313
|
* entry was rewritten.
|
|
314
|
+
*
|
|
315
|
+
* `accessToken` `null` (background-agent-tasks SPEC v9 §5 C, the off-request facts refresh): the
|
|
316
|
+
* token currently bound to the session ({@link currentAccessToken}), when there is one; the
|
|
317
|
+
* session-claims entry is rewritten either way.
|
|
318
|
+
*/
|
|
319
|
+
refreshGrants(accessToken: string | null, sessionId: string, tenantId: string, facts: CoarseGrants, roleIds?: readonly string[]): Promise<boolean>;
|
|
320
|
+
/**
|
|
321
|
+
* The access token currently bound to `sessionId` (the session → token entry every bind and
|
|
322
|
+
* rotation writes), or `null` when none is bound or Redis errors. Only for the off-request facts
|
|
323
|
+
* refresh's write-back ({@link refreshGrants} / {@link rederiveScopeSubtree} with a `null`
|
|
324
|
+
* token), which then rewrites that token's entry exactly as the request on it would. Never
|
|
325
|
+
* returned outside the binder.
|
|
292
326
|
*/
|
|
293
|
-
|
|
327
|
+
private currentAccessToken;
|
|
294
328
|
/**
|
|
295
329
|
* SCOPE-SWITCH re-bind (Task 5.2, ADR-0027 / ADR-0024). A principal is switching which
|
|
296
330
|
* active node it acts under; re-bind its CURRENT session (the same access token — no
|
|
@@ -340,9 +374,10 @@ export declare class SessionTokenBinder {
|
|
|
340
374
|
* (a concurrent refresh already wrote something at least as fresh → left alone). Each keeps its
|
|
341
375
|
* remaining TTL (a re-derive never extends a session). Best-effort: any Redis error or miss →
|
|
342
376
|
* `false`; the caller still uses the fresh subtree for the current request and a later reload
|
|
343
|
-
* retries. Returns `true` when the access-token entry was rewritten.
|
|
377
|
+
* retries. Returns `true` when the access-token entry was rewritten. `accessToken` `null`: the
|
|
378
|
+
* session's current token, as in {@link refreshGrants}.
|
|
344
379
|
*/
|
|
345
|
-
rederiveScopeSubtree(accessToken: string, sessionId: string, tenantId: string, subtree: readonly string[], version: number): Promise<boolean>;
|
|
380
|
+
rederiveScopeSubtree(accessToken: string | null, sessionId: string, tenantId: string, subtree: readonly string[], version: number): Promise<boolean>;
|
|
346
381
|
/**
|
|
347
382
|
* Resolve an access token to its bound claims, or `null` if the binding is
|
|
348
383
|
* absent/expired. Fail-closed: any Redis error → `null` (the caller denies), never
|
|
@@ -350,6 +385,19 @@ export declare class SessionTokenBinder {
|
|
|
350
385
|
* token simply has no key.
|
|
351
386
|
*/
|
|
352
387
|
resolve(accessToken: string): Promise<BoundPrincipalClaims | null>;
|
|
388
|
+
/**
|
|
389
|
+
* Resolve a SESSION (not an access token) to its bound claims, from the session-claims entry
|
|
390
|
+
* alone (background-agent-tasks SPEC §5 B): the same validation and normalization as
|
|
391
|
+
* {@link resolve} ({@link parseBoundClaims}) and the same session-authoritative overlay of the
|
|
392
|
+
* re-enrol flag and the mandatory-2FA state ({@link overlaySessionState}), applied to the one
|
|
393
|
+
* entry that `unbindSession` deletes on logout, admin end-sessions and the disable sweep. It is
|
|
394
|
+
* the entry every claims rewrite (rotation, live-grants rebind, subtree re-derive, scope switch)
|
|
395
|
+
* writes beside the access-token entry, so it carries the session's current claims.
|
|
396
|
+
*
|
|
397
|
+
* `null` (fail closed) when the entry is gone (ended), malformed, bound to another session id, or
|
|
398
|
+
* Redis errors. One Redis GET; never on the guard's per-request path.
|
|
399
|
+
*/
|
|
400
|
+
resolveSession(sessionId: string): Promise<BoundPrincipalClaims | null>;
|
|
353
401
|
/**
|
|
354
402
|
* MANDATORY-2FA RECOMPUTE write (R2.5, D-2): store a re-evaluated requirement on the
|
|
355
403
|
* session-claims entry (authoritative for every live token of the session; see `resolve()`).
|
|
@@ -374,10 +422,17 @@ export declare class SessionTokenBinder {
|
|
|
374
422
|
/**
|
|
375
423
|
* R2.7 defence in depth: restrict the session NOW (`restriction: 'mfa_enrollment'`, any grace
|
|
376
424
|
* deadline dropped) after a removal left the user with no confirmed factor while a policy applies.
|
|
377
|
-
* Unconditional
|
|
378
|
-
* increments the epoch, so an in-flight recompute that read the old state cannot lift it. The
|
|
425
|
+
* Unconditional on the stored state (no epoch or stamp precondition: restricting is always the
|
|
426
|
+
* safe direction), and it increments the epoch, so an in-flight recompute that read the old state cannot lift it. The
|
|
379
427
|
* re-enrol flag and the requirement stamp are kept. Returns `false` when the entry is gone or Redis
|
|
380
428
|
* failed.
|
|
429
|
+
*
|
|
430
|
+
* Written by compare-and-set ({@link compareAndRewrite}, background-agent-tasks QA-1 P2-1
|
|
431
|
+
* follow-up): the restriction is re-applied to the FRESH entry on every attempt, so a concurrent
|
|
432
|
+
* rewrite landing between the read and the write (live grants, subtree, scope, re-enrol clear)
|
|
433
|
+
* keeps its facts and the restriction still lands; a logout in that window wins (never
|
|
434
|
+
* re-created); the remaining TTL is kept. A writer changing the entry on every read exhausts the
|
|
435
|
+
* retries → `false` (the caller answers 503: fail closed).
|
|
381
436
|
*/
|
|
382
437
|
restrictMfaEnrollment(sessionId: string): Promise<boolean>;
|
|
383
438
|
/**
|
|
@@ -387,6 +442,15 @@ export declare class SessionTokenBinder {
|
|
|
387
442
|
* that started before the confirm cannot write its stale result back. The live token's next
|
|
388
443
|
* request is unrestricted (it is not re-minted). Best-effort: a gone entry or a Redis error leaves
|
|
389
444
|
* the session as it is (still restricted: the safe direction).
|
|
445
|
+
*
|
|
446
|
+
* Written by compare-and-set ({@link compareAndRewrite}, background-agent-tasks QA-1 P2-1
|
|
447
|
+
* follow-up). The clear lifts only the mandatory-2FA state it READ: the epoch on its first read
|
|
448
|
+
* is the one it intends to supersede. When a re-read (after a compare miss) carries a different
|
|
449
|
+
* epoch, a restriction, recompute or other clear landed in its window and is newer than what this
|
|
450
|
+
* clear judged, so nothing is written (a concurrent `restrictMfaEnrollment` survives; the session
|
|
451
|
+
* stays as that writer left it, the safe direction). A rewrite that leaves the epoch alone (live
|
|
452
|
+
* grants, subtree, re-enrol clear) is kept and the clear re-applied on top. A logout in the window
|
|
453
|
+
* wins (never re-created); the remaining TTL is kept.
|
|
390
454
|
*/
|
|
391
455
|
clearRestriction(sessionId: string): Promise<void>;
|
|
392
456
|
/**
|
|
@@ -403,6 +467,15 @@ export declare class SessionTokenBinder {
|
|
|
403
467
|
* dead / will re-deny) — we simply return. Idempotent.
|
|
404
468
|
*/
|
|
405
469
|
clearReenroll(sessionId: string): Promise<void>;
|
|
470
|
+
/**
|
|
471
|
+
* Read `key`, transform it and write the result back only if the entry is unchanged since the
|
|
472
|
+
* read ({@link CLAIMS_REWRITE_CAS_SCRIPT}: remaining TTL kept, `XX`). `transform` returns the new
|
|
473
|
+
* payload, or `null` for "leave it" (it may throw: that is a miss too). On a compare miss the entry
|
|
474
|
+
* is re-read and the same transformation re-applied to the fresh value (so a concurrent writer's
|
|
475
|
+
* change is kept), at most {@link CLAIMS_CAS_RETRIES} times; then `false` (fail closed, the next
|
|
476
|
+
* request or poll recomputes). A gone entry, a Redis error or a `null` transform → `false`.
|
|
477
|
+
*/
|
|
478
|
+
private compareAndRewrite;
|
|
406
479
|
/** Drop an access-token binding. Idempotent. */
|
|
407
480
|
unbind(accessToken: string): Promise<void>;
|
|
408
481
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-token-binder.d.ts","sourceRoot":"","sources":["../../src/request-auth/session-token-binder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAKjC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjD,oFAAoF;AACpF,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,iEAAiE;IACjE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC;IAC/B;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,YAAY,CAAC;IACpC;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,mBAAmB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACjD;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IACtC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,UAAU,GAAG,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