@kitsy/cnos 1.9.0 → 1.9.2
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/dist/build/index.cjs +5 -2
- package/dist/build/index.js +8 -8
- package/dist/{chunk-4WT5RCA6.js → chunk-2JBA2LXU.js} +1 -1
- package/dist/{chunk-HZYH2DQ4.js → chunk-6QQPHDUI.js} +1 -1
- package/dist/{chunk-PC5C3CBB.js → chunk-7JZO6XN3.js} +1 -1
- package/dist/{chunk-O4YQMDFY.js → chunk-7KVM5PUW.js} +4 -1
- package/dist/{chunk-YLFA2KTF.js → chunk-A2WG3ZKW.js} +1 -1
- package/dist/{chunk-FSGSOF5Q.js → chunk-CPGRRZLP.js} +8 -8
- package/dist/{chunk-4JFSS3DN.js → chunk-L7JVECPE.js} +1 -1
- package/dist/{chunk-ZTDPBZ7R.js → chunk-LURQ4LAK.js} +1 -1
- package/dist/{chunk-DKHI52KZ.js → chunk-NVFACB64.js} +1 -1
- package/dist/{chunk-6YY3U7WB.js → chunk-QK7BMU47.js} +3 -3
- package/dist/configure/index.cjs +5 -2
- package/dist/configure/index.js +8 -8
- package/dist/index.cjs +5 -2
- package/dist/index.js +10 -10
- package/dist/internal.cjs +4 -1
- package/dist/internal.d.cts +4 -1
- package/dist/internal.d.ts +4 -1
- package/dist/internal.js +2 -2
- package/dist/plugin/basic-schema.js +2 -2
- package/dist/plugin/cli-args.js +2 -2
- package/dist/plugin/dotenv.js +2 -2
- package/dist/plugin/env-export.js +2 -2
- package/dist/plugin/filesystem.js +2 -2
- package/dist/plugin/process-env.js +2 -2
- package/dist/runtime/index.cjs +5 -2
- package/dist/runtime/index.js +10 -10
- package/package.json +1 -1
package/dist/build/index.cjs
CHANGED
|
@@ -1857,7 +1857,7 @@ function getNamespaceDefinition(manifest, namespaceOrKey) {
|
|
|
1857
1857
|
const namespace = namespaceOrKey.includes(".") ? getNamespaceNameForKey(namespaceOrKey) : namespaceOrKey;
|
|
1858
1858
|
return manifest.namespaces[namespace] ?? DEFAULT_DATA_NAMESPACE;
|
|
1859
1859
|
}
|
|
1860
|
-
function ensureProjectionAllowed(manifest, key, target) {
|
|
1860
|
+
function ensureProjectionAllowed(manifest, key, target, options = {}) {
|
|
1861
1861
|
const namespace = getNamespaceNameForKey(key);
|
|
1862
1862
|
const definition = getNamespaceDefinition(manifest, namespace);
|
|
1863
1863
|
if (definition.kind !== "data") {
|
|
@@ -1866,6 +1866,9 @@ function ensureProjectionAllowed(manifest, key, target) {
|
|
|
1866
1866
|
);
|
|
1867
1867
|
}
|
|
1868
1868
|
if (definition.sensitive) {
|
|
1869
|
+
if (target === "env" && namespace === "secret" && options.allowSecretForEnv) {
|
|
1870
|
+
return;
|
|
1871
|
+
}
|
|
1869
1872
|
throw new CnosSecurityError(
|
|
1870
1873
|
`Cannot promote ${key} to ${target} because namespace "${namespace}" is sensitive.`
|
|
1871
1874
|
);
|
|
@@ -3717,7 +3720,7 @@ function envVarToLogicalKey(envVar, config = {}) {
|
|
|
3717
3720
|
// package.json
|
|
3718
3721
|
var package_default = {
|
|
3719
3722
|
name: "@kitsy/cnos",
|
|
3720
|
-
version: "1.9.
|
|
3723
|
+
version: "1.9.2",
|
|
3721
3724
|
description: "Batteries-included CNOS runtime package wired with the official plugins.",
|
|
3722
3725
|
type: "module",
|
|
3723
3726
|
main: "./dist/index.cjs",
|
package/dist/build/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCnos
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-CPGRRZLP.js";
|
|
4
|
+
import "../chunk-LURQ4LAK.js";
|
|
5
|
+
import "../chunk-A2WG3ZKW.js";
|
|
6
|
+
import "../chunk-L7JVECPE.js";
|
|
7
|
+
import "../chunk-6QQPHDUI.js";
|
|
8
|
+
import "../chunk-7JZO6XN3.js";
|
|
9
|
+
import "../chunk-2JBA2LXU.js";
|
|
10
10
|
import {
|
|
11
11
|
CnosManifestError,
|
|
12
12
|
createSecretVaultProvider,
|
|
13
13
|
isSecretReference
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-7KVM5PUW.js";
|
|
15
15
|
|
|
16
16
|
// src/build/index.ts
|
|
17
17
|
async function resolveBrowserData(options = {}) {
|
|
@@ -1705,7 +1705,7 @@ function getNamespaceDefinition(manifest, namespaceOrKey) {
|
|
|
1705
1705
|
const namespace = namespaceOrKey.includes(".") ? getNamespaceNameForKey(namespaceOrKey) : namespaceOrKey;
|
|
1706
1706
|
return manifest.namespaces[namespace] ?? DEFAULT_DATA_NAMESPACE;
|
|
1707
1707
|
}
|
|
1708
|
-
function ensureProjectionAllowed(manifest, key, target) {
|
|
1708
|
+
function ensureProjectionAllowed(manifest, key, target, options = {}) {
|
|
1709
1709
|
const namespace = getNamespaceNameForKey(key);
|
|
1710
1710
|
const definition = getNamespaceDefinition(manifest, namespace);
|
|
1711
1711
|
if (definition.kind !== "data") {
|
|
@@ -1714,6 +1714,9 @@ function ensureProjectionAllowed(manifest, key, target) {
|
|
|
1714
1714
|
);
|
|
1715
1715
|
}
|
|
1716
1716
|
if (definition.sensitive) {
|
|
1717
|
+
if (target === "env" && namespace === "secret" && options.allowSecretForEnv) {
|
|
1718
|
+
return;
|
|
1719
|
+
}
|
|
1717
1720
|
throw new CnosSecurityError(
|
|
1718
1721
|
`Cannot promote ${key} to ${target} because namespace "${namespace}" is sensitive.`
|
|
1719
1722
|
);
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createEnvExportPlugin,
|
|
3
3
|
createPublicEnvExportPlugin
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LURQ4LAK.js";
|
|
5
5
|
import {
|
|
6
6
|
createFilesystemSecretsPlugin,
|
|
7
7
|
createFilesystemValuesPlugin
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-A2WG3ZKW.js";
|
|
9
9
|
import {
|
|
10
10
|
createProcessEnvPlugin
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-L7JVECPE.js";
|
|
12
12
|
import {
|
|
13
13
|
createBasicSchemaPlugin
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-6QQPHDUI.js";
|
|
15
15
|
import {
|
|
16
16
|
createCliArgsPlugin
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-7JZO6XN3.js";
|
|
18
18
|
import {
|
|
19
19
|
createDotenvPlugin
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-2JBA2LXU.js";
|
|
21
21
|
import {
|
|
22
22
|
createCnos,
|
|
23
23
|
createProvenanceInspector
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-7KVM5PUW.js";
|
|
25
25
|
|
|
26
26
|
// src/defaultPlugins.ts
|
|
27
27
|
function defaultPlugins() {
|
|
@@ -68,7 +68,7 @@ function setBootstrappedSecretHydrationRequired(value) {
|
|
|
68
68
|
// package.json
|
|
69
69
|
var package_default = {
|
|
70
70
|
name: "@kitsy/cnos",
|
|
71
|
-
version: "1.9.
|
|
71
|
+
version: "1.9.2",
|
|
72
72
|
description: "Batteries-included CNOS runtime package wired with the official plugins.",
|
|
73
73
|
type: "module",
|
|
74
74
|
main: "./dist/index.cjs",
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
graphRequiresSecretHydration,
|
|
4
4
|
readRuntimeGraphFromEnv,
|
|
5
5
|
readServerProjectionFromEnv
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NVFACB64.js";
|
|
7
7
|
import {
|
|
8
8
|
createCnos,
|
|
9
9
|
getBootstrappedSecretHydrationRequired,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
setBootstrappedSecretHydrationRequired,
|
|
13
13
|
setSingletonReady,
|
|
14
14
|
setSingletonRuntime
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CPGRRZLP.js";
|
|
16
16
|
import {
|
|
17
17
|
createDefaultRuntimeProviders,
|
|
18
18
|
createDerivedRuntimeSupport,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
toLogicalKey,
|
|
29
29
|
toNamespaceObject,
|
|
30
30
|
toPublicEnv
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-7KVM5PUW.js";
|
|
32
32
|
|
|
33
33
|
// src/runtime/index.ts
|
|
34
34
|
import { existsSync, readFileSync } from "fs";
|
package/dist/configure/index.cjs
CHANGED
|
@@ -1859,7 +1859,7 @@ function getNamespaceDefinition(manifest, namespaceOrKey) {
|
|
|
1859
1859
|
const namespace = namespaceOrKey.includes(".") ? getNamespaceNameForKey(namespaceOrKey) : namespaceOrKey;
|
|
1860
1860
|
return manifest.namespaces[namespace] ?? DEFAULT_DATA_NAMESPACE;
|
|
1861
1861
|
}
|
|
1862
|
-
function ensureProjectionAllowed(manifest, key, target) {
|
|
1862
|
+
function ensureProjectionAllowed(manifest, key, target, options = {}) {
|
|
1863
1863
|
const namespace = getNamespaceNameForKey(key);
|
|
1864
1864
|
const definition = getNamespaceDefinition(manifest, namespace);
|
|
1865
1865
|
if (definition.kind !== "data") {
|
|
@@ -1868,6 +1868,9 @@ function ensureProjectionAllowed(manifest, key, target) {
|
|
|
1868
1868
|
);
|
|
1869
1869
|
}
|
|
1870
1870
|
if (definition.sensitive) {
|
|
1871
|
+
if (target === "env" && namespace === "secret" && options.allowSecretForEnv) {
|
|
1872
|
+
return;
|
|
1873
|
+
}
|
|
1871
1874
|
throw new CnosSecurityError(
|
|
1872
1875
|
`Cannot promote ${key} to ${target} because namespace "${namespace}" is sensitive.`
|
|
1873
1876
|
);
|
|
@@ -3761,7 +3764,7 @@ function envVarToLogicalKey(envVar, config = {}) {
|
|
|
3761
3764
|
// package.json
|
|
3762
3765
|
var package_default = {
|
|
3763
3766
|
name: "@kitsy/cnos",
|
|
3764
|
-
version: "1.9.
|
|
3767
|
+
version: "1.9.2",
|
|
3765
3768
|
description: "Batteries-included CNOS runtime package wired with the official plugins.",
|
|
3766
3769
|
type: "module",
|
|
3767
3770
|
main: "./dist/index.cjs",
|
package/dist/configure/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCnos,
|
|
3
3
|
defaultPlugins
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-CPGRRZLP.js";
|
|
5
|
+
import "../chunk-LURQ4LAK.js";
|
|
6
|
+
import "../chunk-A2WG3ZKW.js";
|
|
7
|
+
import "../chunk-L7JVECPE.js";
|
|
8
|
+
import "../chunk-6QQPHDUI.js";
|
|
9
|
+
import "../chunk-7JZO6XN3.js";
|
|
10
|
+
import "../chunk-2JBA2LXU.js";
|
|
11
11
|
import {
|
|
12
12
|
planDump,
|
|
13
13
|
toEnv,
|
|
14
14
|
toPublicEnv,
|
|
15
15
|
writeDump
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-7KVM5PUW.js";
|
|
17
17
|
export {
|
|
18
18
|
createCnos,
|
|
19
19
|
defaultPlugins,
|
package/dist/index.cjs
CHANGED
|
@@ -1859,7 +1859,7 @@ function getNamespaceDefinition(manifest, namespaceOrKey) {
|
|
|
1859
1859
|
const namespace = namespaceOrKey.includes(".") ? getNamespaceNameForKey(namespaceOrKey) : namespaceOrKey;
|
|
1860
1860
|
return manifest.namespaces[namespace] ?? DEFAULT_DATA_NAMESPACE;
|
|
1861
1861
|
}
|
|
1862
|
-
function ensureProjectionAllowed(manifest, key, target) {
|
|
1862
|
+
function ensureProjectionAllowed(manifest, key, target, options = {}) {
|
|
1863
1863
|
const namespace = getNamespaceNameForKey(key);
|
|
1864
1864
|
const definition = getNamespaceDefinition(manifest, namespace);
|
|
1865
1865
|
if (definition.kind !== "data") {
|
|
@@ -1868,6 +1868,9 @@ function ensureProjectionAllowed(manifest, key, target) {
|
|
|
1868
1868
|
);
|
|
1869
1869
|
}
|
|
1870
1870
|
if (definition.sensitive) {
|
|
1871
|
+
if (target === "env" && namespace === "secret" && options.allowSecretForEnv) {
|
|
1872
|
+
return;
|
|
1873
|
+
}
|
|
1871
1874
|
throw new CnosSecurityError(
|
|
1872
1875
|
`Cannot promote ${key} to ${target} because namespace "${namespace}" is sensitive.`
|
|
1873
1876
|
);
|
|
@@ -3719,7 +3722,7 @@ function envVarToLogicalKey(envVar, config = {}) {
|
|
|
3719
3722
|
// package.json
|
|
3720
3723
|
var package_default = {
|
|
3721
3724
|
name: "@kitsy/cnos",
|
|
3722
|
-
version: "1.9.
|
|
3725
|
+
version: "1.9.2",
|
|
3723
3726
|
description: "Batteries-included CNOS runtime package wired with the official plugins.",
|
|
3724
3727
|
type: "module",
|
|
3725
3728
|
main: "./dist/index.cjs",
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runtime_default
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-QK7BMU47.js";
|
|
4
|
+
import "./chunk-NVFACB64.js";
|
|
5
|
+
import "./chunk-CPGRRZLP.js";
|
|
6
|
+
import "./chunk-LURQ4LAK.js";
|
|
7
|
+
import "./chunk-A2WG3ZKW.js";
|
|
8
|
+
import "./chunk-L7JVECPE.js";
|
|
9
|
+
import "./chunk-6QQPHDUI.js";
|
|
10
|
+
import "./chunk-7JZO6XN3.js";
|
|
11
|
+
import "./chunk-2JBA2LXU.js";
|
|
12
|
+
import "./chunk-7KVM5PUW.js";
|
|
13
13
|
export {
|
|
14
14
|
runtime_default as cnos,
|
|
15
15
|
runtime_default as default
|
package/dist/internal.cjs
CHANGED
|
@@ -1391,7 +1391,7 @@ function getNamespaceDefinition(manifest, namespaceOrKey) {
|
|
|
1391
1391
|
const namespace = namespaceOrKey.includes(".") ? getNamespaceNameForKey(namespaceOrKey) : namespaceOrKey;
|
|
1392
1392
|
return manifest.namespaces[namespace] ?? DEFAULT_DATA_NAMESPACE;
|
|
1393
1393
|
}
|
|
1394
|
-
function ensureProjectionAllowed(manifest, key, target) {
|
|
1394
|
+
function ensureProjectionAllowed(manifest, key, target, options = {}) {
|
|
1395
1395
|
const namespace = getNamespaceNameForKey(key);
|
|
1396
1396
|
const definition = getNamespaceDefinition(manifest, namespace);
|
|
1397
1397
|
if (definition.kind !== "data") {
|
|
@@ -1400,6 +1400,9 @@ function ensureProjectionAllowed(manifest, key, target) {
|
|
|
1400
1400
|
);
|
|
1401
1401
|
}
|
|
1402
1402
|
if (definition.sensitive) {
|
|
1403
|
+
if (target === "env" && namespace === "secret" && options.allowSecretForEnv) {
|
|
1404
|
+
return;
|
|
1405
|
+
}
|
|
1403
1406
|
throw new CnosSecurityError(
|
|
1404
1407
|
`Cannot promote ${key} to ${target} because namespace "${namespace}" is sensitive.`
|
|
1405
1408
|
);
|
package/dist/internal.d.cts
CHANGED
|
@@ -24,8 +24,11 @@ declare function writeKeychain(entry: string, value: string): Promise<void>;
|
|
|
24
24
|
declare function loadManifest(options?: LoadManifestOptions): Promise<LoadedManifest>;
|
|
25
25
|
|
|
26
26
|
type ProjectionTarget = 'public' | 'env';
|
|
27
|
+
interface ProjectionPolicyOptions {
|
|
28
|
+
allowSecretForEnv?: boolean;
|
|
29
|
+
}
|
|
27
30
|
declare function getNamespaceDefinition(manifest: NormalizedManifest, namespaceOrKey: string): NamespaceDefinition;
|
|
28
|
-
declare function ensureProjectionAllowed(manifest: NormalizedManifest, key: LogicalKey, target: ProjectionTarget): void;
|
|
31
|
+
declare function ensureProjectionAllowed(manifest: NormalizedManifest, key: LogicalKey, target: ProjectionTarget, options?: ProjectionPolicyOptions): void;
|
|
29
32
|
|
|
30
33
|
declare function resolveVaultAuth(vaultId: string, definition: VaultDefinition, processEnv?: Record<string, string | undefined>): Promise<VaultAuthConfig>;
|
|
31
34
|
|
package/dist/internal.d.ts
CHANGED
|
@@ -24,8 +24,11 @@ declare function writeKeychain(entry: string, value: string): Promise<void>;
|
|
|
24
24
|
declare function loadManifest(options?: LoadManifestOptions): Promise<LoadedManifest>;
|
|
25
25
|
|
|
26
26
|
type ProjectionTarget = 'public' | 'env';
|
|
27
|
+
interface ProjectionPolicyOptions {
|
|
28
|
+
allowSecretForEnv?: boolean;
|
|
29
|
+
}
|
|
27
30
|
declare function getNamespaceDefinition(manifest: NormalizedManifest, namespaceOrKey: string): NamespaceDefinition;
|
|
28
|
-
declare function ensureProjectionAllowed(manifest: NormalizedManifest, key: LogicalKey, target: ProjectionTarget): void;
|
|
31
|
+
declare function ensureProjectionAllowed(manifest: NormalizedManifest, key: LogicalKey, target: ProjectionTarget, options?: ProjectionPolicyOptions): void;
|
|
29
32
|
|
|
30
33
|
declare function resolveVaultAuth(vaultId: string, definition: VaultDefinition, processEnv?: Record<string, string | undefined>): Promise<VaultAuthConfig>;
|
|
31
34
|
|
package/dist/internal.js
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
serializeRuntimeGraph,
|
|
12
12
|
serializeSecretPayload,
|
|
13
13
|
serializeServerProjection
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NVFACB64.js";
|
|
15
15
|
import {
|
|
16
16
|
CnosAuthenticationError,
|
|
17
17
|
CnosSecurityError,
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
writeLocalSecret,
|
|
65
65
|
writeRemoteRootCacheMetadata,
|
|
66
66
|
writeVaultSessionKey
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-7KVM5PUW.js";
|
|
68
68
|
|
|
69
69
|
// src/codegen/generateTypes.ts
|
|
70
70
|
function toPascalCase(value) {
|
package/dist/plugin/cli-args.js
CHANGED
package/dist/plugin/dotenv.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createEnvExportPlugin,
|
|
3
3
|
createPublicEnvExportPlugin
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-LURQ4LAK.js";
|
|
5
5
|
import {
|
|
6
6
|
toEnv,
|
|
7
7
|
toPublicEnv
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-7KVM5PUW.js";
|
|
9
9
|
export {
|
|
10
10
|
createEnvExportPlugin,
|
|
11
11
|
createPublicEnvExportPlugin,
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
filesystemSecretsReader,
|
|
6
6
|
filesystemValuesReader,
|
|
7
7
|
yamlObjectToEntries
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-A2WG3ZKW.js";
|
|
9
|
+
import "../chunk-7KVM5PUW.js";
|
|
10
10
|
export {
|
|
11
11
|
collectFilesystemLayerFiles,
|
|
12
12
|
createFilesystemSecretsPlugin,
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
createProcessEnvPlugin,
|
|
3
3
|
processEnvEntriesFromObject,
|
|
4
4
|
processNamespaceEntriesFromContext
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-L7JVECPE.js";
|
|
6
|
+
import "../chunk-7KVM5PUW.js";
|
|
7
7
|
export {
|
|
8
8
|
createProcessEnvPlugin,
|
|
9
9
|
processEnvEntriesFromObject,
|
package/dist/runtime/index.cjs
CHANGED
|
@@ -1856,7 +1856,7 @@ function getNamespaceDefinition(manifest, namespaceOrKey) {
|
|
|
1856
1856
|
const namespace = namespaceOrKey.includes(".") ? getNamespaceNameForKey(namespaceOrKey) : namespaceOrKey;
|
|
1857
1857
|
return manifest.namespaces[namespace] ?? DEFAULT_DATA_NAMESPACE;
|
|
1858
1858
|
}
|
|
1859
|
-
function ensureProjectionAllowed(manifest, key, target) {
|
|
1859
|
+
function ensureProjectionAllowed(manifest, key, target, options = {}) {
|
|
1860
1860
|
const namespace = getNamespaceNameForKey(key);
|
|
1861
1861
|
const definition = getNamespaceDefinition(manifest, namespace);
|
|
1862
1862
|
if (definition.kind !== "data") {
|
|
@@ -1865,6 +1865,9 @@ function ensureProjectionAllowed(manifest, key, target) {
|
|
|
1865
1865
|
);
|
|
1866
1866
|
}
|
|
1867
1867
|
if (definition.sensitive) {
|
|
1868
|
+
if (target === "env" && namespace === "secret" && options.allowSecretForEnv) {
|
|
1869
|
+
return;
|
|
1870
|
+
}
|
|
1868
1871
|
throw new CnosSecurityError(
|
|
1869
1872
|
`Cannot promote ${key} to ${target} because namespace "${namespace}" is sensitive.`
|
|
1870
1873
|
);
|
|
@@ -3716,7 +3719,7 @@ function envVarToLogicalKey(envVar, config = {}) {
|
|
|
3716
3719
|
// package.json
|
|
3717
3720
|
var package_default = {
|
|
3718
3721
|
name: "@kitsy/cnos",
|
|
3719
|
-
version: "1.9.
|
|
3722
|
+
version: "1.9.2",
|
|
3720
3723
|
description: "Batteries-included CNOS runtime package wired with the official plugins.",
|
|
3721
3724
|
type: "module",
|
|
3722
3725
|
main: "./dist/index.cjs",
|
package/dist/runtime/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runtime_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-QK7BMU47.js";
|
|
4
|
+
import "../chunk-NVFACB64.js";
|
|
5
|
+
import "../chunk-CPGRRZLP.js";
|
|
6
|
+
import "../chunk-LURQ4LAK.js";
|
|
7
|
+
import "../chunk-A2WG3ZKW.js";
|
|
8
|
+
import "../chunk-L7JVECPE.js";
|
|
9
|
+
import "../chunk-6QQPHDUI.js";
|
|
10
|
+
import "../chunk-7JZO6XN3.js";
|
|
11
|
+
import "../chunk-2JBA2LXU.js";
|
|
12
|
+
import "../chunk-7KVM5PUW.js";
|
|
13
13
|
export {
|
|
14
14
|
runtime_default as default
|
|
15
15
|
};
|