create-astram-app 0.14.13 → 0.14.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-astram-app",
3
- "version": "0.14.13",
3
+ "version": "0.14.15",
4
4
  "license": "MIT",
5
5
  "description": "Scaffolder for a new Astram app — emits a running, framework-enforced NestJS server (deny-by-default, built-in auth/identity to switch on) and, with --with-frontend, a React admin/auth UI, over the immutable @astram/* framework packages.",
6
6
  "type": "module",
@@ -15,7 +15,7 @@
15
15
  "test": "node scripts/run-tests.mjs"
16
16
  },
17
17
  "dependencies": {
18
- "@astram/frontend-core": "^0.16.0",
18
+ "@astram/frontend-core": "^0.17.0",
19
19
  "@astram/sdk": "^0.2.1",
20
20
  "@radix-ui/react-alert-dialog": "^1.1.19",
21
21
  "@radix-ui/react-avatar": "^1.1.10",
@@ -140,8 +140,13 @@ NODE_ENV=development
140
140
  # value fails boot).
141
141
  # OBJECT_STORAGE_ACCESS_KEY_ID=secret-ref:object-storage/access-key-id
142
142
  # OBJECT_STORAGE_SECRET_ACCESS_KEY=secret-ref:object-storage/secret-access-key
143
- # Server-side encryption: AES256 (SSE-S3, the default and only accepted value).
143
+ # Server-side encryption: AES256 (SSE-S3, the default) or SSE-C (a customer-provided 256-bit
144
+ # key sent on every request, for providers that refuse SSE-S3, e.g. Hetzner Object Storage).
144
145
  # OBJECT_STORAGE_SSE=AES256
146
+ # SSE-C only: the key as base64 of 32 bytes (`openssl rand -base64 32`), an https: endpoint, and a
147
+ # `secret-ref:` outside development/test. The app key needs s3:ListBucket plus Get/Put/DeleteObject.
148
+ # Losing the key loses every stored file: back it up next to the secrets KEK.
149
+ # OBJECT_STORAGE_SSE_C_KEY=secret-ref:object-storage/sse-c-key
145
150
  # Upload size cap in bytes (default 10 MiB; above the 50 MiB ceiling fails boot).
146
151
  # OBJECT_STORAGE_MAX_BYTES=10485760
147
152
 
@@ -24,13 +24,13 @@
24
24
  "postinstall": "node scripts/sync-astram-guide.mjs"
25
25
  },
26
26
  "dependencies": {
27
- "@astram/core": "1.19.0",
28
- "@astram/engine": "0.21.0",
29
- "@astram/guard": "0.34.1",
27
+ "@astram/core": "1.20.0",
28
+ "@astram/engine": "0.22.0",
29
+ "@astram/guard": "0.36.0",
30
30
  "@astram/guide": "^0.2.8",
31
- "@astram/identity": "0.32.3",
32
- "@astram/messaging": "0.1.23",
33
- "@astram/migrate": "0.7.9",
31
+ "@astram/identity": "0.34.2",
32
+ "@astram/messaging": "0.1.27",
33
+ "@astram/migrate": "0.7.10",
34
34
  "@astram/sdk": "^0.2.0",
35
35
  "@nestjs/common": "^11.2.7",
36
36
  "@nestjs/core": "^11.2.7",
@@ -110,6 +110,23 @@ import { DemoController } from './health/demo.controller';
110
110
  * The frontend ships the matching pages/widget (RecordPoliciesPage, ShareDialog)
111
111
  * already wired to `useAuth().recordPolicy` / `.recordShare`.
112
112
  *
113
+ * OPTIONAL, OFF BY DEFAULT — ADMIN-DEFINED TABLES (`SCHEMA_CHANGE_ENABLED=1`; interim, flagged;
114
+ * an owner decision, see the identity README "Admin-defined types"): tables created by approved
115
+ * `schema.change` proposals become usable types only after a RESTART. Read them once before the
116
+ * module is built and pass the SAME list to BOTH the engine and identity (a list given to only
117
+ * one of them fails closed). With the flag off the helper returns `[]` and opens no connection:
118
+ * import { loadSchemaChangeObjects } from '@astram/identity';
119
+ * import { EngineModule } from '@astram/engine';
120
+ * const generated = await loadSchemaChangeObjects(); // top level of main.ts, before
121
+ * // importing this module
122
+ * imports: [
123
+ * EngineModule.forFeature(generated),
124
+ * IdentityFeatureModule.forRoot({ extraObjects: [...extraObjects, ...generated] }),
125
+ * ],
126
+ * `app.module` is evaluated at import, so resolve `generated` in `main.ts` and hand it over
127
+ * (a module-level variable or a dynamic `import('./app.module')`, as `resolveBootSecrets()` does).
128
+ * The new keys (`identity:xt_<hex>:<action>`) need explicit grants; a wildcard never covers them.
129
+ *
113
130
  * OPTIONAL — YOUR OWN NOTIFICATIONS (with `auth: true`): register each kind you post, then post
114
131
  * with `src/notifications/app-notifications.service.ts` (an example to copy). `personal` kinds
115
132
  * show in the bell, `announcement` kinds under the Announcements icon; users see `label` as the