@open-mercato/starter 0.10.1-develop.8129.1.149839452c → 0.10.1-develop.8143.1.bf633ea932

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": "@open-mercato/starter",
3
- "version": "0.10.1-develop.8129.1.149839452c",
3
+ "version": "0.10.1-develop.8143.1.bf633ea932",
4
4
  "description": "One-command, cross-platform bootstrap for Open Mercato dev environments: prerequisite doctor, corporate TLS trust, idempotent setup steps, and a supervised hybrid or fully containerized stack.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -236,6 +236,7 @@ test('supplied root, ambient and company key/KMS settings survive missing app en
236
236
  const { ensureEnvFiles } = await import('../env-setup.mjs')
237
237
  const { parseEnv } = await import('node:util')
238
238
  const cases = [
239
+ { root: 'TENANT_DATA_ENCRYPTION=off\n', env: {}, extraDefaults: {}, expected: ['TENANT_DATA_ENCRYPTION', 'off'] },
239
240
  { root: 'TENANT_DATA_ENCRYPTION_KEY=root-fixture-key\n', env: {}, extraDefaults: {}, expected: ['TENANT_DATA_ENCRYPTION_KEY', 'root-fixture-key'] },
240
241
  { root: 'TENANT_DATA_ENCRYPTION_FALLBACK_KEY=user-original\n', env: {}, extraDefaults: { TENANT_DATA_ENCRYPTION_FALLBACK_KEY: 'company-default' }, expected: ['TENANT_DATA_ENCRYPTION_FALLBACK_KEY', 'user-original'] },
241
242
  { env: { TENANT_DATA_ENCRYPTION_KEY: 'ambient-fixture-key' }, extraDefaults: {}, expected: ['TENANT_DATA_ENCRYPTION_KEY', 'ambient-fixture-key'] },
package/src/env-setup.mjs CHANGED
@@ -69,7 +69,7 @@ export function ensureEnvFiles(repoRoot, { log = console.log, warn = console.war
69
69
  if (fs.existsSync(appEnvExample)) {
70
70
  let content = fs.readFileSync(appEnvExample, 'utf8')
71
71
  content = replaceEnvLine(content, 'JWT_SECRET', jwtSecret)
72
- if (encryptionConfigured && configuredValue('TENANT_DATA_ENCRYPTION_FALLBACK_KEY') === undefined) {
72
+ if (configuredValue('TENANT_DATA_ENCRYPTION_FALLBACK_KEY') === undefined) {
73
73
  content = replaceEnvLine(content, 'TENANT_DATA_ENCRYPTION_FALLBACK_KEY', '')
74
74
  }
75
75
  const suppliedSettings = Object.fromEntries(encryptionSettings.map(key => [key, configuredValue(key)]).filter(([, value]) => value !== undefined).map(([key, value]) => [key, String(value)]))