Skip to content

Commit c43d376

Browse files
authored
Merge pull request #35 from objectstack-ai/chore/bump-objectstack-12.1
chore(objectos): bump @objectstack 10.2 → 12.1 so the runtime image ships latest
2 parents 4254851 + ca58521 commit c43d376

4 files changed

Lines changed: 1297 additions & 644 deletions

File tree

‎apps/objectos/objectstack.config.ts‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,19 @@ const environmentId =
4646
const databaseUrl =
4747
process.env.OS_BUSINESS_DB_URL ?? process.env.OS_DATABASE_URL;
4848

49-
export default await createStandaloneStack({
49+
const stack = await createStandaloneStack({
5050
artifactPath: artifactFile,
5151
environmentId,
5252
databaseUrl,
5353
});
54+
55+
// @objectstack 12.1 workaround: createStandaloneStack hard-codes
56+
// `api.projectResolution: 'none'` for the single-tenant standalone case, but the
57+
// 12.1 protocol validator's `api.projectResolution` enum only accepts
58+
// required|optional|auto (the field is optional). Since standalone runs with
59+
// `enableProjectScoping: false`, drop the field so compile/validate passes.
60+
const { projectResolution: _drop, ...api } = stack.api as {
61+
projectResolution?: string;
62+
} & Record<string, unknown>;
63+
64+
export default { ...stack, api };

‎apps/objectos/package.json‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@
1313
"type-check": "tsc --noEmit"
1414
},
1515
"dependencies": {
16-
"@objectstack/cli": "^10.2.0",
17-
"@objectstack/cloud-connection": "^10.2.0",
18-
"@objectstack/console": "^10.2.0",
19-
"@objectstack/core": "^10.2.0",
20-
"@objectstack/driver-memory": "^10.2.0",
21-
"@objectstack/driver-sql": "^10.2.0",
22-
"@objectstack/metadata": "^10.2.0",
23-
"@objectstack/objectql": "^10.2.0",
24-
"@objectstack/runtime": "^10.2.0",
25-
"@objectstack/spec": "^10.2.0",
16+
"@objectstack/cli": "^12.1.0",
17+
"@objectstack/cloud-connection": "^12.1.0",
18+
"@objectstack/console": "^12.1.0",
19+
"@objectstack/core": "^12.1.0",
20+
"@objectstack/driver-memory": "^12.1.0",
21+
"@objectstack/driver-sql": "^12.1.0",
22+
"@objectstack/metadata": "^12.1.0",
23+
"@objectstack/objectql": "^12.1.0",
24+
"@objectstack/runtime": "^12.1.0",
25+
"@objectstack/spec": "^12.1.0",
2626
"pg": "^8.0.0"
2727
},
2828
"devDependencies": {

‎docker/docker-compose.yml‎

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
# ===========================================================================
2+
# ⚠️ REQUIRED in production (image runs with NODE_ENV=production):
3+
# - OS_SECRET_KEY : 32-byte hex, stable across restarts/nodes. Without it
4+
# the container REFUSES TO START (LocalCryptoProvider
5+
# guards sys_secret / datasource credentials). It is NOT
6+
# auto-generated on purpose — a minted-then-lost key would
7+
# make every encrypted value undecryptable.
8+
# - OS_AUTH_SECRET : session signing secret; plugin-auth refuses a temporary
9+
# dev secret in production.
10+
# Generate each once and keep them: openssl rand -hex 32
11+
# Set them in a .env file next to this compose (or export in the shell):
12+
# OS_SECRET_KEY=... OS_AUTH_SECRET=...
13+
# ===========================================================================
114
services:
215
objectos:
316
build:
@@ -13,8 +26,8 @@ services:
1326
OS_PROJECT_ID: ${OS_PROJECT_ID:-}
1427
OS_ARTIFACT_FILE: ${OS_ARTIFACT_FILE:-/artifacts/objectstack.json}
1528
OS_BUSINESS_DB_URL: ${OS_BUSINESS_DB_URL:-file:/var/lib/objectos/data.db}
16-
OS_SECRET_KEY: ${OS_SECRET_KEY:-}
17-
OS_AUTH_SECRET: ${OS_AUTH_SECRET:-}
29+
OS_SECRET_KEY: ${OS_SECRET_KEY:-} # REQUIRED — empty = container won't boot (see header)
30+
OS_AUTH_SECRET: ${OS_AUTH_SECRET:-} # REQUIRED in production (see header)
1831
OS_CORS_ORIGIN: ${OS_CORS_ORIGIN:-}
1932
OS_CACHE_DIR: /var/cache/objectos
2033
PORT: 3000

0 commit comments

Comments
 (0)