@pegasimed.com/pegasi-sail-connect-shared 0.2.0-dev.1 → 0.2.0-dev.11
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/README.md +355 -30
- package/dist/authorization/index.d.ts +1 -0
- package/dist/authorization/index.d.ts.map +1 -1
- package/dist/authorization/index.js +1 -0
- package/dist/authorization/index.js.map +1 -1
- package/dist/authorization/work-grants.d.ts +151 -0
- package/dist/authorization/work-grants.d.ts.map +1 -0
- package/dist/authorization/work-grants.js +306 -0
- package/dist/authorization/work-grants.js.map +1 -0
- package/dist/authorization-testing.d.ts +229 -0
- package/dist/authorization-testing.d.ts.map +1 -0
- package/dist/authorization-testing.js +744 -0
- package/dist/authorization-testing.js.map +1 -0
- package/dist/capabilities/canonical-json.d.ts +3 -0
- package/dist/capabilities/canonical-json.d.ts.map +1 -0
- package/dist/capabilities/canonical-json.js +83 -0
- package/dist/capabilities/canonical-json.js.map +1 -0
- package/dist/capabilities/catalog-data.d.ts +559 -281
- package/dist/capabilities/catalog-data.d.ts.map +1 -1
- package/dist/capabilities/catalog-data.js +582 -287
- package/dist/capabilities/catalog-data.js.map +1 -1
- package/dist/capabilities/catalog.d.ts.map +1 -1
- package/dist/capabilities/catalog.js +4 -4
- package/dist/capabilities/catalog.js.map +1 -1
- package/dist/capabilities/index.d.ts +4 -0
- package/dist/capabilities/index.d.ts.map +1 -1
- package/dist/capabilities/index.js +7 -0
- package/dist/capabilities/index.js.map +1 -1
- package/dist/capabilities/migration-data.d.ts +105 -190
- package/dist/capabilities/migration-data.d.ts.map +1 -1
- package/dist/capabilities/migration-data.js +83 -144
- package/dist/capabilities/migration-data.js.map +1 -1
- package/dist/capabilities/migration.d.ts +20 -20
- package/dist/capabilities/migration.d.ts.map +1 -1
- package/dist/capabilities/migration.js +25 -40
- package/dist/capabilities/migration.js.map +1 -1
- package/dist/capabilities/sha256.d.ts +18 -0
- package/dist/capabilities/sha256.d.ts.map +1 -0
- package/dist/capabilities/sha256.js +180 -0
- package/dist/capabilities/sha256.js.map +1 -0
- package/dist/capabilities/types.d.ts +3 -2
- package/dist/capabilities/types.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/organization/index.d.ts +135 -0
- package/dist/organization/index.d.ts.map +1 -0
- package/dist/organization/index.js +92 -0
- package/dist/organization/index.js.map +1 -0
- package/dist/worker-logger.d.ts +46 -4
- package/dist/worker-logger.d.ts.map +1 -1
- package/dist/worker-logger.js +33 -11
- package/dist/worker-logger.js.map +1 -1
- package/package.json +11 -3
- package/scripts/check-service-keys.mjs +30 -7
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { AUTHORIZATION_SCHEMA_VERSION, INTERNAL_AUTHORIZATION_TOKEN_USE } from "./authorization/internal-authorization.js";
|
|
2
|
+
import type { PermissionLevelClaim } from "./authorization/internal-authorization.js";
|
|
3
|
+
import type { WorkGrantV2, WorkGrantsInvalidReason } from "./authorization/work-grants.js";
|
|
4
|
+
import type { PermissionKey } from "./capabilities/catalog.js";
|
|
5
|
+
import type { CapabilityProduct } from "./capabilities/types.js";
|
|
6
|
+
/** `iss` of the internal authorization token (access-api src/seed-config.ts:656-658, default of INTERNAL_AUTHORIZATION_ISSUER). */
|
|
7
|
+
export declare const INTERNAL_AUTHORIZATION_ISSUER: "sail-connect-access-api";
|
|
8
|
+
/** `aud` of the internal authorization token (access-api src/seed-config.ts:656-658, default of INTERNAL_AUTHORIZATION_AUDIENCE). */
|
|
9
|
+
export declare const INTERNAL_AUTHORIZATION_AUDIENCE: "pegasi-internal-upstreams";
|
|
10
|
+
/**
|
|
11
|
+
* Shortest lifetime of a token Access signs. INTERNAL_AUTHORIZATION_TTL_SECONDS
|
|
12
|
+
* is clamped to [5, 60] (seed-config.ts:451-456), but exp = min(session
|
|
13
|
+
* absoluteExpiresAt, now + ttl) (seed-auth.ts:603), so a token of a session
|
|
14
|
+
* about to end lives from 1 s up: the only rule is exp > iat.
|
|
15
|
+
*/
|
|
16
|
+
export declare const MIN_INTERNAL_AUTHORIZATION_TTL_SECONDS = 1;
|
|
17
|
+
/** Longest lifetime Access signs and accepts (exp - iat <= 60). Also the default. */
|
|
18
|
+
export declare const MAX_INTERNAL_AUTHORIZATION_TTL_SECONDS = 60;
|
|
19
|
+
/** Shortest HS256 secret, in UTF-8 bytes (the default minimum of verifyHs256Jwt in ./jwt). */
|
|
20
|
+
export declare const MIN_TEST_SECRET_BYTES = 32;
|
|
21
|
+
/** A work grant to sign: the helper computes its `id` with workGrantId; an `id` given must be that one. */
|
|
22
|
+
export type TestWorkGrantInput = WithOptionalId<WorkGrantV2>;
|
|
23
|
+
type WithOptionalId<Grant> = Grant extends WorkGrantV2 ? Omit<Grant, "id"> & {
|
|
24
|
+
readonly id?: string;
|
|
25
|
+
} : never;
|
|
26
|
+
/** `practitionerLink` as Access signs it (access-domain.ts:99-101). */
|
|
27
|
+
export interface TestPractitionerLink {
|
|
28
|
+
readonly practitionerId: string;
|
|
29
|
+
}
|
|
30
|
+
/** `money` as Access signs it (tenantMoneyClaim, seed-auth.ts:64-95). */
|
|
31
|
+
export interface TestMoneyClaim {
|
|
32
|
+
readonly defaultCurrency: string;
|
|
33
|
+
readonly enabledCurrencies: readonly string[];
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The claims of the fixture. tokenUse, schemaVersion, iss and aud default to
|
|
37
|
+
* the only values Access signs (a different value is refused); iat and exp come
|
|
38
|
+
* from nowSeconds and ttlSeconds and are not claims here. capabilityCatalogVersion
|
|
39
|
+
* defaults to this package's CAPABILITY_CATALOG_VERSION (another non-empty
|
|
40
|
+
* value records drift, E5). workGrants get their id computed and are signed
|
|
41
|
+
* sorted by id, as Access does.
|
|
42
|
+
*/
|
|
43
|
+
export interface TestInternalAuthorizationClaims {
|
|
44
|
+
readonly tokenUse?: typeof INTERNAL_AUTHORIZATION_TOKEN_USE;
|
|
45
|
+
readonly schemaVersion?: typeof AUTHORIZATION_SCHEMA_VERSION;
|
|
46
|
+
readonly iss?: typeof INTERNAL_AUTHORIZATION_ISSUER;
|
|
47
|
+
readonly aud?: typeof INTERNAL_AUTHORIZATION_AUDIENCE;
|
|
48
|
+
readonly sub: string;
|
|
49
|
+
readonly tenantId: string;
|
|
50
|
+
readonly licenseKey: string;
|
|
51
|
+
readonly sid: string;
|
|
52
|
+
readonly authorizationVersion: number;
|
|
53
|
+
readonly licenseStatus: string;
|
|
54
|
+
readonly username?: string;
|
|
55
|
+
readonly role?: string;
|
|
56
|
+
/** Omitted from the token when absent or empty, as Access does (seed-auth.ts:627). */
|
|
57
|
+
readonly enabledProducts?: readonly CapabilityProduct[];
|
|
58
|
+
/** Explicit catalog keys only. Omitted from the token when absent or empty, as Access does (seed-auth.ts:628). */
|
|
59
|
+
readonly permissions?: readonly PermissionKey[];
|
|
60
|
+
readonly capabilityCatalogVersion?: string;
|
|
61
|
+
/** Signed as given when present (also []); omitted when absent. */
|
|
62
|
+
readonly permissionLevels?: readonly PermissionLevelClaim[];
|
|
63
|
+
/** Always signed ([] when absent), as Access does (seed-auth.ts:630). */
|
|
64
|
+
readonly workGrants?: readonly TestWorkGrantInput[];
|
|
65
|
+
readonly practitionerLink?: TestPractitionerLink;
|
|
66
|
+
readonly money?: TestMoneyClaim;
|
|
67
|
+
}
|
|
68
|
+
export interface SignTestInternalAuthorizationInput {
|
|
69
|
+
/** HS256 secret of the test, at least MIN_TEST_SECRET_BYTES bytes. Never read from the environment. */
|
|
70
|
+
readonly secret: string;
|
|
71
|
+
readonly claims: TestInternalAuthorizationClaims;
|
|
72
|
+
/** `iat`, in seconds. Defaults to the current time. */
|
|
73
|
+
readonly nowSeconds?: number;
|
|
74
|
+
/** `exp - iat`, an integer from MIN_ to MAX_INTERNAL_AUTHORIZATION_TTL_SECONDS. Defaults to 60. */
|
|
75
|
+
readonly ttlSeconds?: number;
|
|
76
|
+
}
|
|
77
|
+
/** The claims exactly as signed (frozen), in Access's order. Optional claims are absent when not signed. */
|
|
78
|
+
export interface TestInternalAuthorizationPayload {
|
|
79
|
+
readonly tokenUse: typeof INTERNAL_AUTHORIZATION_TOKEN_USE;
|
|
80
|
+
readonly iss: typeof INTERNAL_AUTHORIZATION_ISSUER;
|
|
81
|
+
readonly aud: typeof INTERNAL_AUTHORIZATION_AUDIENCE;
|
|
82
|
+
readonly sub: string;
|
|
83
|
+
readonly tenantId: string;
|
|
84
|
+
readonly licenseKey: string;
|
|
85
|
+
readonly sid: string;
|
|
86
|
+
readonly iat: number;
|
|
87
|
+
readonly exp: number;
|
|
88
|
+
readonly schemaVersion: typeof AUTHORIZATION_SCHEMA_VERSION;
|
|
89
|
+
readonly licenseStatus: string;
|
|
90
|
+
readonly username?: string;
|
|
91
|
+
readonly role?: string;
|
|
92
|
+
readonly enabledProducts?: readonly CapabilityProduct[];
|
|
93
|
+
readonly permissions?: readonly PermissionKey[];
|
|
94
|
+
readonly capabilityCatalogVersion: string;
|
|
95
|
+
readonly permissionLevels?: readonly PermissionLevelClaim[];
|
|
96
|
+
readonly workGrants: readonly WorkGrantV2[];
|
|
97
|
+
readonly practitionerLink?: TestPractitionerLink;
|
|
98
|
+
readonly authorizationVersion: number;
|
|
99
|
+
readonly money?: TestMoneyClaim;
|
|
100
|
+
}
|
|
101
|
+
export interface SignedTestInternalAuthorization {
|
|
102
|
+
/** The compact JWT: header {"alg":"HS256","typ":"JWT"}, the payload and the HMAC-SHA256 signature, base64url. */
|
|
103
|
+
readonly token: string;
|
|
104
|
+
readonly payload: TestInternalAuthorizationPayload;
|
|
105
|
+
}
|
|
106
|
+
/** Why signTestInternalAuthorization refused a fixture. Stable values. */
|
|
107
|
+
export type TestInternalAuthorizationInvalidReason =
|
|
108
|
+
/**
|
|
109
|
+
* Structural fail-closed check (not a security boundary): Object.prototype or Array.prototype has an index key or
|
|
110
|
+
* an accessor other than __proto__, or a prototype JSON.stringify consults has toJSON. Nothing is signed.
|
|
111
|
+
*/
|
|
112
|
+
"builtins-tampered"
|
|
113
|
+
/** The input or its `claims` is not a plain object (prototype Object.prototype or null, string keys, no accessor), or reading it throws. */
|
|
114
|
+
| "input-invalid"
|
|
115
|
+
/** The secret is not a string of at least MIN_TEST_SECRET_BYTES UTF-8 bytes (an empty secret included). */
|
|
116
|
+
| "secret-invalid"
|
|
117
|
+
/** nowSeconds is not a safe integer >= 0. */
|
|
118
|
+
| "time-invalid"
|
|
119
|
+
/** ttlSeconds is not an integer from MIN_ to MAX_INTERNAL_AUTHORIZATION_TTL_SECONDS (over the limit included). */
|
|
120
|
+
| "ttl-invalid"
|
|
121
|
+
/** A claim the internal token never carries (iat and exp included: use nowSeconds and ttlSeconds). */
|
|
122
|
+
| "claim-not-allowed"
|
|
123
|
+
/** tokenUse is not `internal-forward-auth`. */
|
|
124
|
+
| "token-use-invalid"
|
|
125
|
+
/** schemaVersion is not `sail-work-authorization.v2` (v1 included). */
|
|
126
|
+
| "schema-version-invalid"
|
|
127
|
+
/** iss is not INTERNAL_AUTHORIZATION_ISSUER. */
|
|
128
|
+
| "issuer-invalid"
|
|
129
|
+
/** aud is not INTERNAL_AUTHORIZATION_AUDIENCE. */
|
|
130
|
+
| "audience-invalid"
|
|
131
|
+
/** authorizationVersion is not a safe integer >= 1. */
|
|
132
|
+
| "authorization-version-invalid"
|
|
133
|
+
/** A claim is an accessor (getter or setter), a required string claim is missing or empty, or an optional one (role, username) is empty (named in `claim`). */
|
|
134
|
+
| "claim-invalid"
|
|
135
|
+
/** enabledProducts is not a dense list of distinct `sail`/`connect` (a hole, undefined or an accessor element included). */
|
|
136
|
+
| "products-invalid"
|
|
137
|
+
/** permissions is not a dense list of distinct strings (a hole, undefined or an accessor element included). */
|
|
138
|
+
| "permissions-invalid"
|
|
139
|
+
/** A permission contains `*` (`unknownKeys`). */
|
|
140
|
+
| "permission-wildcard"
|
|
141
|
+
/** A permission is not a key of this package's catalog (`unknownKeys`). */
|
|
142
|
+
| "permission-unknown"
|
|
143
|
+
/** A permission is a serviceToService key, which a service identity presents and a user token never carries (`unknownKeys`). */
|
|
144
|
+
| "permission-service-only"
|
|
145
|
+
/** capabilityCatalogVersion is given but is not a non-empty string. */
|
|
146
|
+
| "catalog-version-invalid"
|
|
147
|
+
/** permissionLevels is not a dense list of plain { module, feature, level 0-4 } records. */
|
|
148
|
+
| "permission-levels-invalid"
|
|
149
|
+
/**
|
|
150
|
+
* workGrants is not a dense list of plain records (`not-array`, `unreadable`, or `entry-invalid` / `parent-invalid`
|
|
151
|
+
* with the index given), or validateWorkGrantsV2 refused the list to sign (`workGrantsReason`, and `index` in the
|
|
152
|
+
* signed order, sorted by id).
|
|
153
|
+
*/
|
|
154
|
+
| "work-grants-invalid"
|
|
155
|
+
/** practitionerLink is not exactly { practitionerId: non-empty string }. */
|
|
156
|
+
| "practitioner-link-invalid"
|
|
157
|
+
/** money is not exactly { defaultCurrency, enabledCurrencies } with a dense list of distinct ISO-4217 codes (at most 32) that include the default. */
|
|
158
|
+
| "money-invalid";
|
|
159
|
+
/** Stable code of TestInternalAuthorizationInvalidError. */
|
|
160
|
+
export declare const TEST_INTERNAL_AUTHORIZATION_INVALID: "TEST_INTERNAL_AUTHORIZATION_INVALID";
|
|
161
|
+
/** Thrown by signTestInternalAuthorization: the fixture is invalid (or the built-ins are tampered) and nothing was signed. */
|
|
162
|
+
export declare class TestInternalAuthorizationInvalidError extends Error {
|
|
163
|
+
readonly code: "TEST_INTERNAL_AUTHORIZATION_INVALID";
|
|
164
|
+
readonly reason: TestInternalAuthorizationInvalidReason;
|
|
165
|
+
/** The claim at fault, when one is. */
|
|
166
|
+
readonly claim: string | undefined;
|
|
167
|
+
/** For permission-wildcard, permission-unknown and permission-service-only: the offending permissions, sorted. */
|
|
168
|
+
readonly unknownKeys: readonly string[] | undefined;
|
|
169
|
+
/** For work-grants-invalid: the rule (of validateWorkGrantsV2 or of the copy) and the index of the entry. */
|
|
170
|
+
readonly workGrantsReason: WorkGrantsInvalidReason | undefined;
|
|
171
|
+
readonly index: number | undefined;
|
|
172
|
+
constructor(reason: TestInternalAuthorizationInvalidReason, details?: {
|
|
173
|
+
readonly claim?: string | undefined;
|
|
174
|
+
readonly unknownKeys?: readonly string[];
|
|
175
|
+
readonly workGrantsReason?: WorkGrantsInvalidReason;
|
|
176
|
+
readonly index?: number | undefined;
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Signs an internal authorization token v2 for tests and smokes (Node only:
|
|
181
|
+
* HS256 with node:crypto). It reads nothing from the environment: the secret,
|
|
182
|
+
* the time and every claim come from `input` (Date.now() is read once, by the
|
|
183
|
+
* copy, only when nowSeconds is absent). The test runtime is trusted; a cheap
|
|
184
|
+
* structural check refuses (`builtins-tampered`, nothing signed) a polluted
|
|
185
|
+
* Object.prototype/Array.prototype or a toJSON on a prototype (see the threat
|
|
186
|
+
* model at the top of the module). Before signing it
|
|
187
|
+
* validates the fixture as PKG-08 section 5 defines it and throws
|
|
188
|
+
* TestInternalAuthorizationInvalidError (nothing signed) when:
|
|
189
|
+
*
|
|
190
|
+
* - the secret is shorter than MIN_TEST_SECRET_BYTES (empty included);
|
|
191
|
+
* - the input, the claims or a nested record (a work grant, its parent,
|
|
192
|
+
* practitionerLink, money, a permission level) is not a plain record, has a
|
|
193
|
+
* symbol key or an accessor, or throws any value when read; a list
|
|
194
|
+
* (enabledProducts, permissions, permissionLevels, workGrants,
|
|
195
|
+
* money.enabledCurrencies) is not a dense array: a hole, an undefined or
|
|
196
|
+
* accessor element, an accessor length or a throwing proxy is refused.
|
|
197
|
+
* Everything is read once from own data descriptors (no getter runs) into
|
|
198
|
+
* copies, and only the copies are checked, signed and frozen;
|
|
199
|
+
* - nowSeconds (or the clock, when absent: a finite primitive number, never
|
|
200
|
+
* converted) is not a safe integer >= 0, or ttlSeconds is outside
|
|
201
|
+
* [MIN_, MAX_INTERNAL_AUTHORIZATION_TTL_SECONDS] (1 to 60: exp - iat <= 60);
|
|
202
|
+
* - a claim is not one the token carries (iat and exp included);
|
|
203
|
+
* - tokenUse, schemaVersion, iss or aud is given with another value than
|
|
204
|
+
* `internal-forward-auth`, `sail-work-authorization.v2`,
|
|
205
|
+
* INTERNAL_AUTHORIZATION_ISSUER or INTERNAL_AUTHORIZATION_AUDIENCE;
|
|
206
|
+
* - readInternalAuthorization of this package refuses the payload: required
|
|
207
|
+
* strings (sub, tenantId, licenseKey, sid, licenseStatus), optional
|
|
208
|
+
* non-empty role and username, authorizationVersion >= 1, enabledProducts
|
|
209
|
+
* only sail/connect, permissions only explicit catalog keys (any `*` is
|
|
210
|
+
* permission-wildcard, any other unknown key permission-unknown; checked
|
|
211
|
+
* before duplicates), capabilityCatalogVersion and permissionLevels shapes;
|
|
212
|
+
* - a permission is a serviceToService key (permission-service-only): the
|
|
213
|
+
* internal token is a user's token, and those keys are presented only by a
|
|
214
|
+
* service identity (not tenant-assignable, omitted by migrateGrants, E1);
|
|
215
|
+
* - enabledProducts or permissions repeat a value;
|
|
216
|
+
* - validateWorkGrantsV2 refuses the signed workGrants (ids computed with
|
|
217
|
+
* workGrantId from the tenantId and sub claims; a given id must be that one,
|
|
218
|
+
* so a legacy `|` id is refused; warehouse needs grantVersion; no
|
|
219
|
+
* duplicates; parentResource only on agenda and warehouse);
|
|
220
|
+
* - practitionerLink or money does not have the exact shape Access signs.
|
|
221
|
+
*
|
|
222
|
+
* Optional claims follow Access: enabledProducts and permissions are omitted
|
|
223
|
+
* when absent or empty, role and username when absent; permissionLevels is
|
|
224
|
+
* signed only when given; workGrants is always signed (sorted by id).
|
|
225
|
+
* Returns the token and the frozen payload exactly as signed.
|
|
226
|
+
*/
|
|
227
|
+
export declare function signTestInternalAuthorization(input: SignTestInternalAuthorizationInput): SignedTestInternalAuthorization;
|
|
228
|
+
export {};
|
|
229
|
+
//# sourceMappingURL=authorization-testing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authorization-testing.d.ts","sourceRoot":"","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