sanoma 0.10.7 → 0.10.12
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 +3 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js.map +1 -1
- package/dist/secrets.d.ts +2 -0
- package/dist/secrets.js +3 -0
- package/dist/secrets.js.map +1 -0
- package/identity/Dockerfile +1 -1
- package/package.json +7 -3
package/README.md
CHANGED
|
@@ -144,7 +144,9 @@ With none named, a company runs on its own PostgreSQL 18, from the `@sanoma-ai/p
|
|
|
144
144
|
|
|
145
145
|
## Secret storage and bootstrap
|
|
146
146
|
|
|
147
|
-
Configure `secrets`, `connections` and `connectionRules` in `sanoma.config.ts`; workflow code names a connection and resource data files contain secret references. See the runtime's [configuration and connection examples](../workflows/README.md#credentials) for the exported types and ownership rules. The default is encrypted rows in the company's Postgres.
|
|
147
|
+
Configure `secrets`, `connections` and `connectionRules` in `sanoma.config.ts`; workflow code names a connection and resource data files contain secret references. See the runtime's [configuration and connection examples](../workflows/README.md#credentials) for the exported types and ownership rules. The default is encrypted rows in the company's Postgres. A configured `SecretStore` or runtime-bound store factory replaces that storage; the [Supabase Vault adapter](../../connectors/supabase/README.md#supabase-vault-as-the-secret-store) supports BYOC. The app's [connection forms](../app/README.md#connection-management) verify and save accounts through this selected store. Going live uses explicitly declared default connections for vendors with named authentication.
|
|
148
|
+
|
|
149
|
+
For managed Cloud configuration, `import { managedKmsStore } from "sanoma/secrets"` supplies the [KMS-backed Postgres store](../workflows/KMS-SECRETS.md#runtime-boundary) from a fixed company/key reference and broker `{ endpoint, credential }`. The runtime uses its existing database pool and opens and closes the KMS client itself. Keep the credential reader in trusted deployment config; workflow code uses logical secret references. This helper does not provision infrastructure or establish deployed Cloud readiness.
|
|
148
150
|
|
|
149
151
|
`SANOMA_SIGNING_KEY` signs app sessions and authorization state. `SANOMA_SECRETS_KEY` protects the built-in encrypted rows. Both are independent random 32-byte values encoded as base64. Supply a key directly or use `SANOMA_SIGNING_KEY_FILE` / `SANOMA_SECRETS_KEY_FILE` for a mounted file, never both sources for one key. First local start generates missing keys in ignored `.env`, creating the file with owner-only permissions. Direct and mounted inputs are validated before startup; conflicting sources, unreadable files and malformed values fail without printing their contents. External-store configurations need the signing key and the provider's bootstrap identity, but no Sanoma row-encryption key.
|
|
150
152
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" preserve="true" />
|
|
2
2
|
export { type AppDefinition, type ApprovalRequest, type ApprovalResult, type ApprovalState, type Approver, type Builtin, type Connector, type Ctx, defineApp, defineConfig, defineSteps, defineWorkflow, type Driver, errorCode, type ErrorCode, type Expect, jsonlLedger, type LedgerRecord, type LedgerStore, mayDecide, memoryLedger, postgresLedger, type Principal, type RunView, sanoma, type Seed, type SanomaConfig, type SleepRequest, type StartedBy, type StepOptions, type Steps, type Trigger, type Use, type WorkflowDefinition, } from "@sanoma-ai/workflows";
|
|
3
3
|
export { z } from "zod";
|
|
4
|
-
export { type SecretConfiguration, type SecretBinding, type SecretStore, type SecretStoreCapabilities, type SecretAddress, type SecretValue, type Authentication, defineAuthentication, } from "@sanoma-ai/workflows";
|
|
4
|
+
export { type SecretConfiguration, type SecretBinding, type SecretStore, type SecretStoreFactory, type SecretStoreCapabilities, type SecretAddress, type SecretValue, type Authentication, defineAuthentication, } from "@sanoma-ai/workflows";
|
|
5
5
|
export { defineConnection, defineConnectionRule, connectionRef, type ConnectionRef, type ConnectionDefinition, type ConnectionRule, } from "@sanoma-ai/workflows";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAC3F,0FAA0F;AAC1F,mFAAmF;AACnF,8CAA8C;AAC9C,sFAAsF;AACtF,kGAAkG;AAClG,+FAA+F;AAC/F,6LAA6L;AAC7L,eAAe;AACf,OAAO,EASL,SAAS,EACT,YAAY,EACZ,WAAW,EACX,cAAc,EAEd,SAAS,EAGT,WAAW,EAGX,SAAS,EACT,YAAY,EACZ,cAAc,EAGd,MAAM,GAUP,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAC3F,0FAA0F;AAC1F,mFAAmF;AACnF,8CAA8C;AAC9C,sFAAsF;AACtF,kGAAkG;AAClG,+FAA+F;AAC/F,6LAA6L;AAC7L,eAAe;AACf,OAAO,EASL,SAAS,EACT,YAAY,EACZ,WAAW,EACX,cAAc,EAEd,SAAS,EAGT,WAAW,EAGX,SAAS,EACT,YAAY,EACZ,cAAc,EAGd,MAAM,GAUP,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EASL,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,GAId,MAAM,sBAAsB,CAAC"}
|
package/dist/secrets.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secrets.js","sourceRoot":"","sources":["../src/secrets.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,OAAO,EAAE,eAAe,EAA0B,MAAM,kCAAkC,CAAC"}
|
package/identity/Dockerfile
CHANGED
|
@@ -10,5 +10,5 @@ USER node
|
|
|
10
10
|
WORKDIR /home/node
|
|
11
11
|
EXPOSE 8080
|
|
12
12
|
HEALTHCHECK --interval=30s --timeout=3s \
|
|
13
|
-
CMD node -e "fetch('http://127.0.0.1:' + process.env.PORT + '/
|
|
13
|
+
CMD node -e "fetch('http://127.0.0.1:' + process.env.PORT + '/health').then(r => process.exit(r.ok ? 0 : 1), () => process.exit(1))"
|
|
14
14
|
ENTRYPOINT ["sanoma", "identity"]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sanoma",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.12",
|
|
4
4
|
"description": "One command over a Sanoma repo: run the worker and the app, check it, write its .env.example, export a run's ledger",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"approvals",
|
|
@@ -60,6 +60,10 @@
|
|
|
60
60
|
"types": "./dist/data.d.ts",
|
|
61
61
|
"default": "./dist/data.js"
|
|
62
62
|
},
|
|
63
|
+
"./secrets": {
|
|
64
|
+
"types": "./dist/secrets.d.ts",
|
|
65
|
+
"default": "./dist/secrets.js"
|
|
66
|
+
},
|
|
63
67
|
"./claims": {
|
|
64
68
|
"types": "./dist/claims.d.ts",
|
|
65
69
|
"default": "./dist/claims.js"
|
|
@@ -70,10 +74,10 @@
|
|
|
70
74
|
"access": "public"
|
|
71
75
|
},
|
|
72
76
|
"dependencies": {
|
|
73
|
-
"@sanoma-ai/app": "0.10.
|
|
77
|
+
"@sanoma-ai/app": "0.10.4",
|
|
74
78
|
"@sanoma-ai/bridge": "0.5.1",
|
|
75
79
|
"@sanoma-ai/connector-better-auth": "0.2.1",
|
|
76
|
-
"@sanoma-ai/workflows": "0.10.
|
|
80
|
+
"@sanoma-ai/workflows": "0.10.12",
|
|
77
81
|
"@types/node": "^26.6.4",
|
|
78
82
|
"oxlint": "^1.87.0",
|
|
79
83
|
"pg": "^8.23.1",
|