@wildo-ai/platform-config-lib 1.1.16 → 1.1.17

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.
Files changed (42) hide show
  1. package/dist/esm/index.d.ts +1 -0
  2. package/dist/esm/index.d.ts.map +1 -1
  3. package/dist/esm/index.js +1 -0
  4. package/dist/esm/index.js.map +1 -1
  5. package/dist/esm/lockfile/materialize-infra-section.js +1 -1
  6. package/dist/esm/lockfile/materialize-infra-section.js.map +1 -1
  7. package/dist/esm/project-config/provider-companion-discovery.d.ts.map +1 -1
  8. package/dist/esm/project-config/provider-companion-discovery.js +25 -3
  9. package/dist/esm/project-config/provider-companion-discovery.js.map +1 -1
  10. package/dist/esm/project-config/provider-runtime-artifacts.d.ts.map +1 -1
  11. package/dist/esm/project-config/provider-runtime-artifacts.js +21 -0
  12. package/dist/esm/project-config/provider-runtime-artifacts.js.map +1 -1
  13. package/dist/esm/project-config/shared/backing-service-servability.js +1 -1
  14. package/dist/esm/project-config/shared/backing-service-servability.js.map +1 -1
  15. package/dist/esm/project-config/shared/backing-services.schemas.d.ts +5 -5
  16. package/dist/esm/project-config/shared/backing-services.schemas.d.ts.map +1 -1
  17. package/dist/esm/project-config/shared/backing-services.schemas.js +13 -12
  18. package/dist/esm/project-config/shared/backing-services.schemas.js.map +1 -1
  19. package/dist/esm/project-config/shared/infra-providers.schemas.d.ts +7 -6
  20. package/dist/esm/project-config/shared/infra-providers.schemas.d.ts.map +1 -1
  21. package/dist/esm/project-config/shared/infra-providers.schemas.js +5 -4
  22. package/dist/esm/project-config/shared/infra-providers.schemas.js.map +1 -1
  23. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.d.ts +3 -1
  24. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.d.ts.map +1 -1
  25. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.js +3 -1
  26. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.js.map +1 -1
  27. package/dist/esm/project-config/shared/object-storage-seaweedfs.d.ts +131 -0
  28. package/dist/esm/project-config/shared/object-storage-seaweedfs.d.ts.map +1 -0
  29. package/dist/esm/project-config/shared/object-storage-seaweedfs.js +219 -0
  30. package/dist/esm/project-config/shared/object-storage-seaweedfs.js.map +1 -0
  31. package/dist/esm/project-config/shared/platform-storage.schemas.js +4 -4
  32. package/dist/esm/project-config/shared/platform-storage.schemas.js.map +1 -1
  33. package/dist/esm/registry/module-artifact.schemas.d.ts +1 -0
  34. package/dist/esm/registry/module-artifact.schemas.d.ts.map +1 -1
  35. package/dist/esm/registry/module-artifact.schemas.js +7 -0
  36. package/dist/esm/registry/module-artifact.schemas.js.map +1 -1
  37. package/dist/esm/registry/module-manifest.schemas.d.ts +4 -3
  38. package/dist/esm/registry/module-manifest.schemas.d.ts.map +1 -1
  39. package/dist/esm/registry/module-manifest.schemas.js +4 -3
  40. package/dist/esm/registry/module-manifest.schemas.js.map +1 -1
  41. package/dist/tsconfig.build.tsbuildinfo +1 -1
  42. package/package.json +7 -7
@@ -0,0 +1,219 @@
1
+ /**
2
+ * The platform's object store: its provider vocabulary, and the identity and STS contract of the self-hosted
3
+ * SeaweedFS (#2170, #2173).
4
+ *
5
+ * ## Why one module holds both halves of the contract
6
+ *
7
+ * The STS exchange has two parties that must agree on every name in it. The CLI writes the store's identity and IAM
8
+ * files (the root identity, the role, its trust policy). apps-manager's broker names that role in `AssumeRole`. If
9
+ * either side spelled the role ARN or the root identity's principal on its own, one rename would leave the broker
10
+ * assuming a role the store does not have, and every storage credential would fail to issue. So both sides read
11
+ * these constants, and the CLI renders the files through {@link renderSeaweedfsObjectStorageIdentityConfig} and
12
+ * {@link renderSeaweedfsObjectStorageIamConfig}, never by hand.
13
+ *
14
+ * ## What was measured, and against what (#2171, 2026-11-19, `chrislusf/seaweedfs:4.52`)
15
+ *
16
+ * apps-manager's own `ObjectStorageStsBrokerService` (from its compiled dist) issued a credential through
17
+ * `AssumeRole` against a SeaweedFS started with exactly these two files. The session was confined as on MinIO:
18
+ * Get/Put/Delete/List inside `applications/<id>/` answered, and the same calls on another application's prefix, the
19
+ * bucket root and a bare `ListObjectsV2` were refused `AccessDenied`. Another static identity was refused by the
20
+ * trust policy. The whole run, and the answer to every open question, is recorded on #2171.
21
+ *
22
+ * Facts from that run the shapes below depend on:
23
+ * - **SeaweedFS requires `RoleSessionName`**, so the no-role shape MinIO accepted is refused
24
+ * (`MissingParameter: RoleSessionName is required`). The broker sends a session name only with a role, so the
25
+ * role here is not optional: {@link resolvePlatformObjectStorageStsRoleArn} derives it.
26
+ * - **Static identities are not part of the IAM file.** They are read from `-s3.config`; `-s3.iam.config` carries
27
+ * `sts`, `policy`, `roles` and `policies`. Hence two renderers.
28
+ * - **A static identity's principal is `arn:aws:iam::000000000000:user/<name>`** (SeaweedFS's default account id), and
29
+ * a trust policy naming it admits that identity and no other.
30
+ * - **A session is a JWT signed with `sts.signingKey`.** It survives a server restart, every replica must share the
31
+ * key, and rotating it ends every live session (each runtime re-acquires at its next readiness probe, whose refused
32
+ * HEAD the storage provider reads as a credential rejection; writes then use the rebuilt client).
33
+ * - **The session policy is the confinement, the role's policy only bounds it.** A role session with no session policy
34
+ * could write into another application's prefix (measured). The broker always sends one.
35
+ */
36
+ import { InfraProvider } from './infra-providers.schemas.js';
37
+ /**
38
+ * Which object store answers apps-manager's STS broker and every application's storage client. The value is what the
39
+ * CLI renders as `STORAGE_PROVIDER` and what apps-manager admits from its environment.
40
+ *
41
+ * - `SEAWEEDFS` — the self-hosted SeaweedFS (`InfraProvider.SEAWEEDFS_SELF`). Its STS requires a named role.
42
+ * - `AWS_S3` — what the `aws-s3` provider module would render. apps-manager does not admit it yet (#14): it is a
43
+ * member so that module states its value through this vocabulary instead of a bare string.
44
+ */
45
+ export var PlatformObjectStorageProvider;
46
+ (function (PlatformObjectStorageProvider) {
47
+ PlatformObjectStorageProvider["SEAWEEDFS"] = "seaweedfs";
48
+ PlatformObjectStorageProvider["AWS_S3"] = "s3";
49
+ })(PlatformObjectStorageProvider || (PlatformObjectStorageProvider = {}));
50
+ /**
51
+ * The platform object store an object-storage catalogue entry runs on: the value rendered as `STORAGE_PROVIDER` for an
52
+ * environment whose `backingServices.s3` resolves to that entry. `undefined` for an entry that is not object storage.
53
+ *
54
+ * Derived from the RESOLVED provider, never from the authored brand: the brand vocabulary (`'aws'`) and this one
55
+ * (`'s3'`) differ, and an unbranded `source: SELF` names no brand at all.
56
+ */
57
+ export function platformObjectStorageProviderOf(provider) {
58
+ switch (provider) {
59
+ case InfraProvider.SEAWEEDFS_SELF:
60
+ return PlatformObjectStorageProvider.SEAWEEDFS;
61
+ case InfraProvider.AWS_S3:
62
+ return PlatformObjectStorageProvider.AWS_S3;
63
+ default:
64
+ return undefined;
65
+ }
66
+ }
67
+ /**
68
+ * The authored backing-service brand that selects SeaweedFS (`backingServices.s3.provider`). A different vocabulary
69
+ * from {@link PlatformObjectStorageProvider}: it names what an application DECLARES, and an unbranded
70
+ * `source: SELF` resolves to SeaweedFS as well.
71
+ */
72
+ export const SEAWEEDFS_BACKING_SERVICE_BRAND = 'seaweedfs';
73
+ /**
74
+ * The names both parties of the SeaweedFS STS exchange use. Constants rather than configuration: the store is
75
+ * self-hosted and its IAM file is rendered by the framework, so none of these is an operator's choice.
76
+ */
77
+ export const SEAWEEDFS_OBJECT_STORAGE_STS = {
78
+ /** SeaweedFS's default account id: the account of every static identity's and every role's ARN. */
79
+ ACCOUNT_ID: '000000000000',
80
+ /** The static identity holding the storage root key (`secrets.json > storage`). */
81
+ ROOT_IDENTITY_NAME: 'wildo-root',
82
+ /** The role apps-manager's broker assumes for every application and platform-service credential. */
83
+ ROLE_NAME: 'wildo-object-storage',
84
+ /** The policy attached to that role: the UPPER BOUND of every session the broker issues. */
85
+ ROLE_POLICY_NAME: 'wildo-object-storage-objects',
86
+ /** The `iss` of the session tokens the store signs. */
87
+ ISSUER: 'wildo-object-storage-sts',
88
+ /**
89
+ * The longest session the store issues, in seconds. It is also AWS's `AssumeRole` maximum, which SeaweedFS applies
90
+ * on top (`DurationSeconds must be between 900 and 43200`), and it must cover the broker's request.
91
+ */
92
+ MAX_SESSION_SECONDS: 43_200,
93
+ /** SeaweedFS refuses a shorter STS signing key (`MinSigningKeyLength`). */
94
+ MIN_SIGNING_KEY_BYTES: 16,
95
+ };
96
+ /** The ARN of the role the broker assumes on the self-hosted SeaweedFS. */
97
+ export const SEAWEEDFS_OBJECT_STORAGE_ROLE_ARN = `arn:aws:iam::${SEAWEEDFS_OBJECT_STORAGE_STS.ACCOUNT_ID}:role/${SEAWEEDFS_OBJECT_STORAGE_STS.ROLE_NAME}`;
98
+ /** The principal of the root identity, which the role's trust policy admits and nothing else. */
99
+ export const SEAWEEDFS_OBJECT_STORAGE_ROOT_PRINCIPAL_ARN = `arn:aws:iam::${SEAWEEDFS_OBJECT_STORAGE_STS.ACCOUNT_ID}:user/${SEAWEEDFS_OBJECT_STORAGE_STS.ROOT_IDENTITY_NAME}`;
100
+ /**
101
+ * The role apps-manager's broker names in `AssumeRole`: the one authored (`platformStorage.stsRoleArn`, rendered as
102
+ * `STORAGE_STS_ROLE_ARN`), else the role the provider's own IAM file defines.
103
+ *
104
+ * Derived for SeaweedFS rather than authored, because the framework writes that role itself: asking an operator to
105
+ * repeat a constant is a second copy that can only disagree with the first. `undefined` for a provider with no role of
106
+ * its own (AWS), where the broker refuses to issue a credential until one is authored (#2172).
107
+ */
108
+ export function resolvePlatformObjectStorageStsRoleArn(input) {
109
+ if (input.authoredRoleArn)
110
+ return input.authoredRoleArn;
111
+ switch (input.provider) {
112
+ case PlatformObjectStorageProvider.SEAWEEDFS:
113
+ return SEAWEEDFS_OBJECT_STORAGE_ROLE_ARN;
114
+ case PlatformObjectStorageProvider.AWS_S3:
115
+ return undefined;
116
+ }
117
+ }
118
+ function assertFilled(value, what) {
119
+ if (value.trim().length === 0) {
120
+ throw new Error(`Refusing to render the SeaweedFS object-storage configuration: ${what} is empty.`);
121
+ }
122
+ return value;
123
+ }
124
+ /**
125
+ * The STS signing key as SeaweedFS reads it: the JSON field is a Go `[]byte`, which `encoding/json` decodes from
126
+ * STANDARD base64 only. A key that is not base64, or decodes to fewer than 16 bytes, would make the store refuse to
127
+ * start; this refuses it when the file is rendered instead.
128
+ */
129
+ function assertSigningKey(stsSigningKey) {
130
+ if (!/^[A-Za-z0-9+/]+={0,2}$/.test(stsSigningKey) || stsSigningKey.length % 4 !== 0) {
131
+ throw new Error('Refusing to render the SeaweedFS IAM configuration: the STS signing key is not standard base64.');
132
+ }
133
+ if (Buffer.from(stsSigningKey, 'base64').length < SEAWEEDFS_OBJECT_STORAGE_STS.MIN_SIGNING_KEY_BYTES) {
134
+ throw new Error(`Refusing to render the SeaweedFS IAM configuration: the STS signing key decodes to fewer than ${SEAWEEDFS_OBJECT_STORAGE_STS.MIN_SIGNING_KEY_BYTES} bytes.`);
135
+ }
136
+ return stsSigningKey;
137
+ }
138
+ /**
139
+ * The store's static identities (`weed server -s3.config=<file>`): exactly ONE, the root key, with SeaweedFS's
140
+ * `Admin` action.
141
+ *
142
+ * Admin because the root key is what apps-manager uses to create buckets (`ensureBucketExists`) and what the platform
143
+ * uses to publish artifacts. It never reaches an application: every application and platform service receives an STS
144
+ * session confined by the broker. A second identity here would be a long-lived key outside that confinement.
145
+ */
146
+ export function renderSeaweedfsObjectStorageIdentityConfig(rootKey) {
147
+ return `${JSON.stringify({
148
+ identities: [
149
+ {
150
+ name: SEAWEEDFS_OBJECT_STORAGE_STS.ROOT_IDENTITY_NAME,
151
+ credentials: [{
152
+ accessKey: assertFilled(rootKey.accessKey, 'the root access key'),
153
+ secretKey: assertFilled(rootKey.secretKey, 'the root secret key'),
154
+ }],
155
+ actions: ['Admin'],
156
+ },
157
+ ],
158
+ }, null, 2)}\n`;
159
+ }
160
+ /**
161
+ * The store's IAM configuration (`weed server -s3.iam.config=<file>`): the STS service, a deny-by-default policy
162
+ * engine, the one role the broker assumes, and the policy attached to it.
163
+ *
164
+ * - **Trust**: the role admits the root identity's principal for `sts:AssumeRole`, and no other principal.
165
+ * - **The role's policy is an upper bound** on every session: object verbs on keys inside some
166
+ * `applications/` subtree of any bucket (every application authors its own bucket, #1107), and `ListBucket`. The
167
+ * broker's inline session policy narrows each session to ONE application's subtree; the bound keeps a session
168
+ * that somehow carried no session policy off the rest of the bucket.
169
+ * - **STS**: `tokenDuration` and `maxSessionLength` are both {@link SEAWEEDFS_OBJECT_STORAGE_STS.MAX_SESSION_SECONDS},
170
+ * which covers the broker's 43200-second request.
171
+ */
172
+ export function renderSeaweedfsObjectStorageIamConfig(input) {
173
+ const sessionLength = `${SEAWEEDFS_OBJECT_STORAGE_STS.MAX_SESSION_SECONDS}s`;
174
+ return `${JSON.stringify({
175
+ sts: {
176
+ tokenDuration: sessionLength,
177
+ maxSessionLength: sessionLength,
178
+ issuer: SEAWEEDFS_OBJECT_STORAGE_STS.ISSUER,
179
+ signingKey: assertSigningKey(input.stsSigningKey),
180
+ },
181
+ policy: { defaultEffect: 'Deny' },
182
+ roles: [
183
+ {
184
+ roleName: SEAWEEDFS_OBJECT_STORAGE_STS.ROLE_NAME,
185
+ roleArn: SEAWEEDFS_OBJECT_STORAGE_ROLE_ARN,
186
+ trustPolicy: {
187
+ Version: '2012-10-17',
188
+ Statement: [{
189
+ Effect: 'Allow',
190
+ Principal: { AWS: SEAWEEDFS_OBJECT_STORAGE_ROOT_PRINCIPAL_ARN },
191
+ Action: ['sts:AssumeRole'],
192
+ }],
193
+ },
194
+ attachedPolicies: [SEAWEEDFS_OBJECT_STORAGE_STS.ROLE_POLICY_NAME],
195
+ },
196
+ ],
197
+ policies: [
198
+ {
199
+ name: SEAWEEDFS_OBJECT_STORAGE_STS.ROLE_POLICY_NAME,
200
+ document: {
201
+ Version: '2012-10-17',
202
+ Statement: [
203
+ {
204
+ Effect: 'Allow',
205
+ Action: ['s3:GetObject', 's3:PutObject', 's3:DeleteObject'],
206
+ Resource: ['arn:aws:s3:::*/*applications/*'],
207
+ },
208
+ {
209
+ Effect: 'Allow',
210
+ Action: ['s3:ListBucket'],
211
+ Resource: ['arn:aws:s3:::*'],
212
+ },
213
+ ],
214
+ },
215
+ },
216
+ ],
217
+ }, null, 2)}\n`;
218
+ }
219
+ //# sourceMappingURL=object-storage-seaweedfs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object-storage-seaweedfs.js","sourceRoot":"","sources":["../../../../src/project-config/shared/object-storage-seaweedfs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D;;;;;;;GAOG;AACH,MAAM,CAAN,IAAY,6BAGX;AAHD,WAAY,6BAA6B;IACvC,wDAAuB,CAAA;IACvB,8CAAa,CAAA;AACf,CAAC,EAHW,6BAA6B,KAA7B,6BAA6B,QAGxC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,+BAA+B,CAAC,QAAmC;IACjF,QAAQ,QAAQ,EAAE,CAAC;QACjB,KAAK,aAAa,CAAC,cAAc;YAC/B,OAAO,6BAA6B,CAAC,SAAS,CAAC;QACjD,KAAK,aAAa,CAAC,MAAM;YACvB,OAAO,6BAA6B,CAAC,MAAM,CAAC;QAC9C;YACE,OAAO,SAAS,CAAC;IACrB,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,WAAW,CAAC;AAE3D;;;GAGG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,mGAAmG;IACnG,UAAU,EAAE,cAAc;IAC1B,mFAAmF;IACnF,kBAAkB,EAAE,YAAY;IAChC,oGAAoG;IACpG,SAAS,EAAE,sBAAsB;IACjC,4FAA4F;IAC5F,gBAAgB,EAAE,8BAA8B;IAChD,uDAAuD;IACvD,MAAM,EAAE,0BAA0B;IAClC;;;OAGG;IACH,mBAAmB,EAAE,MAAM;IAC3B,2EAA2E;IAC3E,qBAAqB,EAAE,EAAE;CACjB,CAAC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;YACR;gBACE,IAAI,EAAE,4BAA4B,CAAC,gBAAgB;gBACnD,QAAQ,EAAE;oBACR,OAAO,EAAE,YAAY;oBACrB,SAAS,EAAE;wBACT;4BACE,MAAM,EAAE,OAAO;4BACf,MAAM,EAAE,CAAC,cAAc,EAAE,cAAc,EAAE,iBAAiB,CAAC;4BAC3D,QAAQ,EAAE,CAAC,gCAAgC,CAAC;yBAC7C;wBACD;4BACE,MAAM,EAAE,OAAO;4BACf,MAAM,EAAE,CAAC,eAAe,CAAC;4BACzB,QAAQ,EAAE,CAAC,gBAAgB,CAAC;yBAC7B;qBACF;iBACF;aACF;SACF;KACF,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC;AAClB,CAAC","sourcesContent":["/**\n * The platform's object store: its provider vocabulary, and the identity and STS contract of the self-hosted\n * SeaweedFS (#2170, #2173).\n *\n * ## Why one module holds both halves of the contract\n *\n * The STS exchange has two parties that must agree on every name in it. The CLI writes the store's identity and IAM\n * files (the root identity, the role, its trust policy). apps-manager's broker names that role in `AssumeRole`. If\n * either side spelled the role ARN or the root identity's principal on its own, one rename would leave the broker\n * assuming a role the store does not have, and every storage credential would fail to issue. So both sides read\n * these constants, and the CLI renders the files through {@link renderSeaweedfsObjectStorageIdentityConfig} and\n * {@link renderSeaweedfsObjectStorageIamConfig}, never by hand.\n *\n * ## What was measured, and against what (#2171, 2026-11-19, `chrislusf/seaweedfs:4.52`)\n *\n * apps-manager's own `ObjectStorageStsBrokerService` (from its compiled dist) issued a credential through\n * `AssumeRole` against a SeaweedFS started with exactly these two files. The session was confined as on MinIO:\n * Get/Put/Delete/List inside `applications/<id>/` answered, and the same calls on another application's prefix, the\n * bucket root and a bare `ListObjectsV2` were refused `AccessDenied`. Another static identity was refused by the\n * trust policy. The whole run, and the answer to every open question, is recorded on #2171.\n *\n * Facts from that run the shapes below depend on:\n * - **SeaweedFS requires `RoleSessionName`**, so the no-role shape MinIO accepted is refused\n * (`MissingParameter: RoleSessionName is required`). The broker sends a session name only with a role, so the\n * role here is not optional: {@link resolvePlatformObjectStorageStsRoleArn} derives it.\n * - **Static identities are not part of the IAM file.** They are read from `-s3.config`; `-s3.iam.config` carries\n * `sts`, `policy`, `roles` and `policies`. Hence two renderers.\n * - **A static identity's principal is `arn:aws:iam::000000000000:user/<name>`** (SeaweedFS's default account id), and\n * a trust policy naming it admits that identity and no other.\n * - **A session is a JWT signed with `sts.signingKey`.** It survives a server restart, every replica must share the\n * key, and rotating it ends every live session (each runtime re-acquires at its next readiness probe, whose refused\n * HEAD the storage provider reads as a credential rejection; writes then use the rebuilt client).\n * - **The session policy is the confinement, the role's policy only bounds it.** A role session with no session policy\n * could write into another application's prefix (measured). The broker always sends one.\n */\n\nimport { InfraProvider } from './infra-providers.schemas';\n\n/**\n * Which object store answers apps-manager's STS broker and every application's storage client. The value is what the\n * CLI renders as `STORAGE_PROVIDER` and what apps-manager admits from its environment.\n *\n * - `SEAWEEDFS` — the self-hosted SeaweedFS (`InfraProvider.SEAWEEDFS_SELF`). Its STS requires a named role.\n * - `AWS_S3` — what the `aws-s3` provider module would render. apps-manager does not admit it yet (#14): it is a\n * member so that module states its value through this vocabulary instead of a bare string.\n */\nexport enum PlatformObjectStorageProvider {\n SEAWEEDFS = 'seaweedfs',\n AWS_S3 = 's3',\n}\n\n/**\n * The platform object store an object-storage catalogue entry runs on: the value rendered as `STORAGE_PROVIDER` for an\n * environment whose `backingServices.s3` resolves to that entry. `undefined` for an entry that is not object storage.\n *\n * Derived from the RESOLVED provider, never from the authored brand: the brand vocabulary (`'aws'`) and this one\n * (`'s3'`) differ, and an unbranded `source: SELF` names no brand at all.\n */\nexport function platformObjectStorageProviderOf(provider: InfraProvider | undefined): PlatformObjectStorageProvider | undefined {\n switch (provider) {\n case InfraProvider.SEAWEEDFS_SELF:\n return PlatformObjectStorageProvider.SEAWEEDFS;\n case InfraProvider.AWS_S3:\n return PlatformObjectStorageProvider.AWS_S3;\n default:\n return undefined;\n }\n}\n\n/**\n * The authored backing-service brand that selects SeaweedFS (`backingServices.s3.provider`). A different vocabulary\n * from {@link PlatformObjectStorageProvider}: it names what an application DECLARES, and an unbranded\n * `source: SELF` resolves to SeaweedFS as well.\n */\nexport const SEAWEEDFS_BACKING_SERVICE_BRAND = 'seaweedfs';\n\n/**\n * The names both parties of the SeaweedFS STS exchange use. Constants rather than configuration: the store is\n * self-hosted and its IAM file is rendered by the framework, so none of these is an operator's choice.\n */\nexport const SEAWEEDFS_OBJECT_STORAGE_STS = {\n /** SeaweedFS's default account id: the account of every static identity's and every role's ARN. */\n ACCOUNT_ID: '000000000000',\n /** The static identity holding the storage root key (`secrets.json > storage`). */\n ROOT_IDENTITY_NAME: 'wildo-root',\n /** The role apps-manager's broker assumes for every application and platform-service credential. */\n ROLE_NAME: 'wildo-object-storage',\n /** The policy attached to that role: the UPPER BOUND of every session the broker issues. */\n ROLE_POLICY_NAME: 'wildo-object-storage-objects',\n /** The `iss` of the session tokens the store signs. */\n ISSUER: 'wildo-object-storage-sts',\n /**\n * The longest session the store issues, in seconds. It is also AWS's `AssumeRole` maximum, which SeaweedFS applies\n * on top (`DurationSeconds must be between 900 and 43200`), and it must cover the broker's request.\n */\n MAX_SESSION_SECONDS: 43_200,\n /** SeaweedFS refuses a shorter STS signing key (`MinSigningKeyLength`). */\n MIN_SIGNING_KEY_BYTES: 16,\n} as const;\n\n/** The ARN of the role the broker assumes on the self-hosted SeaweedFS. */\nexport const SEAWEEDFS_OBJECT_STORAGE_ROLE_ARN =\n `arn:aws:iam::${SEAWEEDFS_OBJECT_STORAGE_STS.ACCOUNT_ID}:role/${SEAWEEDFS_OBJECT_STORAGE_STS.ROLE_NAME}` as const;\n\n/** The principal of the root identity, which the role's trust policy admits and nothing else. */\nexport const SEAWEEDFS_OBJECT_STORAGE_ROOT_PRINCIPAL_ARN =\n `arn:aws:iam::${SEAWEEDFS_OBJECT_STORAGE_STS.ACCOUNT_ID}:user/${SEAWEEDFS_OBJECT_STORAGE_STS.ROOT_IDENTITY_NAME}` as const;\n\n/**\n * The role apps-manager's broker names in `AssumeRole`: the one authored (`platformStorage.stsRoleArn`, rendered as\n * `STORAGE_STS_ROLE_ARN`), else the role the provider's own IAM file defines.\n *\n * Derived for SeaweedFS rather than authored, because the framework writes that role itself: asking an operator to\n * repeat a constant is a second copy that can only disagree with the first. `undefined` for a provider with no role of\n * its own (AWS), where the broker refuses to issue a credential until one is authored (#2172).\n */\nexport function resolvePlatformObjectStorageStsRoleArn(input: {\n provider: PlatformObjectStorageProvider;\n authoredRoleArn: string | undefined;\n}): string | undefined {\n if (input.authoredRoleArn) return input.authoredRoleArn;\n switch (input.provider) {\n case PlatformObjectStorageProvider.SEAWEEDFS:\n return SEAWEEDFS_OBJECT_STORAGE_ROLE_ARN;\n case PlatformObjectStorageProvider.AWS_S3:\n return undefined;\n }\n}\n\n/** The root key pair the identity file carries (`secrets.json > storage`). */\nexport interface SeaweedfsObjectStorageRootKey {\n accessKey: string;\n secretKey: string;\n}\n\nfunction assertFilled(value: string, what: string): string {\n if (value.trim().length === 0) {\n throw new Error(`Refusing to render the SeaweedFS object-storage configuration: ${what} is empty.`);\n }\n return value;\n}\n\n/**\n * The STS signing key as SeaweedFS reads it: the JSON field is a Go `[]byte`, which `encoding/json` decodes from\n * STANDARD base64 only. A key that is not base64, or decodes to fewer than 16 bytes, would make the store refuse to\n * start; this refuses it when the file is rendered instead.\n */\nfunction assertSigningKey(stsSigningKey: string): string {\n if (!/^[A-Za-z0-9+/]+={0,2}$/.test(stsSigningKey) || stsSigningKey.length % 4 !== 0) {\n throw new Error('Refusing to render the SeaweedFS IAM configuration: the STS signing key is not standard base64.');\n }\n if (Buffer.from(stsSigningKey, 'base64').length < SEAWEEDFS_OBJECT_STORAGE_STS.MIN_SIGNING_KEY_BYTES) {\n throw new Error(\n `Refusing to render the SeaweedFS IAM configuration: the STS signing key decodes to fewer than ${SEAWEEDFS_OBJECT_STORAGE_STS.MIN_SIGNING_KEY_BYTES} bytes.`,\n );\n }\n return stsSigningKey;\n}\n\n/**\n * The store's static identities (`weed server -s3.config=<file>`): exactly ONE, the root key, with SeaweedFS's\n * `Admin` action.\n *\n * Admin because the root key is what apps-manager uses to create buckets (`ensureBucketExists`) and what the platform\n * uses to publish artifacts. It never reaches an application: every application and platform service receives an STS\n * session confined by the broker. A second identity here would be a long-lived key outside that confinement.\n */\nexport function renderSeaweedfsObjectStorageIdentityConfig(rootKey: SeaweedfsObjectStorageRootKey): string {\n return `${JSON.stringify({\n identities: [\n {\n name: SEAWEEDFS_OBJECT_STORAGE_STS.ROOT_IDENTITY_NAME,\n credentials: [{\n accessKey: assertFilled(rootKey.accessKey, 'the root access key'),\n secretKey: assertFilled(rootKey.secretKey, 'the root secret key'),\n }],\n actions: ['Admin'],\n },\n ],\n }, null, 2)}\\n`;\n}\n\n/**\n * The store's IAM configuration (`weed server -s3.iam.config=<file>`): the STS service, a deny-by-default policy\n * engine, the one role the broker assumes, and the policy attached to it.\n *\n * - **Trust**: the role admits the root identity's principal for `sts:AssumeRole`, and no other principal.\n * - **The role's policy is an upper bound** on every session: object verbs on keys inside some\n * `applications/` subtree of any bucket (every application authors its own bucket, #1107), and `ListBucket`. The\n * broker's inline session policy narrows each session to ONE application's subtree; the bound keeps a session\n * that somehow carried no session policy off the rest of the bucket.\n * - **STS**: `tokenDuration` and `maxSessionLength` are both {@link SEAWEEDFS_OBJECT_STORAGE_STS.MAX_SESSION_SECONDS},\n * which covers the broker's 43200-second request.\n */\nexport function renderSeaweedfsObjectStorageIamConfig(input: { stsSigningKey: string }): string {\n const sessionLength = `${SEAWEEDFS_OBJECT_STORAGE_STS.MAX_SESSION_SECONDS}s`;\n return `${JSON.stringify({\n sts: {\n tokenDuration: sessionLength,\n maxSessionLength: sessionLength,\n issuer: SEAWEEDFS_OBJECT_STORAGE_STS.ISSUER,\n signingKey: assertSigningKey(input.stsSigningKey),\n },\n policy: { defaultEffect: 'Deny' },\n roles: [\n {\n roleName: SEAWEEDFS_OBJECT_STORAGE_STS.ROLE_NAME,\n roleArn: SEAWEEDFS_OBJECT_STORAGE_ROLE_ARN,\n trustPolicy: {\n Version: '2012-10-17',\n Statement: [{\n Effect: 'Allow',\n Principal: { AWS: SEAWEEDFS_OBJECT_STORAGE_ROOT_PRINCIPAL_ARN },\n Action: ['sts:AssumeRole'],\n }],\n },\n attachedPolicies: [SEAWEEDFS_OBJECT_STORAGE_STS.ROLE_POLICY_NAME],\n },\n ],\n policies: [\n {\n name: SEAWEEDFS_OBJECT_STORAGE_STS.ROLE_POLICY_NAME,\n document: {\n Version: '2012-10-17',\n Statement: [\n {\n Effect: 'Allow',\n Action: ['s3:GetObject', 's3:PutObject', 's3:DeleteObject'],\n Resource: ['arn:aws:s3:::*/*applications/*'],\n },\n {\n Effect: 'Allow',\n Action: ['s3:ListBucket'],\n Resource: ['arn:aws:s3:::*'],\n },\n ],\n },\n },\n ],\n }, null, 2)}\\n`;\n}\n"]}
@@ -34,10 +34,10 @@ export const WildoPlatformStorageConfigSchema = z.strictObject({
34
34
  * environment as `STORAGE_STS_ROLE_ARN`, never into an application's or another platform service's.
35
35
  *
36
36
  * Required by a store whose STS `AssumeRole` names a role (AWS STS, SeaweedFS, Ceph RGW); the broker refuses to
37
- * issue a credential against AWS without it, and never falls back to the root key. Leave it out for a
38
- * MinIO-compatible store, which issues a session for the calling key and names no role. The role's trust policy
39
- * must admit the storage root key's identity, and its permissions bound every session: the broker's inline session
40
- * policy only narrows them.
37
+ * issue a credential against AWS without it, and never falls back to the root key. Leave it out for the
38
+ * self-hosted SeaweedFS: the framework writes that store's role itself, and apps-manager derives its ARN
39
+ * (`resolvePlatformObjectStorageStsRoleArn`). The role's trust policy must admit the storage root key's identity,
40
+ * and its permissions bound every session: the broker's inline session policy only narrows them.
41
41
  *
42
42
  * spec-cite: AWS STS API Reference, AssumeRole — `RoleArn` (Required: Yes; length 20–2048)
43
43
  * (https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html).
@@ -1 +1 @@
1
- {"version":3,"file":"platform-storage.schemas.js","sourceRoot":"","sources":["../../../../src/project-config/shared/platform-storage.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7D,6GAA6G;IAC7G,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACpC;;;;;;;;;;;;OAYG;IACH,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;CACpD,CAAC,CAAC;AAGH,sGAAsG;AACtG,MAAM,UAAU,kCAAkC,CAAC,eAAuD;IACxG,OAAO,eAAe,EAAE,MAAM,IAAI,gBAAgB,CAAC,MAAM,CAAC;AAC5D,CAAC","sourcesContent":["import { z } from 'zod';\n\nimport { STORAGE_DEFAULTS } from './infrastructure-defaults.schemas';\n\n/**\n * The PLATFORM tier's own object-storage bucket, authored for a remote environment (#1112).\n *\n * ## Why the platform needs its own, separate from `backingServices.s3.bucket`\n *\n * `backingServices.s3.bucket` is an APPLICATION's bucket: its backend reads and writes there, and apps-manager\n * confines that application's storage credential to it (#1107). The platform services — apps-manager itself and\n * module-registry — store their own objects too, and both halves of that pair must address ONE bucket: the\n * platform-services STS door confines to the bucket apps-manager's env names, while module-registry addresses\n * objects in the bucket its own env names.\n *\n * Until #1112 the CLI rendered that platform bucket from the `config.json` of whichever application was being\n * registered or deployed, so it became the last-registered application's bucket, and platform objects written\n * earlier went out of reach. Measured on 2026-09-14: module-registry's uploads sat in `wonder-todos-local`, and\n * registering a second application rewrote every platform service's env to that application's bucket.\n *\n * ## Local: a constant. Remote: authored.\n *\n * A local platform is shared by every application checked out beside it, and no configuration on disk is shared\n * across them — every infra file, `config.json` and `secrets.json` belongs to one application. So a local\n * platform's bucket is the constant {@link STORAGE_DEFAULTS.BUCKET}, and authoring this block in a local\n * environment is refused at parse time (the same shape as `cdn`, which is remote-only for its own reason).\n *\n * A remote environment is deployed from one application's infra file and may need a globally unique S3 name, so\n * it can author one here. Absent, the constant applies there too.\n */\nexport const WildoPlatformStorageConfigSchema = z.strictObject({\n /** The bucket apps-manager and module-registry store the platform's own objects in. Absent: the constant. */\n bucket: z.string().min(1).optional(),\n /**\n * The role apps-manager's object-storage broker assumes, as an ARN (#2172). Rendered into apps-manager's\n * environment as `STORAGE_STS_ROLE_ARN`, never into an application's or another platform service's.\n *\n * Required by a store whose STS `AssumeRole` names a role (AWS STS, SeaweedFS, Ceph RGW); the broker refuses to\n * issue a credential against AWS without it, and never falls back to the root key. Leave it out for a\n * MinIO-compatible store, which issues a session for the calling key and names no role. The role's trust policy\n * must admit the storage root key's identity, and its permissions bound every session: the broker's inline session\n * policy only narrows them.\n *\n * spec-cite: AWS STS API Reference, AssumeRole — `RoleArn` (Required: Yes; length 20–2048)\n * (https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html).\n */\n stsRoleArn: z.string().min(20).max(2048).optional(),\n});\nexport type WildoPlatformStorageConfig = z.infer<typeof WildoPlatformStorageConfigSchema>;\n\n/** The platform tier's bucket: the authored remote override, else {@link STORAGE_DEFAULTS.BUCKET}. */\nexport function resolvePlatformObjectStorageBucket(platformStorage: WildoPlatformStorageConfig | undefined): string {\n return platformStorage?.bucket ?? STORAGE_DEFAULTS.BUCKET;\n}\n"]}
1
+ {"version":3,"file":"platform-storage.schemas.js","sourceRoot":"","sources":["../../../../src/project-config/shared/platform-storage.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7D,6GAA6G;IAC7G,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACpC;;;;;;;;;;;;OAYG;IACH,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;CACpD,CAAC,CAAC;AAGH,sGAAsG;AACtG,MAAM,UAAU,kCAAkC,CAAC,eAAuD;IACxG,OAAO,eAAe,EAAE,MAAM,IAAI,gBAAgB,CAAC,MAAM,CAAC;AAC5D,CAAC","sourcesContent":["import { z } from 'zod';\n\nimport { STORAGE_DEFAULTS } from './infrastructure-defaults.schemas';\n\n/**\n * The PLATFORM tier's own object-storage bucket, authored for a remote environment (#1112).\n *\n * ## Why the platform needs its own, separate from `backingServices.s3.bucket`\n *\n * `backingServices.s3.bucket` is an APPLICATION's bucket: its backend reads and writes there, and apps-manager\n * confines that application's storage credential to it (#1107). The platform services — apps-manager itself and\n * module-registry — store their own objects too, and both halves of that pair must address ONE bucket: the\n * platform-services STS door confines to the bucket apps-manager's env names, while module-registry addresses\n * objects in the bucket its own env names.\n *\n * Until #1112 the CLI rendered that platform bucket from the `config.json` of whichever application was being\n * registered or deployed, so it became the last-registered application's bucket, and platform objects written\n * earlier went out of reach. Measured on 2026-09-14: module-registry's uploads sat in `wonder-todos-local`, and\n * registering a second application rewrote every platform service's env to that application's bucket.\n *\n * ## Local: a constant. Remote: authored.\n *\n * A local platform is shared by every application checked out beside it, and no configuration on disk is shared\n * across them — every infra file, `config.json` and `secrets.json` belongs to one application. So a local\n * platform's bucket is the constant {@link STORAGE_DEFAULTS.BUCKET}, and authoring this block in a local\n * environment is refused at parse time (the same shape as `cdn`, which is remote-only for its own reason).\n *\n * A remote environment is deployed from one application's infra file and may need a globally unique S3 name, so\n * it can author one here. Absent, the constant applies there too.\n */\nexport const WildoPlatformStorageConfigSchema = z.strictObject({\n /** The bucket apps-manager and module-registry store the platform's own objects in. Absent: the constant. */\n bucket: z.string().min(1).optional(),\n /**\n * The role apps-manager's object-storage broker assumes, as an ARN (#2172). Rendered into apps-manager's\n * environment as `STORAGE_STS_ROLE_ARN`, never into an application's or another platform service's.\n *\n * Required by a store whose STS `AssumeRole` names a role (AWS STS, SeaweedFS, Ceph RGW); the broker refuses to\n * issue a credential against AWS without it, and never falls back to the root key. Leave it out for the\n * self-hosted SeaweedFS: the framework writes that store's role itself, and apps-manager derives its ARN\n * (`resolvePlatformObjectStorageStsRoleArn`). The role's trust policy must admit the storage root key's identity,\n * and its permissions bound every session: the broker's inline session policy only narrows them.\n *\n * spec-cite: AWS STS API Reference, AssumeRole — `RoleArn` (Required: Yes; length 20–2048)\n * (https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html).\n */\n stsRoleArn: z.string().min(20).max(2048).optional(),\n});\nexport type WildoPlatformStorageConfig = z.infer<typeof WildoPlatformStorageConfigSchema>;\n\n/** The platform tier's bucket: the authored remote override, else {@link STORAGE_DEFAULTS.BUCKET}. */\nexport function resolvePlatformObjectStorageBucket(platformStorage: WildoPlatformStorageConfig | undefined): string {\n return platformStorage?.bucket ?? STORAGE_DEFAULTS.BUCKET;\n}\n"]}
@@ -191,6 +191,7 @@ export declare const RegistryWhoamiResponseSchema: z.ZodObject<{
191
191
  apiKeyId: z.ZodString;
192
192
  apiKeyName: z.ZodOptional<z.ZodString>;
193
193
  roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
194
+ apiKeyExpiresAt: z.ZodOptional<z.ZodISODateTime>;
194
195
  }, z.core.$strip>;
195
196
  export type RegistryWhoamiResponse = z.infer<typeof RegistryWhoamiResponseSchema>;
196
197
  //# sourceMappingURL=module-artifact.schemas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"module-artifact.schemas.d.ts","sourceRoot":"","sources":["../../../src/registry/module-artifact.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA6BpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,sBAAsB,CAAC;AAC7D,eAAO,MAAM,2BAA2B,wBAAwB,CAAC;AAEjE,eAAO,MAAM,wBAAwB;;;iBAGnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB;;;iBAG/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,4BAA4B;;;;;iBAKvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
1
+ {"version":3,"file":"module-artifact.schemas.d.ts","sourceRoot":"","sources":["../../../src/registry/module-artifact.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA6BpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,sBAAsB,CAAC;AAC7D,eAAO,MAAM,2BAA2B,wBAAwB,CAAC;AAEjE,eAAO,MAAM,wBAAwB;;;iBAGnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB;;;iBAG/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,4BAA4B;;;;;;iBAYvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
@@ -101,5 +101,12 @@ export const RegistryWhoamiResponseSchema = z.object({
101
101
  apiKeyId: z.string().min(1),
102
102
  apiKeyName: z.string().min(1).optional(),
103
103
  roles: z.array(z.string().min(1)).optional(),
104
+ /**
105
+ * When the key stops authenticating, as an ISO-8601 instant (#2194). Absent for a key with no expiry, and from a
106
+ * registry server older than the field: a client reads absence as "unknown", never as "never expires", and says
107
+ * nothing rather than guessing. `wildo registry login` and `whoami --verify` warn from
108
+ * `REGISTRY_KEY_EXPIRY_WARNING_DAYS` before it, so the release's provider step does not meet a lapsed key first.
109
+ */
110
+ apiKeyExpiresAt: z.iso.datetime({ offset: true }).optional(),
104
111
  });
105
112
  //# sourceMappingURL=module-artifact.schemas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"module-artifact.schemas.js","sourceRoot":"","sources":["../../../src/registry/module-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yB,GAAG,mBAAmB,CAAC;AAC7D,MAAM,CAAC,MAAM,2BAA2B,GAAG,qBAAqB,CAAC;AAEjE,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,QAAQ,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAC1C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AAGH;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE;IACf,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC;AAGH;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACjC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACxC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAC","sourcesContent":["/**\n * Module-artifact schemas — metadata that travels alongside the zip\n * artifact bytes (server-stored ledger rows + CLI `info` payloads\n * + lockfile audit refs).\n *\n * Phase 1 landed the published-version row + integrity descriptor.\n * Phase 3.1-bis aligned the registry server's resource model with the\n * framework's user/org/api-key identity layer: the publish-time\n * identity is now `ApiKeyOrganization._id` only — `ApiKeyOrganization`\n * has no `email` field, and api-keys are typically used by automation\n * (CI/CD), not interactively by a user. The wire schema reflects that\n * decision: `publishedByOrgApiKeyId` replaces the old\n * `publishedBy: { keyId, email }` envelope.\n *\n * Phase 5 install/update verifies `integrity` before unzipping.\n */\n\nimport { z } from 'zod';\nimport { Sha256DigestSchema } from './digest.schemas';\nimport { ModuleManifestSchema } from './module-manifest.schemas';\n\n/**\n * One immutable published version row. Mirrors `RegistryModuleVersion`\n * fields documented in the analysis plan's \"Registry Server Data\n * Model\" section.\n */\nexport const ModuleVersionRecordSchema = z.strictObject({\n moduleId: z.string().min(1),\n version: z.string().min(1),\n manifest: ModuleManifestSchema,\n /** Engine-`FILES`-resource id of the artifact zip in storage. */\n artifactFileId: z.string().min(1),\n /** Required `sha256:<hex>` digest of the artifact bytes. */\n integrity: Sha256DigestSchema,\n /** Total artifact size in bytes (informational + DoS clamp). */\n sizeBytes: z.number().int().nonnegative(),\n publishedAt: z.iso.datetime({ offset: true }),\n /**\n * `ApiKeyOrganization._id` of the api-key used at publish time.\n * The framework's `ApiKeyOrganization` is org-scoped and has no\n * `email` / `userId` field, so the wire identity tracks the\n * api-key only — readers who want richer publisher attribution\n * resolve the api-key against the framework's `ORG_API_KEYS`\n * resource separately.\n */\n publishedByOrgApiKeyId: z.string().min(1),\n /** ISO datetime when the version was yanked. Soft-yank by default (KD-9). */\n yankedAt: z.iso.datetime({ offset: true }).optional(),\n yankReason: z.string().optional(),\n /**\n * Reserved for future signing implementations. Format intentionally\n * left open until the signing decision is taken (deferred per the\n * \"Deferred / Out Of Scope\" section of the plan).\n */\n signatures: z.array(z.unknown()).optional(),\n});\nexport type ModuleVersionRecord = z.infer<typeof ModuleVersionRecordSchema>;\n\n/**\n * A yanked release is still served by EXACT version (#1758): an application whose lockfile pins it\n * must be able to reinstall. The artifact download then carries the yank in these two headers, and the\n * resolve response carries it as {@link RegistryYankNoticeSchema}, so a client can warn.\n * The reason is free text, so it travels percent-encoded (`encodeURIComponent`) — never raw in a header.\n */\nexport const REGISTRY_YANKED_AT_HEADER = 'x-wildo-yanked-at';\nexport const REGISTRY_YANK_REASON_HEADER = 'x-wildo-yank-reason';\n\nexport const RegistryYankNoticeSchema = z.object({\n yankedAt: z.iso.datetime({ offset: true }),\n reason: z.string().optional(),\n});\nexport type RegistryYankNotice = z.infer<typeof RegistryYankNoticeSchema>;\n\n/**\n * 7th-pass S-M3: wire schema for the `PUT /v1/registry/:domain/modules/:moduleId/tags/:tag`\n * response. Documented so future CLI consumers can Zod-parse it\n * without guessing the shape.\n *\n * `noChange: true` signals that the requested `(tag, version)` mapping\n * was already in place — the registry short-circuited the repo write\n * + audit emission to keep SIEM counts honest. Optional so successful\n * mutations omit it. Consumers should treat absence as `false`.\n */\nexport const SetTagResponseSchema = z.object({\n ok: z.boolean(),\n noChange: z.boolean().optional(),\n});\nexport type SetTagResponse = z.infer<typeof SetTagResponseSchema>;\n\n/**\n * `GET /v1/auth/whoami` on the REGISTRY SERVER — the identity a bearer key resolves to, read by\n * `wildo registry login` and `whoami --verify`. The CLI Zod-parses every required field so a misconfigured registry\n * that omits `organizationId` cannot persist a credential with `org=?`.\n *\n * `roles` is optional because not every registry deployment models\n * roles today; when supplied it lands on the per-machine credential\n * blob for staleness UX.\n *\n * 4th-pass review M5: the schema is `.object({...})` (NOT `.strictObject`)\n * so the registry server can add new optional response fields\n * (`tokenIssuedAt`, `lastUsedAt`, etc.) WITHOUT every existing CLI\n * version refusing to authenticate. The CLI still fails-closed on\n * missing required fields; only unknown additional fields are\n * silently dropped on the client side. Forward-compat is the priority\n * here since CLI versions cannot be flushed in lockstep with server\n * deployments.\n */\nexport const RegistryWhoamiResponseSchema = z.object({\n organizationId: z.string().min(1),\n apiKeyId: z.string().min(1),\n apiKeyName: z.string().min(1).optional(),\n roles: z.array(z.string().min(1)).optional(),\n});\nexport type RegistryWhoamiResponse = z.infer<typeof RegistryWhoamiResponseSchema>;\n"]}
1
+ {"version":3,"file":"module-artifact.schemas.js","sourceRoot":"","sources":["../../../src/regist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yBAAyB,GAAG,mBAAmB,CAAC;AAC7D,MAAM,CAAC,MAAM,2BAA2B,GAAG,qBAAqB,CAAC;AAEjE,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,QAAQ,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAC1C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AAGH;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE;IACf,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC;AAGH;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACjC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACxC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC5C;;;;;OAKG;IACH,eAAe,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC7D,CAAC,CAAC","sourcesContent":["/**\n * Module-artifact schemas — metadata that travels alongside the zip\n * artifact bytes (server-stored ledger rows + CLI `info` payloads\n * + lockfile audit refs).\n *\n * Phase 1 landed the published-version row + integrity descriptor.\n * Phase 3.1-bis aligned the registry server's resource model with the\n * framework's user/org/api-key identity layer: the publish-time\n * identity is now `ApiKeyOrganization._id` only — `ApiKeyOrganization`\n * has no `email` field, and api-keys are typically used by automation\n * (CI/CD), not interactively by a user. The wire schema reflects that\n * decision: `publishedByOrgApiKeyId` replaces the old\n * `publishedBy: { keyId, email }` envelope.\n *\n * Phase 5 install/update verifies `integrity` before unzipping.\n */\n\nimport { z } from 'zod';\nimport { Sha256DigestSchema } from './digest.schemas';\nimport { ModuleManifestSchema } from './module-manifest.schemas';\n\n/**\n * One immutable published version row. Mirrors `RegistryModuleVersion`\n * fields documented in the analysis plan's \"Registry Server Data\n * Model\" section.\n */\nexport const ModuleVersionRecordSchema = z.strictObject({\n moduleId: z.string().min(1),\n version: z.string().min(1),\n manifest: ModuleManifestSchema,\n /** Engine-`FILES`-resource id of the artifact zip in storage. */\n artifactFileId: z.string().min(1),\n /** Required `sha256:<hex>` digest of the artifact bytes. */\n integrity: Sha256DigestSchema,\n /** Total artifact size in bytes (informational + DoS clamp). */\n sizeBytes: z.number().int().nonnegative(),\n publishedAt: z.iso.datetime({ offset: true }),\n /**\n * `ApiKeyOrganization._id` of the api-key used at publish time.\n * The framework's `ApiKeyOrganization` is org-scoped and has no\n * `email` / `userId` field, so the wire identity tracks the\n * api-key only — readers who want richer publisher attribution\n * resolve the api-key against the framework's `ORG_API_KEYS`\n * resource separately.\n */\n publishedByOrgApiKeyId: z.string().min(1),\n /** ISO datetime when the version was yanked. Soft-yank by default (KD-9). */\n yankedAt: z.iso.datetime({ offset: true }).optional(),\n yankReason: z.string().optional(),\n /**\n * Reserved for future signing implementations. Format intentionally\n * left open until the signing decision is taken (deferred per the\n * \"Deferred / Out Of Scope\" section of the plan).\n */\n signatures: z.array(z.unknown()).optional(),\n});\nexport type ModuleVersionRecord = z.infer<typeof ModuleVersionRecordSchema>;\n\n/**\n * A yanked release is still served by EXACT version (#1758): an application whose lockfile pins it\n * must be able to reinstall. The artifact download then carries the yank in these two headers, and the\n * resolve response carries it as {@link RegistryYankNoticeSchema}, so a client can warn.\n * The reason is free text, so it travels percent-encoded (`encodeURIComponent`) — never raw in a header.\n */\nexport const REGISTRY_YANKED_AT_HEADER = 'x-wildo-yanked-at';\nexport const REGISTRY_YANK_REASON_HEADER = 'x-wildo-yank-reason';\n\nexport const RegistryYankNoticeSchema = z.object({\n yankedAt: z.iso.datetime({ offset: true }),\n reason: z.string().optional(),\n});\nexport type RegistryYankNotice = z.infer<typeof RegistryYankNoticeSchema>;\n\n/**\n * 7th-pass S-M3: wire schema for the `PUT /v1/registry/:domain/modules/:moduleId/tags/:tag`\n * response. Documented so future CLI consumers can Zod-parse it\n * without guessing the shape.\n *\n * `noChange: true` signals that the requested `(tag, version)` mapping\n * was already in place — the registry short-circuited the repo write\n * + audit emission to keep SIEM counts honest. Optional so successful\n * mutations omit it. Consumers should treat absence as `false`.\n */\nexport const SetTagResponseSchema = z.object({\n ok: z.boolean(),\n noChange: z.boolean().optional(),\n});\nexport type SetTagResponse = z.infer<typeof SetTagResponseSchema>;\n\n/**\n * `GET /v1/auth/whoami` on the REGISTRY SERVER — the identity a bearer key resolves to, read by\n * `wildo registry login` and `whoami --verify`. The CLI Zod-parses every required field so a misconfigured registry\n * that omits `organizationId` cannot persist a credential with `org=?`.\n *\n * `roles` is optional because not every registry deployment models\n * roles today; when supplied it lands on the per-machine credential\n * blob for staleness UX.\n *\n * 4th-pass review M5: the schema is `.object({...})` (NOT `.strictObject`)\n * so the registry server can add new optional response fields\n * (`tokenIssuedAt`, `lastUsedAt`, etc.) WITHOUT every existing CLI\n * version refusing to authenticate. The CLI still fails-closed on\n * missing required fields; only unknown additional fields are\n * silently dropped on the client side. Forward-compat is the priority\n * here since CLI versions cannot be flushed in lockstep with server\n * deployments.\n */\nexport const RegistryWhoamiResponseSchema = z.object({\n organizationId: z.string().min(1),\n apiKeyId: z.string().min(1),\n apiKeyName: z.string().min(1).optional(),\n roles: z.array(z.string().min(1)).optional(),\n /**\n * When the key stops authenticating, as an ISO-8601 instant (#2194). Absent for a key with no expiry, and from a\n * registry server older than the field: a client reads absence as \"unknown\", never as \"never expires\", and says\n * nothing rather than guessing. `wildo registry login` and `whoami --verify` warn from\n * `REGISTRY_KEY_EXPIRY_WARNING_DAYS` before it, so the release's provider step does not meet a lapsed key first.\n */\n apiKeyExpiresAt: z.iso.datetime({ offset: true }).optional(),\n});\nexport type RegistryWhoamiResponse = z.infer<typeof RegistryWhoamiResponseSchema>;\n"]}
@@ -545,12 +545,13 @@ export declare enum ProviderVendorChangeWatchKind {
545
545
  OPENAPI_REVISION = "openapi-revision",
546
546
  /**
547
547
  * `target` is the vendor's changelog: a feed or a plain page. `observed` is `sha256:<hex>` of the body as last
548
- * reviewed, so ANY edit is a change. Point it at a feed or a raw changelog file rather than a rendered page, whose
549
- * markup moves on every deployment.
548
+ * reviewed, less an RSS feed's `<lastBuildDate>`, which a static-site host restamps at every build (#4065); so any
549
+ * other edit is a change. Point it at a feed or a raw changelog file rather than a rendered page, whose markup moves on
550
+ * every deployment.
550
551
  */
551
552
  CHANGELOG_URL = "changelog-url"
552
553
  }
553
- /** The form of a CHANGELOG_URL entry's `observed` value: the SHA-256 of the body, as the watch writes it. */
554
+ /** The form of a CHANGELOG_URL entry's `observed` value: the SHA-256 the watch writes (`changelogDigest`). */
554
555
  export declare const PROVIDER_CHANGELOG_OBSERVED_PATTERN: RegExp;
555
556
  /**
556
557
  * One thing the vendor publishes that the module is watched by. See {@link ProviderVendorChangeWatchKind}.
@@ -1 +1 @@
1
- {"version":3,"file":"module-manifest.schemas.d.ts","sourceRoot":"","sources":["../../../src/registry/module-manifest.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAqC,YAAY,EAAkC,KAAK,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAUh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"}
@@ -675,12 +675,13 @@ export var ProviderVendorChangeWatchKind;
675
675
  ProviderVendorChangeWatchKind["OPENAPI_REVISION"] = "openapi-revision";
676
676
  /**
677
677
  * `target` is the vendor's changelog: a feed or a plain page. `observed` is `sha256:<hex>` of the body as last
678
- * reviewed, so ANY edit is a change. Point it at a feed or a raw changelog file rather than a rendered page, whose
679
- * markup moves on every deployment.
678
+ * reviewed, less an RSS feed's `<lastBuildDate>`, which a static-site host restamps at every build (#4065); so any
679
+ * other edit is a change. Point it at a feed or a raw changelog file rather than a rendered page, whose markup moves on
680
+ * every deployment.
680
681
  */
681
682
  ProviderVendorChangeWatchKind["CHANGELOG_URL"] = "changelog-url";
682
683
  })(ProviderVendorChangeWatchKind || (ProviderVendorChangeWatchKind = {}));
683
- /** The form of a CHANGELOG_URL entry's `observed` value: the SHA-256 of the body, as the watch writes it. */
684
+ /** The form of a CHANGELOG_URL entry's `observed` value: the SHA-256 the watch writes (`changelogDigest`). */
684
685
  export const PROVIDER_CHANGELOG_OBSERVED_PATTERN = /^sha256:[0-9a-f]{64}$/;
685
686
  /**
686
687
  * One thing the vendor publishes that the module is watched by. See {@link ProviderVendorChangeWatchKind}.