@lucern/contracts 0.3.0-alpha.16 → 0.3.0-alpha.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/CHANGELOG.md +0 -7
- package/dist/api-enums.contract.d.ts +3 -5
- package/dist/api-enums.contract.js +12 -14
- package/dist/api-enums.contract.js.map +1 -1
- package/dist/auth-context.contract.js +1 -13
- package/dist/auth-context.contract.js.map +1 -1
- package/dist/auth-session.contract.js +1 -13
- package/dist/auth-session.contract.js.map +1 -1
- package/dist/auth.contract.d.ts +1 -1
- package/dist/auth.contract.js +1 -13
- package/dist/auth.contract.js.map +1 -1
- package/dist/context-pack.contract.d.ts +3 -5
- package/dist/context-pack.contract.js.map +1 -1
- package/dist/{defineTable-t1wr5wgn.d.ts → defineTable-CBQ03FXl.d.ts} +1 -1
- package/dist/{dsl-DVPthQGY.d.ts → dsl-BgpoVOVQ.d.ts} +2 -2
- package/dist/dsl.d.ts +2 -2
- package/dist/dsl.js +4 -1
- package/dist/dsl.js.map +1 -1
- package/dist/function-registry/beliefs.d.ts +51 -64
- package/dist/function-registry/beliefs.js +55 -815
- package/dist/function-registry/beliefs.js.map +1 -1
- package/dist/function-registry/coding.d.ts +6 -15
- package/dist/function-registry/coding.js +41 -864
- package/dist/function-registry/coding.js.map +1 -1
- package/dist/function-registry/context.d.ts +16 -22
- package/dist/function-registry/context.js +44 -803
- package/dist/function-registry/context.js.map +1 -1
- package/dist/function-registry/contracts.d.ts +3 -9
- package/dist/function-registry/contracts.js +37 -768
- package/dist/function-registry/contracts.js.map +1 -1
- package/dist/function-registry/coordination.d.ts +9 -21
- package/dist/function-registry/coordination.js +37 -768
- package/dist/function-registry/coordination.js.map +1 -1
- package/dist/function-registry/edges.d.ts +2 -167
- package/dist/function-registry/edges.js +69 -976
- package/dist/function-registry/edges.js.map +1 -1
- package/dist/function-registry/evidence.d.ts +41 -52
- package/dist/function-registry/evidence.js +60 -824
- package/dist/function-registry/evidence.js.map +1 -1
- package/dist/function-registry/graph.d.ts +66 -162
- package/dist/function-registry/graph.js +44 -884
- package/dist/function-registry/graph.js.map +1 -1
- package/dist/function-registry/helpers.d.ts +4 -7
- package/dist/function-registry/helpers.js +38 -769
- package/dist/function-registry/helpers.js.map +1 -1
- package/dist/function-registry/identity.d.ts +16 -62
- package/dist/function-registry/identity.js +43 -791
- package/dist/function-registry/identity.js.map +1 -1
- package/dist/function-registry/index.d.ts +3 -5
- package/dist/function-registry/index.js +41 -775
- package/dist/function-registry/index.js.map +1 -1
- package/dist/function-registry/judgments.d.ts +11 -16
- package/dist/function-registry/judgments.js +40 -780
- package/dist/function-registry/judgments.js.map +1 -1
- package/dist/function-registry/legacy.d.ts +1 -5
- package/dist/function-registry/legacy.js +37 -768
- package/dist/function-registry/legacy.js.map +1 -1
- package/dist/function-registry/lenses.d.ts +21 -28
- package/dist/function-registry/lenses.js +40 -791
- package/dist/function-registry/lenses.js.map +1 -1
- package/dist/function-registry/manifest.d.ts +6 -6
- package/dist/function-registry/manifest.js +2 -19
- package/dist/function-registry/manifest.js.map +1 -1
- package/dist/function-registry/ontologies.d.ts +56 -70
- package/dist/function-registry/ontologies.js +43 -786
- package/dist/function-registry/ontologies.js.map +1 -1
- package/dist/function-registry/pipeline.d.ts +16 -22
- package/dist/function-registry/pipeline.js +40 -777
- package/dist/function-registry/pipeline.js.map +1 -1
- package/dist/function-registry/questions.d.ts +61 -76
- package/dist/function-registry/questions.js +50 -867
- package/dist/function-registry/questions.js.map +1 -1
- package/dist/function-registry/tasks.d.ts +21 -28
- package/dist/function-registry/tasks.js +46 -843
- package/dist/function-registry/tasks.js.map +1 -1
- package/dist/function-registry/topics.d.ts +26 -114
- package/dist/function-registry/topics.js +41 -850
- package/dist/function-registry/topics.js.map +1 -1
- package/dist/function-registry/types.d.ts +3 -7
- package/dist/function-registry/worktrees.d.ts +51 -104
- package/dist/function-registry/worktrees.js +49 -907
- package/dist/function-registry/worktrees.js.map +1 -1
- package/dist/gateway.contract.d.ts +0 -5
- package/dist/gateway.contract.js.map +1 -1
- package/dist/generated/convexSchemas.d.ts +3 -3
- package/dist/generated/convexSchemas.js +18 -39
- package/dist/generated/convexSchemas.js.map +1 -1
- package/dist/generated/schema-manifest.json +98 -1244
- package/dist/generated/tableOwnership.d.ts +28 -49
- package/dist/generated/tableOwnership.js +26 -68
- package/dist/generated/tableOwnership.js.map +1 -1
- package/dist/generated/tier-expectations.json +9 -66
- package/dist/graph-types/index.d.ts +1 -5
- package/dist/graph-types/index.js +4 -15
- package/dist/graph-types/index.js.map +1 -1
- package/dist/index-CV-0_VWJ.d.ts +25 -0
- package/dist/index.d.ts +414 -30
- package/dist/index.js +339 -34916
- package/dist/index.js.map +1 -1
- package/dist/lens-filter.contract.js +3 -4
- package/dist/lens-filter.contract.js.map +1 -1
- package/dist/lens-workflow.contract.js +3 -4
- package/dist/lens-workflow.contract.js.map +1 -1
- package/dist/schema-helpers/enumValidation.js +5 -2
- package/dist/schema-helpers/enumValidation.js.map +1 -1
- package/dist/schema-helpers/spine/nodes/decision.js +1 -2
- package/dist/schema-helpers/spine/nodes/decision.js.map +1 -1
- package/dist/schema-helpers/spine/tables/epistemicNodes.js +27 -27
- package/dist/schema-helpers/spine/tables/epistemicNodes.js.map +1 -1
- package/dist/schemas/component-table-manifest.d.ts +6 -6
- package/dist/schemas/component-table-manifest.js +2 -2
- package/dist/schemas/component-table-manifest.js.map +1 -1
- package/dist/schemas/enums.d.ts +2 -5
- package/dist/schemas/enums.js +2 -5
- package/dist/schemas/enums.js.map +1 -1
- package/dist/schemas/index.d.ts +3 -3
- package/dist/schemas/index.js +139 -1165
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/manifest.d.ts +932 -3042
- package/dist/schemas/manifest.js +137 -1163
- package/dist/schemas/manifest.js.map +1 -1
- package/dist/schemas/sl-opinion.d.ts +4 -4
- package/dist/schemas/tables/{controlPlane → identity}/agent.d.ts +1 -1
- package/dist/schemas/tables/{controlPlane → identity}/agent.js +3 -3
- package/dist/schemas/tables/identity/agent.js.map +1 -0
- package/dist/schemas/tables/{controlPlane → identity}/epistemic.d.ts +1 -1
- package/dist/schemas/tables/{controlPlane → identity}/epistemic.js +3 -3
- package/dist/schemas/tables/identity/epistemic.js.map +1 -0
- package/dist/schemas/tables/{controlPlane → identity}/model.d.ts +1 -1
- package/dist/schemas/tables/{controlPlane → identity}/model.js +6 -6
- package/dist/schemas/tables/identity/model.js.map +1 -0
- package/dist/schemas/tables/{controlPlane → identity}/platform.d.ts +11 -11
- package/dist/schemas/tables/{controlPlane → identity}/platform.js +18 -18
- package/dist/schemas/tables/identity/platform.js.map +1 -0
- package/dist/schemas/tables/{controlPlane → identity}/project.d.ts +1 -1
- package/dist/schemas/tables/{controlPlane → identity}/project.js +3 -3
- package/dist/schemas/tables/identity/project.js.map +1 -0
- package/dist/schemas/tables/{controlPlane → identity}/user.d.ts +1 -1
- package/dist/schemas/tables/{controlPlane → identity}/user.js +3 -3
- package/dist/schemas/tables/identity/user.js.map +1 -0
- package/dist/schemas/tables/kernel/config.d.ts +1 -1
- package/dist/schemas/tables/kernel/config.js.map +1 -1
- package/dist/schemas/tables/kernel/coordination.d.ts +1 -1
- package/dist/schemas/tables/kernel/coordination.js.map +1 -1
- package/dist/schemas/tables/kernel/decision.d.ts +1 -1
- package/dist/schemas/tables/kernel/decision.js.map +1 -1
- package/dist/schemas/tables/kernel/embedding.d.ts +1 -1
- package/dist/schemas/tables/kernel/embedding.js.map +1 -1
- package/dist/schemas/tables/kernel/epistemic.d.ts +7 -7
- package/dist/schemas/tables/kernel/epistemic.js.map +1 -1
- package/dist/schemas/tables/kernel/idempotency.d.ts +1 -1
- package/dist/schemas/tables/kernel/idempotency.js.map +1 -1
- package/dist/schemas/tables/kernel/infra.d.ts +5 -5
- package/dist/schemas/tables/kernel/infra.js.map +1 -1
- package/dist/schemas/tables/kernel/intelligence.d.ts +11 -11
- package/dist/schemas/tables/kernel/intelligence.js.map +1 -1
- package/dist/schemas/tables/kernel/lens.d.ts +5 -5
- package/dist/schemas/tables/kernel/lens.js.map +1 -1
- package/dist/schemas/tables/kernel/ontology.d.ts +1 -1
- package/dist/schemas/tables/kernel/ontology.js.map +1 -1
- package/dist/schemas/tables/kernel/platform.d.ts +13 -13
- package/dist/schemas/tables/kernel/platform.js.map +1 -1
- package/dist/schemas/tables/kernel/spine.d.ts +4 -5
- package/dist/schemas/tables/kernel/spine.js +2 -6
- package/dist/schemas/tables/kernel/spine.js.map +1 -1
- package/dist/schemas/tables/kernel/task.d.ts +43 -43
- package/dist/schemas/tables/kernel/task.js.map +1 -1
- package/dist/schemas/tables/kernel/topic.d.ts +1 -1
- package/dist/schemas/tables/kernel/topic.js +1 -5
- package/dist/schemas/tables/kernel/topic.js.map +1 -1
- package/dist/schemas/tables/kernel/workflow.d.ts +1 -1
- package/dist/schemas/tables/kernel/workflow.js.map +1 -1
- package/dist/schemas/tables/kernel/worktree.d.ts +55 -55
- package/dist/schemas/tables/kernel/worktree.js.map +1 -1
- package/dist/schemas/tables/mc/identity.d.ts +4 -44
- package/dist/schemas/tables/mc/identity.js +1 -66
- package/dist/schemas/tables/mc/identity.js.map +1 -1
- package/dist/schemas/tables/mc/methodology.d.ts +1 -1
- package/dist/schemas/tables/mc/methodology.js.map +1 -1
- package/dist/schemas/tables/mc/pack.d.ts +21 -21
- package/dist/schemas/tables/mc/pack.js.map +1 -1
- package/dist/schemas/tables/mc/policy.d.ts +2 -2
- package/dist/schemas/tables/mc/policy.js +1 -1
- package/dist/schemas/tables/mc/policy.js.map +1 -1
- package/dist/schemas/tables/mc/registry.d.ts +5 -5
- package/dist/schemas/tables/mc/registry.js.map +1 -1
- package/dist/schemas/tables/mc/runtime.d.ts +3 -109
- package/dist/schemas/tables/mc/runtime.js +104 -330
- package/dist/schemas/tables/mc/runtime.js.map +1 -1
- package/dist/schemas/tables/mc/tenant.d.ts +2 -4
- package/dist/schemas/tables/mc/tenant.js +1 -3
- package/dist/schemas/tables/mc/tenant.js.map +1 -1
- package/dist/schemas/tables/mc/workspace.d.ts +5 -28
- package/dist/schemas/tables/mc/workspace.js +2 -36
- package/dist/schemas/tables/mc/workspace.js.map +1 -1
- package/dist/sdk-methods.contract.d.ts +2 -2
- package/dist/{sdk-tools.contract-CKmSsrZ2.d.ts → sdk-tools.contract-S4ia0TTo.d.ts} +2 -2
- package/dist/sdk-tools.contract.d.ts +2 -2
- package/dist/sdk-tools.contract.js +25 -717
- package/dist/sdk-tools.contract.js.map +1 -1
- package/dist/{tool-contracts-C_xvM9q2.d.ts → tool-contracts-C92-9ueT.d.ts} +2 -38
- package/dist/tool-contracts.d.ts +1 -1
- package/dist/tool-contracts.js +26 -718
- package/dist/tool-contracts.js.map +1 -1
- package/package.json +1 -30
- package/dist/component-boundary.contract.d.ts +0 -14
- package/dist/component-boundary.contract.js +0 -175
- package/dist/component-boundary.contract.js.map +0 -1
- package/dist/component-host-boundary.contract.d.ts +0 -46
- package/dist/component-host-boundary.contract.js +0 -60
- package/dist/component-host-boundary.contract.js.map +0 -1
- package/dist/edge-policy-manifest-Dw5IhT1L.d.ts +0 -133
- package/dist/function-registry/nodes.d.ts +0 -412
- package/dist/function-registry/nodes.js +0 -5354
- package/dist/function-registry/nodes.js.map +0 -1
- package/dist/function-registry-input-audit.d.ts +0 -13
- package/dist/function-registry-input-audit.js +0 -166
- package/dist/function-registry-input-audit.js.map +0 -1
- package/dist/generated/infisicalRuntimeEnv.d.ts +0 -70
- package/dist/generated/infisicalRuntimeEnv.js +0 -27051
- package/dist/generated/infisicalRuntimeEnv.js.map +0 -1
- package/dist/generated/lucernGatewayEnv.d.ts +0 -17
- package/dist/generated/lucernGatewayEnv.js +0 -38
- package/dist/generated/lucernGatewayEnv.js.map +0 -1
- package/dist/generated/lucernWebPublicEnv.d.ts +0 -26
- package/dist/generated/lucernWebPublicEnv.js +0 -32
- package/dist/generated/lucernWebPublicEnv.js.map +0 -1
- package/dist/generated/lucernWebServerEnv.d.ts +0 -33
- package/dist/generated/lucernWebServerEnv.js +0 -51
- package/dist/generated/lucernWebServerEnv.js.map +0 -1
- package/dist/graph-intelligence.contract.d.ts +0 -506
- package/dist/graph-intelligence.contract.js +0 -595
- package/dist/graph-intelligence.contract.js.map +0 -1
- package/dist/index-CM1Pl_vI.d.ts +0 -28
- package/dist/infisical-runtime.contract.d.ts +0 -1851
- package/dist/infisical-runtime.contract.js +0 -3189
- package/dist/infisical-runtime.contract.js.map +0 -1
- package/dist/manifests/edge-policy-manifest.d.ts +0 -2
- package/dist/manifests/edge-policy-manifest.data.d.ts +0 -13
- package/dist/manifests/edge-policy-manifest.data.js +0 -26
- package/dist/manifests/edge-policy-manifest.data.js.map +0 -1
- package/dist/manifests/edge-policy-manifest.js +0 -92
- package/dist/manifests/edge-policy-manifest.js.map +0 -1
- package/dist/manifests/infisical-runtime-manifest.d.ts +0 -1754
- package/dist/manifests/infisical-runtime-manifest.js +0 -3044
- package/dist/manifests/infisical-runtime-manifest.js.map +0 -1
- package/dist/manifests/invariant-manifest.d.ts +0 -65
- package/dist/manifests/invariant-manifest.js +0 -18
- package/dist/manifests/invariant-manifest.js.map +0 -1
- package/dist/manifests/invariants/ast-utils.d.ts +0 -14
- package/dist/manifests/invariants/ast-utils.js +0 -54
- package/dist/manifests/invariants/ast-utils.js.map +0 -1
- package/dist/manifests/invariants/index.d.ts +0 -15
- package/dist/manifests/invariants/index.js +0 -183
- package/dist/manifests/invariants/index.js.map +0 -1
- package/dist/manifests/invariants/inv-1-beliefs-append-only.d.ts +0 -12
- package/dist/manifests/invariants/inv-1-beliefs-append-only.js +0 -94
- package/dist/manifests/invariants/inv-1-beliefs-append-only.js.map +0 -1
- package/dist/manifests/invariants/inv-14-no-silent-transitions.d.ts +0 -12
- package/dist/manifests/invariants/inv-14-no-silent-transitions.js +0 -99
- package/dist/manifests/invariants/inv-14-no-silent-transitions.js.map +0 -1
- package/dist/manifests/invariants/manifest-1-projections-declare-audit.d.ts +0 -12
- package/dist/manifests/invariants/manifest-1-projections-declare-audit.js +0 -42
- package/dist/manifests/invariants/manifest-1-projections-declare-audit.js.map +0 -1
- package/dist/manifests/tenant-client-manifest.d.ts +0 -327
- package/dist/manifests/tenant-client-manifest.js +0 -449
- package/dist/manifests/tenant-client-manifest.js.map +0 -1
- package/dist/mcp-gateway-boundary.contract.d.ts +0 -201
- package/dist/mcp-gateway-boundary.contract.js +0 -45
- package/dist/mcp-gateway-boundary.contract.js.map +0 -1
- package/dist/permit-principal-projection.contract.d.ts +0 -74
- package/dist/permit-principal-projection.contract.js +0 -160
- package/dist/permit-principal-projection.contract.js.map +0 -1
- package/dist/projections/check-convex-args-shape.d.ts +0 -3
- package/dist/projections/check-convex-args-shape.js +0 -403
- package/dist/projections/check-convex-args-shape.js.map +0 -1
- package/dist/projections/create-evidence.projection.d.ts +0 -176
- package/dist/projections/create-evidence.projection.js +0 -130
- package/dist/projections/create-evidence.projection.js.map +0 -1
- package/dist/projections/index.d.ts +0 -102
- package/dist/projections/index.js +0 -352
- package/dist/projections/index.js.map +0 -1
- package/dist/projections/list-beliefs.projection.d.ts +0 -36
- package/dist/projections/list-beliefs.projection.js +0 -54
- package/dist/projections/list-beliefs.projection.js.map +0 -1
- package/dist/projections/list-tasks.projection.d.ts +0 -44
- package/dist/projections/list-tasks.projection.js +0 -57
- package/dist/projections/list-tasks.projection.js.map +0 -1
- package/dist/projections/modulate-confidence.projection.d.ts +0 -219
- package/dist/projections/modulate-confidence.projection.js +0 -148
- package/dist/projections/modulate-confidence.projection.js.map +0 -1
- package/dist/projections/projection-dsl.d.ts +0 -11
- package/dist/projections/projection-dsl.js +0 -8
- package/dist/projections/projection-dsl.js.map +0 -1
- package/dist/proof-attestation.json +0 -45
- package/dist/schemas/tables/controlPlane/accessControl.d.ts +0 -260
- package/dist/schemas/tables/controlPlane/accessControl.js +0 -658
- package/dist/schemas/tables/controlPlane/accessControl.js.map +0 -1
- package/dist/schemas/tables/controlPlane/agent.js.map +0 -1
- package/dist/schemas/tables/controlPlane/epistemic.js.map +0 -1
- package/dist/schemas/tables/controlPlane/model.js.map +0 -1
- package/dist/schemas/tables/controlPlane/platform.js.map +0 -1
- package/dist/schemas/tables/controlPlane/project.js.map +0 -1
- package/dist/schemas/tables/controlPlane/user.js.map +0 -1
- package/dist/schemas/tables/kernel/events.d.ts +0 -21
- package/dist/schemas/tables/kernel/events.js +0 -43
- package/dist/schemas/tables/kernel/events.js.map +0 -1
- package/dist/tenant-bootstrap-seed.contract.d.ts +0 -1289
- package/dist/tenant-bootstrap-seed.contract.js +0 -764
- package/dist/tenant-bootstrap-seed.contract.js.map +0 -1
- package/dist/tenant-bootstrap-seed.defaults.d.ts +0 -16
- package/dist/tenant-bootstrap-seed.defaults.js +0 -321
- package/dist/tenant-bootstrap-seed.defaults.js.map +0 -1
- package/dist/tenant-client.contract.d.ts +0 -354
- package/dist/tenant-client.contract.js +0 -505
- package/dist/tenant-client.contract.js.map +0 -1
|
@@ -1,3189 +0,0 @@
|
|
|
1
|
-
// src/tenant-client.contract.ts
|
|
2
|
-
var TENANT_CLIENT_INSTALL_TOKEN_INFISICAL_PATH = "tenants/shared";
|
|
3
|
-
var TENANT_CLIENT_INSTALLABLE_PACKAGES = [
|
|
4
|
-
{
|
|
5
|
-
packageName: "@lucern/access-control",
|
|
6
|
-
role: "runtime_entrypoint",
|
|
7
|
-
directTenantImport: true
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
packageName: "@lucern/agent",
|
|
11
|
-
role: "platform_runtime",
|
|
12
|
-
directTenantImport: false
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
packageName: "@lucern/auth",
|
|
16
|
-
role: "sdk_dependency",
|
|
17
|
-
directTenantImport: false
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
packageName: "@lucern/cli",
|
|
21
|
-
role: "developer_tool",
|
|
22
|
-
directTenantImport: false
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
packageName: "@lucern/client-core",
|
|
26
|
-
role: "sdk_dependency",
|
|
27
|
-
directTenantImport: false
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
packageName: "@lucern/confidence",
|
|
31
|
-
role: "sdk_dependency",
|
|
32
|
-
directTenantImport: false
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
packageName: "@lucern/config",
|
|
36
|
-
role: "configuration",
|
|
37
|
-
directTenantImport: false
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
packageName: "@lucern/contracts",
|
|
41
|
-
role: "contract_entrypoint",
|
|
42
|
-
directTenantImport: true
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
packageName: "@lucern/control-plane",
|
|
46
|
-
role: "component_runtime",
|
|
47
|
-
directTenantImport: false
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
packageName: "@lucern/developer-kit",
|
|
51
|
-
role: "developer_tool",
|
|
52
|
-
directTenantImport: false
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
packageName: "@lucern/events",
|
|
56
|
-
role: "sdk_dependency",
|
|
57
|
-
directTenantImport: false
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
packageName: "@lucern/graph-primitives",
|
|
61
|
-
role: "sdk_dependency",
|
|
62
|
-
directTenantImport: false
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
packageName: "@lucern/graph-sync",
|
|
66
|
-
role: "host_addon_runtime",
|
|
67
|
-
directTenantImport: true
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
packageName: "@lucern/mcp",
|
|
71
|
-
role: "runtime_entrypoint",
|
|
72
|
-
directTenantImport: true
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
packageName: "@lucern/pack-host",
|
|
76
|
-
role: "platform_runtime",
|
|
77
|
-
directTenantImport: false
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
packageName: "@lucern/pack-installer",
|
|
81
|
-
role: "developer_tool",
|
|
82
|
-
directTenantImport: false
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
packageName: "@lucern/proof-compiler",
|
|
86
|
-
role: "developer_tool",
|
|
87
|
-
directTenantImport: false
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
packageName: "@lucern/react",
|
|
91
|
-
role: "runtime_entrypoint",
|
|
92
|
-
directTenantImport: true
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
packageName: "@lucern/reasoning-kernel",
|
|
96
|
-
role: "component_runtime",
|
|
97
|
-
directTenantImport: false
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
packageName: "@lucern/sdk",
|
|
101
|
-
role: "runtime_entrypoint",
|
|
102
|
-
directTenantImport: true
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
packageName: "@lucern/secrets",
|
|
106
|
-
role: "sdk_dependency",
|
|
107
|
-
directTenantImport: false
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
packageName: "@lucern/server-core",
|
|
111
|
-
role: "platform_runtime",
|
|
112
|
-
directTenantImport: false
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
packageName: "@lucern/testing",
|
|
116
|
-
role: "test_support",
|
|
117
|
-
directTenantImport: false
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
packageName: "@lucern/types",
|
|
121
|
-
role: "contract_entrypoint",
|
|
122
|
-
directTenantImport: true
|
|
123
|
-
}
|
|
124
|
-
];
|
|
125
|
-
TENANT_CLIENT_INSTALLABLE_PACKAGES.map(
|
|
126
|
-
(entry) => entry.packageName
|
|
127
|
-
);
|
|
128
|
-
|
|
129
|
-
// src/infisical-runtime.contract.ts
|
|
130
|
-
var INFISICAL_RUNTIME_CONTRACT_VERSION = "2026-05-06";
|
|
131
|
-
var INFISICAL_RUNTIME_DEFAULT_API_URL = "https://app.infisical.com";
|
|
132
|
-
var INFISICAL_RUNTIME_DEFAULT_PROJECT_ID = "344b0526-90df-4606-ba50-22c647a36c65";
|
|
133
|
-
var INFISICAL_RUNTIME_ENVIRONMENTS = [
|
|
134
|
-
"dev",
|
|
135
|
-
"staging",
|
|
136
|
-
"prod"
|
|
137
|
-
];
|
|
138
|
-
var INFISICAL_RUNTIME_DELIVERY_MODES = [
|
|
139
|
-
"vercel_sync",
|
|
140
|
-
"runtime_fetch",
|
|
141
|
-
"device_auth"
|
|
142
|
-
];
|
|
143
|
-
var INFISICAL_VERCEL_DESTINATION_ENVIRONMENTS = [
|
|
144
|
-
"development",
|
|
145
|
-
"preview",
|
|
146
|
-
"staging",
|
|
147
|
-
"production"
|
|
148
|
-
];
|
|
149
|
-
var INFISICAL_VERCEL_TARGETS = [
|
|
150
|
-
"development",
|
|
151
|
-
"preview",
|
|
152
|
-
"production"
|
|
153
|
-
];
|
|
154
|
-
var INFISICAL_CONVEX_TIERS = ["preprod", "prod"];
|
|
155
|
-
var INFISICAL_CONVEX_TIER_BY_VERCEL_ENVIRONMENT = {
|
|
156
|
-
development: "preprod",
|
|
157
|
-
preview: "preprod",
|
|
158
|
-
staging: "preprod",
|
|
159
|
-
production: "prod"
|
|
160
|
-
};
|
|
161
|
-
var INFISICAL_VERCEL_SYNC_RECONCILIATION = {
|
|
162
|
-
sourceOfTruth: "infisical",
|
|
163
|
-
writer: "vercel_api",
|
|
164
|
-
disableSecretDeletion: false,
|
|
165
|
-
pruneDestinationKeys: true
|
|
166
|
-
};
|
|
167
|
-
var INFISICAL_VERCEL_SYNC_DESTINATIONS = [
|
|
168
|
-
{
|
|
169
|
-
environment: "development",
|
|
170
|
-
vercelTarget: "development",
|
|
171
|
-
convexTier: "preprod"
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
environment: "preview",
|
|
175
|
-
vercelTarget: "preview",
|
|
176
|
-
convexTier: "preprod"
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
environment: "staging",
|
|
180
|
-
vercelTarget: "preview",
|
|
181
|
-
convexTier: "preprod",
|
|
182
|
-
customEnvironmentSlug: "staging",
|
|
183
|
-
customEnvironmentIdsByProjectName: {
|
|
184
|
-
stackos: "env_RbS0TYRRvWISTje8qR4u2lRg7TC8"
|
|
185
|
-
},
|
|
186
|
-
domainsByProjectName: {
|
|
187
|
-
stackos: "staging.stack.vc"
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
environment: "production",
|
|
192
|
-
vercelTarget: "production",
|
|
193
|
-
convexTier: "prod"
|
|
194
|
-
}
|
|
195
|
-
];
|
|
196
|
-
var INFISICAL_RUNTIME_SURFACE_IDS = [
|
|
197
|
-
"lucern-web",
|
|
198
|
-
"lucern-gateway",
|
|
199
|
-
"lucern-sdk",
|
|
200
|
-
"lucern-cli",
|
|
201
|
-
"lucern-mcp",
|
|
202
|
-
"tenant-client"
|
|
203
|
-
];
|
|
204
|
-
var INFISICAL_RUNTIME_BOOTSTRAP_ENV = {
|
|
205
|
-
apiUrl: ["INFISICAL_API_URL", "INFISICAL_URL"],
|
|
206
|
-
projectId: ["INFISICAL_PROJECT_ID", "INFISICAL_WORKSPACE_ID"],
|
|
207
|
-
clientId: [
|
|
208
|
-
"INFISICAL_CLIENT_ID",
|
|
209
|
-
"INFISICAL_MACHINE_CLIENT_ID",
|
|
210
|
-
"INFISICAL_UNIVERSAL_AUTH_CLIENT_ID"
|
|
211
|
-
],
|
|
212
|
-
clientSecret: [
|
|
213
|
-
"INFISICAL_CLIENT_SECRET",
|
|
214
|
-
"INFISICAL_MACHINE_CLIENT_SECRET",
|
|
215
|
-
"INFISICAL_UNIVERSAL_AUTH_CLIENT_SECRET"
|
|
216
|
-
],
|
|
217
|
-
environment: ["INFISICAL_ENV", "LUCERN_INFISICAL_ENV"],
|
|
218
|
-
organizationSlug: ["INFISICAL_ORG_SLUG", "INFISICAL_ORGANIZATION_SLUG"],
|
|
219
|
-
disabled: ["LUCERN_INFISICAL_DISABLE", "INFISICAL_DISABLE"]
|
|
220
|
-
};
|
|
221
|
-
var INFISICAL_RUNTIME_CONTROL_ENV = [
|
|
222
|
-
{
|
|
223
|
-
name: "NODE_ENV",
|
|
224
|
-
category: "framework",
|
|
225
|
-
description: "Node/Next runtime mode. Framework-owned, not written by Infisical."
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
name: "CI",
|
|
229
|
-
category: "ci",
|
|
230
|
-
description: "CI execution signal. Workflow-owned, not written by Infisical."
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
name: "VERCEL",
|
|
234
|
-
category: "vercel",
|
|
235
|
-
description: "Vercel runtime signal. Platform-owned, not written by Infisical."
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
name: "VERCEL_ENV",
|
|
239
|
-
category: "vercel",
|
|
240
|
-
description: "Vercel environment label used for build/runtime selection."
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
name: "VERCEL_URL",
|
|
244
|
-
category: "vercel",
|
|
245
|
-
description: "Vercel deployment URL supplied by Vercel for previews and builds."
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
name: "VERCEL_GIT_COMMIT_SHA",
|
|
249
|
-
category: "vercel",
|
|
250
|
-
description: "Vercel git metadata used for release labels. Platform-owned, not written by Infisical."
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
name: "NEXT_RUNTIME",
|
|
254
|
-
category: "nextjs",
|
|
255
|
-
description: "Next.js runtime selector for node/edge instrumentation modules."
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
name: "PORT",
|
|
259
|
-
category: "framework",
|
|
260
|
-
description: "Local/server port supplied by the runtime process manager."
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
name: "HOST",
|
|
264
|
-
category: "framework",
|
|
265
|
-
description: "Local/server host supplied by the runtime process manager."
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
name: "APP_URL",
|
|
269
|
-
category: "compatibility",
|
|
270
|
-
description: "Legacy local app URL fallback. Prefer LUCERN_LOGIN_BASE_URL or LUCERN_API_URL."
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
name: "NEXT_PUBLIC_APP_URL",
|
|
274
|
-
category: "compatibility",
|
|
275
|
-
description: "Legacy public app URL fallback. Prefer LUCERN_LOGIN_BASE_URL or LUCERN_API_URL."
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
name: "CLAUDE_PROJECT_DIR",
|
|
279
|
-
category: "agent_local",
|
|
280
|
-
description: "Local agent workspace hint. Agent-runtime-owned, not written by Infisical."
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
name: "HOME",
|
|
284
|
-
category: "os",
|
|
285
|
-
description: "Operating-system home directory used only for local credential discovery."
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
name: "USERPROFILE",
|
|
289
|
-
category: "os",
|
|
290
|
-
description: "Windows home directory used only for local credential discovery."
|
|
291
|
-
}
|
|
292
|
-
];
|
|
293
|
-
var INFISICAL_RUNTIME_PATHS = [
|
|
294
|
-
{
|
|
295
|
-
id: "platform-auth",
|
|
296
|
-
secretPath: "/platform/auth",
|
|
297
|
-
description: "Lucern platform authentication secrets. Synced into Vercel web/gateway projects; never distributed to tenant tools.",
|
|
298
|
-
variables: [
|
|
299
|
-
{
|
|
300
|
-
name: "NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY",
|
|
301
|
-
required: true,
|
|
302
|
-
secret: false,
|
|
303
|
-
public: true,
|
|
304
|
-
description: "Clerk publishable key for the Lucern web origin."
|
|
305
|
-
},
|
|
306
|
-
{
|
|
307
|
-
name: "CLERK_SECRET_KEY",
|
|
308
|
-
required: true,
|
|
309
|
-
secret: true,
|
|
310
|
-
public: false,
|
|
311
|
-
description: "Clerk backend secret key for Lucern server runtimes."
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
name: "CLERK_JWT_ISSUER_DOMAIN",
|
|
315
|
-
required: false,
|
|
316
|
-
secret: false,
|
|
317
|
-
public: false,
|
|
318
|
-
description: "Expected Clerk issuer/JWKS domain for JWT verification."
|
|
319
|
-
},
|
|
320
|
-
{
|
|
321
|
-
name: "NEXT_PUBLIC_CLERK_SIGN_IN_URL",
|
|
322
|
-
required: false,
|
|
323
|
-
secret: false,
|
|
324
|
-
public: true,
|
|
325
|
-
description: "Public sign-in URL for Lucern-owned web flows."
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
name: "NEXT_PUBLIC_CLERK_SIGN_UP_URL",
|
|
329
|
-
required: false,
|
|
330
|
-
secret: false,
|
|
331
|
-
public: true,
|
|
332
|
-
description: "Public sign-up URL for Lucern-owned web flows."
|
|
333
|
-
}
|
|
334
|
-
]
|
|
335
|
-
},
|
|
336
|
-
{
|
|
337
|
-
id: "platform-runtime",
|
|
338
|
-
secretPath: "/platform/runtime",
|
|
339
|
-
description: "Runtime defaults shared by server-side Lucern clients and operator tooling.",
|
|
340
|
-
variables: [
|
|
341
|
-
{
|
|
342
|
-
name: "LUCERN_API_URL",
|
|
343
|
-
required: true,
|
|
344
|
-
secret: false,
|
|
345
|
-
public: false,
|
|
346
|
-
aliases: ["LUCERN_API_BASE_URL", "LUCERN_BASE_URL"],
|
|
347
|
-
description: "Canonical Lucern API gateway URL."
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
name: "LUCERN_LOGIN_BASE_URL",
|
|
351
|
-
required: false,
|
|
352
|
-
secret: false,
|
|
353
|
-
public: false,
|
|
354
|
-
aliases: ["LUCERN_AUTH_BASE_URL"],
|
|
355
|
-
description: "Browser login origin used when it differs from the API."
|
|
356
|
-
},
|
|
357
|
-
{
|
|
358
|
-
name: "LUCERN_ENVIRONMENT",
|
|
359
|
-
required: false,
|
|
360
|
-
secret: false,
|
|
361
|
-
public: false,
|
|
362
|
-
aliases: ["LUCERN_ENV"],
|
|
363
|
-
description: "Lucern environment label consumed by CLI profiles."
|
|
364
|
-
},
|
|
365
|
-
{
|
|
366
|
-
name: "LUCERN_CLI_SESSION_TTL_MS",
|
|
367
|
-
required: false,
|
|
368
|
-
secret: false,
|
|
369
|
-
public: false,
|
|
370
|
-
description: "Optional web-issued CLI login session lifetime override in milliseconds."
|
|
371
|
-
}
|
|
372
|
-
]
|
|
373
|
-
},
|
|
374
|
-
{
|
|
375
|
-
id: "tenant-shared-install",
|
|
376
|
-
secretPath: TENANT_CLIENT_INSTALL_TOKEN_INFISICAL_PATH,
|
|
377
|
-
description: "Tenant package-install secrets. This is install-only and distinct from platform publish credentials.",
|
|
378
|
-
variables: [
|
|
379
|
-
{
|
|
380
|
-
name: "INSTALL_LUCERN_NPM",
|
|
381
|
-
required: true,
|
|
382
|
-
secret: true,
|
|
383
|
-
public: false,
|
|
384
|
-
description: "Read-only install token for the published @lucern/* suite."
|
|
385
|
-
}
|
|
386
|
-
]
|
|
387
|
-
}
|
|
388
|
-
];
|
|
389
|
-
var INFISICAL_RUNTIME_SURFACES = [
|
|
390
|
-
{
|
|
391
|
-
id: "lucern-web",
|
|
392
|
-
delivery: "vercel_sync",
|
|
393
|
-
sourcePathIds: ["platform-auth", "platform-runtime"],
|
|
394
|
-
consumer: "apps/web on Vercel project lucern",
|
|
395
|
-
description: "Lucern web consumes Clerk and runtime config via Infisical-to-Vercel syncs."
|
|
396
|
-
},
|
|
397
|
-
{
|
|
398
|
-
id: "lucern-gateway",
|
|
399
|
-
delivery: "vercel_sync",
|
|
400
|
-
fallback: "runtime_fetch",
|
|
401
|
-
sourcePathIds: ["platform-auth", "platform-runtime"],
|
|
402
|
-
consumer: "apps/gateway on Vercel project lucern-gateway",
|
|
403
|
-
description: "Lucern gateway consumes platform config via Infisical-to-Vercel syncs and may self-hydrate from Infisical when the host environment has scoped bootstrap credentials."
|
|
404
|
-
},
|
|
405
|
-
{
|
|
406
|
-
id: "lucern-sdk",
|
|
407
|
-
packageName: "@lucern/sdk",
|
|
408
|
-
delivery: "runtime_fetch",
|
|
409
|
-
sourcePathIds: ["platform-runtime"],
|
|
410
|
-
consumer: "server-side SDK operator contexts with a scoped Infisical identity",
|
|
411
|
-
description: "SDK exposes the runtime Infisical resolver used by clients that have machine identity credentials."
|
|
412
|
-
},
|
|
413
|
-
{
|
|
414
|
-
id: "lucern-cli",
|
|
415
|
-
packageName: "@lucern/cli",
|
|
416
|
-
delivery: "runtime_fetch",
|
|
417
|
-
fallback: "device_auth",
|
|
418
|
-
sourcePathIds: ["platform-runtime"],
|
|
419
|
-
consumer: "developer/operator CLI processes",
|
|
420
|
-
description: "CLI hydrates runtime defaults from Infisical when configured, then authenticates users through Lucern device login."
|
|
421
|
-
},
|
|
422
|
-
{
|
|
423
|
-
id: "lucern-mcp",
|
|
424
|
-
packageName: "@lucern/mcp",
|
|
425
|
-
delivery: "runtime_fetch",
|
|
426
|
-
fallback: "device_auth",
|
|
427
|
-
sourcePathIds: ["platform-runtime"],
|
|
428
|
-
consumer: "MCP server/client processes",
|
|
429
|
-
description: "MCP hydrates runtime defaults through the SDK resolver and remains a Lucern client, not a platform secret owner."
|
|
430
|
-
},
|
|
431
|
-
{
|
|
432
|
-
id: "tenant-client",
|
|
433
|
-
delivery: "device_auth",
|
|
434
|
-
sourcePathIds: ["tenant-shared-install"],
|
|
435
|
-
consumer: "tenant-owned apps and coding agents",
|
|
436
|
-
description: "Tenant clients install the published packages and receive user/service credentials through Lucern auth surfaces."
|
|
437
|
-
}
|
|
438
|
-
];
|
|
439
|
-
var INFISICAL_TENANT_SOFTWARE_SYSTEMS = [
|
|
440
|
-
{
|
|
441
|
-
id: "stack-frontend",
|
|
442
|
-
tenantKey: "stack",
|
|
443
|
-
workspaceKey: "frontend",
|
|
444
|
-
vercelProjectName: "ai-chatbot-diao",
|
|
445
|
-
vercelTeamId: "team_mZBKwvXSSu7qxrWdg2go29sK",
|
|
446
|
-
vercelProjectId: "prj_PihFw8kohSSw14nZs9YQV3xVo517",
|
|
447
|
-
vercelWriterTokenEnv: "STACK_VERCEL_TOKEN",
|
|
448
|
-
repository: {
|
|
449
|
-
owner: "stack-vc",
|
|
450
|
-
name: "front-end"
|
|
451
|
-
},
|
|
452
|
-
sharedSourcePath: "/tenants/stack",
|
|
453
|
-
sharedVariablePolicy: "tenant_shared_all_systems",
|
|
454
|
-
convex: {
|
|
455
|
-
urlEnv: "CONVEX_FRONTEND_URL",
|
|
456
|
-
deployKeyEnv: "CONVEX_FRONTEND_DEPLOY_KEY",
|
|
457
|
-
preprodDeployment: "rugged-lobster-664",
|
|
458
|
-
prodDeployment: "wonderful-toucan-0"
|
|
459
|
-
}
|
|
460
|
-
},
|
|
461
|
-
{
|
|
462
|
-
id: "stackos",
|
|
463
|
-
tenantKey: "stack",
|
|
464
|
-
workspaceKey: "stackos",
|
|
465
|
-
vercelProjectName: "stackos",
|
|
466
|
-
vercelTeamId: "team_mZBKwvXSSu7qxrWdg2go29sK",
|
|
467
|
-
vercelProjectId: "prj_rXLAL0Z6v9p1fasKbomby6GI7kau",
|
|
468
|
-
vercelWriterTokenEnv: "STACK_VERCEL_TOKEN",
|
|
469
|
-
repository: {
|
|
470
|
-
owner: "stack-vc",
|
|
471
|
-
name: "stackos"
|
|
472
|
-
},
|
|
473
|
-
sharedSourcePath: "/tenants/stack",
|
|
474
|
-
sharedVariablePolicy: "tenant_shared_all_systems",
|
|
475
|
-
convex: {
|
|
476
|
-
urlEnv: "CONVEX_STACKOS_URL",
|
|
477
|
-
deployKeyEnv: "CONVEX_STACKOS_DEPLOY_KEY",
|
|
478
|
-
preprodDeployment: "giant-mandrill-761",
|
|
479
|
-
prodDeployment: "good-snake-515"
|
|
480
|
-
}
|
|
481
|
-
},
|
|
482
|
-
{
|
|
483
|
-
id: "stack-eng",
|
|
484
|
-
tenantKey: "stack",
|
|
485
|
-
workspaceKey: "engineering",
|
|
486
|
-
vercelProjectName: "stackos-engineering-graph",
|
|
487
|
-
vercelTeamId: "team_mZBKwvXSSu7qxrWdg2go29sK",
|
|
488
|
-
vercelProjectId: "prj_zAU0Zn9GkbHjHI63dxW4vLpmoqTJ",
|
|
489
|
-
vercelWriterTokenEnv: "STACK_VERCEL_TOKEN",
|
|
490
|
-
repository: {
|
|
491
|
-
owner: "stack-vc",
|
|
492
|
-
name: "stackos-engineering-graph"
|
|
493
|
-
},
|
|
494
|
-
sharedSourcePath: "/tenants/stack/engineering",
|
|
495
|
-
sharedVariablePolicy: "tenant_shared_all_systems",
|
|
496
|
-
convex: {
|
|
497
|
-
urlEnv: "CONVEX_STACK_ENG_URL",
|
|
498
|
-
deployKeyEnv: "CONVEX_STACK_ENG_DEPLOY_KEY",
|
|
499
|
-
preprodDeployment: "small-oyster-270",
|
|
500
|
-
prodDeployment: "bold-cuttlefish-804"
|
|
501
|
-
}
|
|
502
|
-
},
|
|
503
|
-
{
|
|
504
|
-
id: "lucern-graph",
|
|
505
|
-
tenantKey: "lucern",
|
|
506
|
-
workspaceKey: "lucern",
|
|
507
|
-
vercelProjectName: "lucern-graph",
|
|
508
|
-
vercelTeamId: "team_vTHxxs8GAoAFUe6RWMlYt7fY",
|
|
509
|
-
vercelProjectId: "prj_KJ8EKV8vGM5xURpqmwTwmECEGPgQ",
|
|
510
|
-
vercelWriterTokenEnv: "LUCERN_VERCEL_TOKEN",
|
|
511
|
-
repository: {
|
|
512
|
-
owner: "LucernAI",
|
|
513
|
-
name: "lucern-graph"
|
|
514
|
-
},
|
|
515
|
-
sharedSourcePath: "/tenants/lucern/shared",
|
|
516
|
-
sharedVariablePolicy: "tenant_shared_all_systems",
|
|
517
|
-
convex: {
|
|
518
|
-
urlEnv: "CONVEX_LUCERN_URL",
|
|
519
|
-
deployKeyEnv: "CONVEX_LUCERN_DEPLOY_KEY",
|
|
520
|
-
preprodDeployment: "good-blackbird-774",
|
|
521
|
-
prodDeployment: "precious-dog-365"
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
];
|
|
525
|
-
function findInfisicalTenantSoftwareSystem(systemId) {
|
|
526
|
-
return INFISICAL_TENANT_SOFTWARE_SYSTEMS.find(
|
|
527
|
-
(system) => system.id === systemId
|
|
528
|
-
);
|
|
529
|
-
}
|
|
530
|
-
function tenantSoftwareSystemConvexEnvNames(systemId) {
|
|
531
|
-
const system = findInfisicalTenantSoftwareSystem(systemId);
|
|
532
|
-
if (!system) {
|
|
533
|
-
throw new Error(`Unknown tenant software system: ${systemId}.`);
|
|
534
|
-
}
|
|
535
|
-
return [system.convex.urlEnv, system.convex.deployKeyEnv];
|
|
536
|
-
}
|
|
537
|
-
function tenantSoftwareSystemOwnsConvexEnvName(systemId, envName) {
|
|
538
|
-
return tenantSoftwareSystemConvexEnvNames(systemId).includes(envName);
|
|
539
|
-
}
|
|
540
|
-
function convexTierForVercelDestinationEnvironment(environment) {
|
|
541
|
-
return INFISICAL_CONVEX_TIER_BY_VERCEL_ENVIRONMENT[environment];
|
|
542
|
-
}
|
|
543
|
-
function findInfisicalVercelSyncDestination(environment) {
|
|
544
|
-
return INFISICAL_VERCEL_SYNC_DESTINATIONS.find(
|
|
545
|
-
(destination) => destination.environment === environment
|
|
546
|
-
);
|
|
547
|
-
}
|
|
548
|
-
function vercelCustomEnvironmentIdForTenantSoftwareSystem(systemId, environment) {
|
|
549
|
-
const system = findInfisicalTenantSoftwareSystem(systemId);
|
|
550
|
-
const destination = findInfisicalVercelSyncDestination(environment);
|
|
551
|
-
if (!system || !destination) {
|
|
552
|
-
return void 0;
|
|
553
|
-
}
|
|
554
|
-
return destination.customEnvironmentIdsByProjectName?.[system.vercelProjectName];
|
|
555
|
-
}
|
|
556
|
-
function expectedTenantConvexDeploymentForVercelEnvironment(systemId, environment) {
|
|
557
|
-
const system = findInfisicalTenantSoftwareSystem(systemId);
|
|
558
|
-
if (!system) {
|
|
559
|
-
throw new Error(`Unknown tenant software system: ${systemId}.`);
|
|
560
|
-
}
|
|
561
|
-
return convexTierForVercelDestinationEnvironment(environment) === "prod" ? system.convex.prodDeployment : system.convex.preprodDeployment;
|
|
562
|
-
}
|
|
563
|
-
function findInfisicalRuntimePath(pathId) {
|
|
564
|
-
return INFISICAL_RUNTIME_PATHS.find((path) => path.id === pathId);
|
|
565
|
-
}
|
|
566
|
-
function findInfisicalRuntimeSurface(surfaceId) {
|
|
567
|
-
return INFISICAL_RUNTIME_SURFACES.find((surface) => surface.id === surfaceId);
|
|
568
|
-
}
|
|
569
|
-
var INFISICAL_SECRET_OWNERS = [
|
|
570
|
-
"lucern_platform",
|
|
571
|
-
"tenant",
|
|
572
|
-
"provider",
|
|
573
|
-
"operator_local"
|
|
574
|
-
];
|
|
575
|
-
var INFISICAL_SECRET_SCOPES = [
|
|
576
|
-
"global",
|
|
577
|
-
"environment",
|
|
578
|
-
"tenant",
|
|
579
|
-
"workspace",
|
|
580
|
-
"software_system",
|
|
581
|
-
"deployment",
|
|
582
|
-
"local"
|
|
583
|
-
];
|
|
584
|
-
var INFISICAL_SECRET_ENVIRONMENT_POLICIES = [
|
|
585
|
-
"same_all_environments",
|
|
586
|
-
"environment_specific",
|
|
587
|
-
"preprod_staging_prod_prod",
|
|
588
|
-
"local_only"
|
|
589
|
-
];
|
|
590
|
-
var INFISICAL_SECRET_CONSUMERS = [
|
|
591
|
-
"lucern-web",
|
|
592
|
-
"lucern-gateway",
|
|
593
|
-
"lucern-mcp",
|
|
594
|
-
"lucern-cli",
|
|
595
|
-
"lucern-ai-runtime",
|
|
596
|
-
"lucern-graph-sync",
|
|
597
|
-
"lucern-observability",
|
|
598
|
-
"lucern-repo-ci",
|
|
599
|
-
"mc-convex",
|
|
600
|
-
"mc-operator-tooling",
|
|
601
|
-
"tenant-vercel-app",
|
|
602
|
-
"tenant-convex-deployment",
|
|
603
|
-
"tenant-ai-runtime",
|
|
604
|
-
"tenant-graph-sync",
|
|
605
|
-
"tenant-observability",
|
|
606
|
-
"tenant-vector-store",
|
|
607
|
-
"tenant-deploy-tooling",
|
|
608
|
-
"tenant-agent-runtime"
|
|
609
|
-
];
|
|
610
|
-
var INFISICAL_SECRET_DESTINATION_KINDS = [
|
|
611
|
-
"vercel",
|
|
612
|
-
"convex",
|
|
613
|
-
"github_actions",
|
|
614
|
-
"runtime_fetch",
|
|
615
|
-
"operator_local"
|
|
616
|
-
];
|
|
617
|
-
var PLATFORM_SECRET_DEFINITIONS = [
|
|
618
|
-
{
|
|
619
|
-
id: "platform.clerk.publishable",
|
|
620
|
-
canonicalName: "NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY",
|
|
621
|
-
aliases: ["CLERK_PUBLISHABLE_KEY"],
|
|
622
|
-
owner: "lucern_platform",
|
|
623
|
-
scope: "environment",
|
|
624
|
-
sourcePath: "/platform/auth",
|
|
625
|
-
environmentPolicy: "environment_specific",
|
|
626
|
-
required: true,
|
|
627
|
-
secret: false,
|
|
628
|
-
public: true,
|
|
629
|
-
consumers: ["lucern-web", "lucern-gateway", "lucern-mcp"],
|
|
630
|
-
destinations: [
|
|
631
|
-
{
|
|
632
|
-
kind: "vercel",
|
|
633
|
-
target: "lucern",
|
|
634
|
-
environmentPolicy: "environment_specific"
|
|
635
|
-
},
|
|
636
|
-
{
|
|
637
|
-
kind: "vercel",
|
|
638
|
-
target: "lucern-gateway",
|
|
639
|
-
environmentPolicy: "environment_specific"
|
|
640
|
-
},
|
|
641
|
-
{
|
|
642
|
-
kind: "runtime_fetch",
|
|
643
|
-
target: "hosted-mcp-oauth",
|
|
644
|
-
environmentPolicy: "environment_specific"
|
|
645
|
-
}
|
|
646
|
-
],
|
|
647
|
-
description: "Lucern-owned Clerk browser key for platform web, gateway, and hosted MCP OAuth flows."
|
|
648
|
-
},
|
|
649
|
-
{
|
|
650
|
-
id: "platform.clerk.secret",
|
|
651
|
-
canonicalName: "CLERK_SECRET_KEY",
|
|
652
|
-
owner: "lucern_platform",
|
|
653
|
-
scope: "environment",
|
|
654
|
-
sourcePath: "/platform/auth",
|
|
655
|
-
environmentPolicy: "environment_specific",
|
|
656
|
-
required: true,
|
|
657
|
-
secret: true,
|
|
658
|
-
public: false,
|
|
659
|
-
consumers: ["lucern-web", "lucern-gateway", "lucern-mcp"],
|
|
660
|
-
destinations: [
|
|
661
|
-
{
|
|
662
|
-
kind: "vercel",
|
|
663
|
-
target: "lucern",
|
|
664
|
-
environmentPolicy: "environment_specific"
|
|
665
|
-
},
|
|
666
|
-
{
|
|
667
|
-
kind: "vercel",
|
|
668
|
-
target: "lucern-gateway",
|
|
669
|
-
environmentPolicy: "environment_specific"
|
|
670
|
-
},
|
|
671
|
-
{
|
|
672
|
-
kind: "runtime_fetch",
|
|
673
|
-
target: "hosted-mcp-oauth",
|
|
674
|
-
environmentPolicy: "environment_specific"
|
|
675
|
-
}
|
|
676
|
-
],
|
|
677
|
-
description: "Lucern-owned Clerk backend secret. Never route to tenant-owned apps unless that tenant is Lucern itself."
|
|
678
|
-
},
|
|
679
|
-
{
|
|
680
|
-
id: "platform.clerk.project",
|
|
681
|
-
canonicalName: "CLERK_PROJECT_ID",
|
|
682
|
-
aliases: ["LUCERN_CLERK_PROJECT_ID"],
|
|
683
|
-
owner: "lucern_platform",
|
|
684
|
-
scope: "environment",
|
|
685
|
-
sourcePath: "/platform/auth",
|
|
686
|
-
environmentPolicy: "environment_specific",
|
|
687
|
-
required: true,
|
|
688
|
-
secret: false,
|
|
689
|
-
public: false,
|
|
690
|
-
consumers: ["lucern-gateway", "mc-convex"],
|
|
691
|
-
destinations: [
|
|
692
|
-
{
|
|
693
|
-
kind: "vercel",
|
|
694
|
-
target: "lucern-gateway",
|
|
695
|
-
environmentPolicy: "environment_specific"
|
|
696
|
-
},
|
|
697
|
-
{
|
|
698
|
-
kind: "convex",
|
|
699
|
-
target: "master-control",
|
|
700
|
-
environmentPolicy: "environment_specific"
|
|
701
|
-
}
|
|
702
|
-
],
|
|
703
|
-
description: "Canonical Lucern Clerk project identifier used when MC resolves Clerk identities."
|
|
704
|
-
},
|
|
705
|
-
{
|
|
706
|
-
id: "platform.clerk.webhook-secret",
|
|
707
|
-
canonicalName: "LUCERN_CLERK_WEBHOOK_SECRET",
|
|
708
|
-
aliases: ["CLERK_WEBHOOK_SECRET", "CLERK_WEBHOOK_SIGNING_SECRET"],
|
|
709
|
-
owner: "lucern_platform",
|
|
710
|
-
scope: "environment",
|
|
711
|
-
sourcePath: "/platform/auth",
|
|
712
|
-
environmentPolicy: "environment_specific",
|
|
713
|
-
required: true,
|
|
714
|
-
secret: true,
|
|
715
|
-
public: false,
|
|
716
|
-
consumers: ["lucern-gateway"],
|
|
717
|
-
destinations: [
|
|
718
|
-
{
|
|
719
|
-
kind: "vercel",
|
|
720
|
-
target: "lucern-gateway",
|
|
721
|
-
environmentPolicy: "environment_specific"
|
|
722
|
-
}
|
|
723
|
-
],
|
|
724
|
-
description: "Lucern-owned Clerk/Svix webhook signing secret used by the gateway to verify Clerk identity and organization events before projecting them into Permit."
|
|
725
|
-
},
|
|
726
|
-
{
|
|
727
|
-
id: "platform.clerk.jwks",
|
|
728
|
-
canonicalName: "CLERK_JWKS_URL",
|
|
729
|
-
aliases: ["CLERK_JWT_ISSUER_DOMAIN"],
|
|
730
|
-
owner: "lucern_platform",
|
|
731
|
-
scope: "environment",
|
|
732
|
-
sourcePath: "/platform/auth",
|
|
733
|
-
environmentPolicy: "environment_specific",
|
|
734
|
-
required: false,
|
|
735
|
-
secret: false,
|
|
736
|
-
public: false,
|
|
737
|
-
consumers: ["lucern-mcp", "lucern-gateway"],
|
|
738
|
-
destinations: [
|
|
739
|
-
{
|
|
740
|
-
kind: "runtime_fetch",
|
|
741
|
-
target: "lucern-mcp",
|
|
742
|
-
environmentPolicy: "environment_specific"
|
|
743
|
-
},
|
|
744
|
-
{
|
|
745
|
-
kind: "vercel",
|
|
746
|
-
target: "lucern-gateway",
|
|
747
|
-
environmentPolicy: "environment_specific"
|
|
748
|
-
}
|
|
749
|
-
],
|
|
750
|
-
description: "Optional Clerk JWKS/issuer override for server-side token verification."
|
|
751
|
-
},
|
|
752
|
-
{
|
|
753
|
-
id: "platform.runtime.api-base-url",
|
|
754
|
-
canonicalName: "LUCERN_API_URL",
|
|
755
|
-
aliases: ["LUCERN_API_BASE_URL", "LUCERN_BASE_URL"],
|
|
756
|
-
owner: "lucern_platform",
|
|
757
|
-
scope: "environment",
|
|
758
|
-
sourcePath: "/platform/runtime",
|
|
759
|
-
environmentPolicy: "environment_specific",
|
|
760
|
-
required: true,
|
|
761
|
-
secret: false,
|
|
762
|
-
public: false,
|
|
763
|
-
consumers: ["lucern-web", "lucern-gateway", "lucern-mcp", "lucern-cli"],
|
|
764
|
-
destinations: [
|
|
765
|
-
{
|
|
766
|
-
kind: "vercel",
|
|
767
|
-
target: "lucern",
|
|
768
|
-
environmentPolicy: "environment_specific"
|
|
769
|
-
},
|
|
770
|
-
{
|
|
771
|
-
kind: "vercel",
|
|
772
|
-
target: "lucern-gateway",
|
|
773
|
-
environmentPolicy: "environment_specific"
|
|
774
|
-
},
|
|
775
|
-
{
|
|
776
|
-
kind: "runtime_fetch",
|
|
777
|
-
target: "lucern-cli-mcp-sdk",
|
|
778
|
-
environmentPolicy: "environment_specific"
|
|
779
|
-
}
|
|
780
|
-
],
|
|
781
|
-
description: "Canonical Lucern API gateway base URL. Older names remain aliases only."
|
|
782
|
-
},
|
|
783
|
-
{
|
|
784
|
-
id: "platform.runtime.login-base-url",
|
|
785
|
-
canonicalName: "LUCERN_LOGIN_BASE_URL",
|
|
786
|
-
aliases: ["LUCERN_AUTH_BASE_URL", "LUCERN_WEB_BASE_URL"],
|
|
787
|
-
owner: "lucern_platform",
|
|
788
|
-
scope: "environment",
|
|
789
|
-
sourcePath: "/platform/runtime",
|
|
790
|
-
environmentPolicy: "environment_specific",
|
|
791
|
-
required: false,
|
|
792
|
-
secret: false,
|
|
793
|
-
public: false,
|
|
794
|
-
consumers: ["lucern-gateway", "lucern-mcp", "lucern-cli"],
|
|
795
|
-
destinations: [
|
|
796
|
-
{
|
|
797
|
-
kind: "vercel",
|
|
798
|
-
target: "lucern-gateway",
|
|
799
|
-
environmentPolicy: "environment_specific"
|
|
800
|
-
},
|
|
801
|
-
{
|
|
802
|
-
kind: "runtime_fetch",
|
|
803
|
-
target: "lucern-cli-mcp-sdk",
|
|
804
|
-
environmentPolicy: "environment_specific"
|
|
805
|
-
}
|
|
806
|
-
],
|
|
807
|
-
description: "Browser login origin used when device/OAuth login is not served by the API base URL."
|
|
808
|
-
},
|
|
809
|
-
{
|
|
810
|
-
id: "platform.runtime.environment",
|
|
811
|
-
canonicalName: "LUCERN_ENVIRONMENT",
|
|
812
|
-
aliases: ["LUCERN_ENV"],
|
|
813
|
-
owner: "lucern_platform",
|
|
814
|
-
scope: "environment",
|
|
815
|
-
sourcePath: "/platform/runtime",
|
|
816
|
-
environmentPolicy: "environment_specific",
|
|
817
|
-
required: false,
|
|
818
|
-
secret: false,
|
|
819
|
-
public: false,
|
|
820
|
-
consumers: ["lucern-web", "lucern-gateway", "lucern-mcp", "lucern-cli"],
|
|
821
|
-
destinations: [
|
|
822
|
-
{
|
|
823
|
-
kind: "vercel",
|
|
824
|
-
target: "lucern",
|
|
825
|
-
environmentPolicy: "environment_specific"
|
|
826
|
-
},
|
|
827
|
-
{
|
|
828
|
-
kind: "vercel",
|
|
829
|
-
target: "lucern-gateway",
|
|
830
|
-
environmentPolicy: "environment_specific"
|
|
831
|
-
},
|
|
832
|
-
{
|
|
833
|
-
kind: "runtime_fetch",
|
|
834
|
-
target: "lucern-cli-mcp-sdk",
|
|
835
|
-
environmentPolicy: "environment_specific"
|
|
836
|
-
}
|
|
837
|
-
],
|
|
838
|
-
description: "Lucern runtime environment label."
|
|
839
|
-
},
|
|
840
|
-
{
|
|
841
|
-
id: "platform.runtime.require-deployment-host-registry",
|
|
842
|
-
canonicalName: "LUCERN_REQUIRE_DEPLOYMENT_HOST_REGISTRY",
|
|
843
|
-
owner: "lucern_platform",
|
|
844
|
-
scope: "environment",
|
|
845
|
-
sourcePath: "/platform/runtime",
|
|
846
|
-
environmentPolicy: "environment_specific",
|
|
847
|
-
required: false,
|
|
848
|
-
secret: false,
|
|
849
|
-
public: false,
|
|
850
|
-
consumers: ["lucern-gateway"],
|
|
851
|
-
destinations: [
|
|
852
|
-
{
|
|
853
|
-
kind: "vercel",
|
|
854
|
-
target: "lucern-gateway",
|
|
855
|
-
environmentPolicy: "environment_specific"
|
|
856
|
-
},
|
|
857
|
-
{
|
|
858
|
-
kind: "operator_local",
|
|
859
|
-
target: "lucern-repo",
|
|
860
|
-
environmentPolicy: "environment_specific"
|
|
861
|
-
}
|
|
862
|
-
],
|
|
863
|
-
description: "Fail-closed gateway toggle that requires MC deployment host registry resolution before routing."
|
|
864
|
-
},
|
|
865
|
-
{
|
|
866
|
-
id: "platform.mc.convex-url",
|
|
867
|
-
canonicalName: "CONVEX_MC_URL",
|
|
868
|
-
aliases: [
|
|
869
|
-
"CONVEX_MC_PROD_URL",
|
|
870
|
-
"LUCERN_ADMIN_CONVEX_URL",
|
|
871
|
-
"LUCERN_CONVEX_URL",
|
|
872
|
-
"MC_CONVEX_URL"
|
|
873
|
-
],
|
|
874
|
-
owner: "lucern_platform",
|
|
875
|
-
scope: "environment",
|
|
876
|
-
sourcePath: "/platform/mc",
|
|
877
|
-
environmentPolicy: "environment_specific",
|
|
878
|
-
required: true,
|
|
879
|
-
secret: false,
|
|
880
|
-
public: false,
|
|
881
|
-
consumers: ["lucern-gateway", "mc-operator-tooling", "lucern-repo-ci"],
|
|
882
|
-
destinations: [
|
|
883
|
-
{
|
|
884
|
-
kind: "vercel",
|
|
885
|
-
target: "lucern-gateway",
|
|
886
|
-
environmentPolicy: "environment_specific"
|
|
887
|
-
},
|
|
888
|
-
{
|
|
889
|
-
kind: "github_actions",
|
|
890
|
-
target: "LucernAI/lucern",
|
|
891
|
-
environmentPolicy: "environment_specific"
|
|
892
|
-
},
|
|
893
|
-
{
|
|
894
|
-
kind: "operator_local",
|
|
895
|
-
target: "lucern-repo",
|
|
896
|
-
environmentPolicy: "environment_specific"
|
|
897
|
-
}
|
|
898
|
-
],
|
|
899
|
-
description: "Master Control Convex URL. Prod must point to successful-clam-833; dev/staging to utmost-ox-403."
|
|
900
|
-
},
|
|
901
|
-
{
|
|
902
|
-
id: "platform.mc.convex-deploy-key",
|
|
903
|
-
canonicalName: "CONVEX_MC_DEPLOY_KEY",
|
|
904
|
-
aliases: [
|
|
905
|
-
"CONVEX_MC_PROD_DEPLOY_KEY",
|
|
906
|
-
"LUCERN_ADMIN_DEPLOY_KEY",
|
|
907
|
-
"LUCERN_DEPLOY_KEY",
|
|
908
|
-
"MC_DEPLOY_KEY",
|
|
909
|
-
"MC_PROD_DEPLOY_KEY"
|
|
910
|
-
],
|
|
911
|
-
owner: "lucern_platform",
|
|
912
|
-
scope: "environment",
|
|
913
|
-
sourcePath: "/platform/mc",
|
|
914
|
-
environmentPolicy: "environment_specific",
|
|
915
|
-
required: true,
|
|
916
|
-
secret: true,
|
|
917
|
-
public: false,
|
|
918
|
-
consumers: ["lucern-gateway", "mc-operator-tooling", "lucern-repo-ci"],
|
|
919
|
-
destinations: [
|
|
920
|
-
{
|
|
921
|
-
kind: "vercel",
|
|
922
|
-
target: "lucern-gateway",
|
|
923
|
-
environmentPolicy: "environment_specific"
|
|
924
|
-
},
|
|
925
|
-
{
|
|
926
|
-
kind: "github_actions",
|
|
927
|
-
target: "LucernAI/lucern",
|
|
928
|
-
environmentPolicy: "environment_specific"
|
|
929
|
-
},
|
|
930
|
-
{
|
|
931
|
-
kind: "operator_local",
|
|
932
|
-
target: "lucern-repo",
|
|
933
|
-
environmentPolicy: "environment_specific"
|
|
934
|
-
}
|
|
935
|
-
],
|
|
936
|
-
description: "Master Control deploy/admin key. Never route to tenant Vercel projects or tenant Convex deployments."
|
|
937
|
-
},
|
|
938
|
-
{
|
|
939
|
-
id: "platform.mc.session-token-secret",
|
|
940
|
-
canonicalName: "LUCERN_SESSION_TOKEN_SECRET",
|
|
941
|
-
owner: "lucern_platform",
|
|
942
|
-
scope: "environment",
|
|
943
|
-
sourcePath: "/platform/mc",
|
|
944
|
-
environmentPolicy: "environment_specific",
|
|
945
|
-
required: true,
|
|
946
|
-
secret: true,
|
|
947
|
-
public: false,
|
|
948
|
-
consumers: ["lucern-mcp", "mc-convex", "lucern-gateway"],
|
|
949
|
-
destinations: [
|
|
950
|
-
{
|
|
951
|
-
kind: "convex",
|
|
952
|
-
target: "master-control",
|
|
953
|
-
environmentPolicy: "environment_specific"
|
|
954
|
-
},
|
|
955
|
-
{
|
|
956
|
-
kind: "runtime_fetch",
|
|
957
|
-
target: "hosted-mcp-oauth",
|
|
958
|
-
environmentPolicy: "environment_specific"
|
|
959
|
-
},
|
|
960
|
-
{
|
|
961
|
-
kind: "vercel",
|
|
962
|
-
target: "lucern-gateway",
|
|
963
|
-
environmentPolicy: "environment_specific"
|
|
964
|
-
}
|
|
965
|
-
],
|
|
966
|
-
description: "Signs Lucern platform session/delegation tokens. This is platform-owned, not tenant-owned."
|
|
967
|
-
},
|
|
968
|
-
{
|
|
969
|
-
id: "platform.mc.tenant-secret-encryption-key",
|
|
970
|
-
canonicalName: "LUCERN_TENANT_SECRET_ENCRYPTION_KEY",
|
|
971
|
-
aliases: ["LUCERN_SESSION_TOKEN_SECRET"],
|
|
972
|
-
owner: "lucern_platform",
|
|
973
|
-
scope: "environment",
|
|
974
|
-
sourcePath: "/platform/mc",
|
|
975
|
-
environmentPolicy: "environment_specific",
|
|
976
|
-
required: true,
|
|
977
|
-
secret: true,
|
|
978
|
-
public: false,
|
|
979
|
-
consumers: ["mc-convex", "mc-operator-tooling"],
|
|
980
|
-
destinations: [
|
|
981
|
-
{
|
|
982
|
-
kind: "convex",
|
|
983
|
-
target: "master-control",
|
|
984
|
-
environmentPolicy: "environment_specific"
|
|
985
|
-
},
|
|
986
|
-
{
|
|
987
|
-
kind: "operator_local",
|
|
988
|
-
target: "mc-credential-maintenance",
|
|
989
|
-
environmentPolicy: "environment_specific"
|
|
990
|
-
}
|
|
991
|
-
],
|
|
992
|
-
description: "Encrypts tenant deployment credentials stored in MC. Session-token fallback is legacy only."
|
|
993
|
-
},
|
|
994
|
-
{
|
|
995
|
-
id: "platform.permit.api-key",
|
|
996
|
-
canonicalName: "LUCERN_PERMIT_API_KEY",
|
|
997
|
-
aliases: ["PERMIT_API_KEY"],
|
|
998
|
-
owner: "lucern_platform",
|
|
999
|
-
scope: "environment",
|
|
1000
|
-
sourcePath: "/platform/permit",
|
|
1001
|
-
environmentPolicy: "environment_specific",
|
|
1002
|
-
required: true,
|
|
1003
|
-
secret: true,
|
|
1004
|
-
public: false,
|
|
1005
|
-
consumers: ["mc-convex", "lucern-mcp", "lucern-gateway"],
|
|
1006
|
-
destinations: [
|
|
1007
|
-
{
|
|
1008
|
-
kind: "convex",
|
|
1009
|
-
target: "master-control",
|
|
1010
|
-
environmentPolicy: "environment_specific"
|
|
1011
|
-
},
|
|
1012
|
-
{
|
|
1013
|
-
kind: "runtime_fetch",
|
|
1014
|
-
target: "hosted-mcp-oauth",
|
|
1015
|
-
environmentPolicy: "environment_specific"
|
|
1016
|
-
},
|
|
1017
|
-
{
|
|
1018
|
-
kind: "vercel",
|
|
1019
|
-
target: "lucern-gateway",
|
|
1020
|
-
environmentPolicy: "environment_specific"
|
|
1021
|
-
}
|
|
1022
|
-
],
|
|
1023
|
-
description: "Permit.io API key used for MC sync and policy checks. Must fail closed if missing."
|
|
1024
|
-
},
|
|
1025
|
-
{
|
|
1026
|
-
id: "platform.permit.webhook-secret",
|
|
1027
|
-
canonicalName: "LUCERN_PERMIT_WEBHOOK_SECRET",
|
|
1028
|
-
aliases: ["PERMIT_WEBHOOK_SECRET"],
|
|
1029
|
-
owner: "lucern_platform",
|
|
1030
|
-
scope: "environment",
|
|
1031
|
-
sourcePath: "/platform/permit",
|
|
1032
|
-
environmentPolicy: "environment_specific",
|
|
1033
|
-
required: true,
|
|
1034
|
-
secret: true,
|
|
1035
|
-
public: false,
|
|
1036
|
-
consumers: ["mc-convex", "lucern-gateway", "mc-operator-tooling"],
|
|
1037
|
-
destinations: [
|
|
1038
|
-
{
|
|
1039
|
-
kind: "convex",
|
|
1040
|
-
target: "master-control",
|
|
1041
|
-
environmentPolicy: "environment_specific"
|
|
1042
|
-
},
|
|
1043
|
-
{
|
|
1044
|
-
kind: "vercel",
|
|
1045
|
-
target: "lucern-gateway",
|
|
1046
|
-
environmentPolicy: "environment_specific"
|
|
1047
|
-
},
|
|
1048
|
-
{
|
|
1049
|
-
kind: "operator_local",
|
|
1050
|
-
target: "mc-credential-maintenance",
|
|
1051
|
-
environmentPolicy: "environment_specific"
|
|
1052
|
-
}
|
|
1053
|
-
],
|
|
1054
|
-
description: "Permit.io webhook secret used by gateway and MC webhook handlers. Must fail closed if missing."
|
|
1055
|
-
},
|
|
1056
|
-
{
|
|
1057
|
-
id: "platform.permit.pdp-url",
|
|
1058
|
-
canonicalName: "LUCERN_PERMIT_PDP_URL",
|
|
1059
|
-
aliases: ["PERMIT_PDP_URL"],
|
|
1060
|
-
owner: "lucern_platform",
|
|
1061
|
-
scope: "environment",
|
|
1062
|
-
sourcePath: "/platform/permit",
|
|
1063
|
-
environmentPolicy: "environment_specific",
|
|
1064
|
-
required: false,
|
|
1065
|
-
secret: false,
|
|
1066
|
-
public: false,
|
|
1067
|
-
consumers: ["mc-convex", "lucern-mcp", "lucern-gateway"],
|
|
1068
|
-
destinations: [
|
|
1069
|
-
{
|
|
1070
|
-
kind: "convex",
|
|
1071
|
-
target: "master-control",
|
|
1072
|
-
environmentPolicy: "environment_specific"
|
|
1073
|
-
},
|
|
1074
|
-
{
|
|
1075
|
-
kind: "runtime_fetch",
|
|
1076
|
-
target: "hosted-mcp-oauth",
|
|
1077
|
-
environmentPolicy: "environment_specific"
|
|
1078
|
-
},
|
|
1079
|
-
{
|
|
1080
|
-
kind: "vercel",
|
|
1081
|
-
target: "lucern-gateway",
|
|
1082
|
-
environmentPolicy: "environment_specific"
|
|
1083
|
-
}
|
|
1084
|
-
],
|
|
1085
|
-
description: "Optional Permit PDP URL override."
|
|
1086
|
-
},
|
|
1087
|
-
{
|
|
1088
|
-
id: "platform.permit.api-url",
|
|
1089
|
-
canonicalName: "LUCERN_PERMIT_API_URL",
|
|
1090
|
-
aliases: ["PERMIT_API_URL"],
|
|
1091
|
-
owner: "lucern_platform",
|
|
1092
|
-
scope: "environment",
|
|
1093
|
-
sourcePath: "/platform/permit",
|
|
1094
|
-
environmentPolicy: "environment_specific",
|
|
1095
|
-
required: false,
|
|
1096
|
-
secret: false,
|
|
1097
|
-
public: false,
|
|
1098
|
-
consumers: ["mc-convex", "lucern-mcp", "lucern-gateway"],
|
|
1099
|
-
destinations: [
|
|
1100
|
-
{
|
|
1101
|
-
kind: "convex",
|
|
1102
|
-
target: "master-control",
|
|
1103
|
-
environmentPolicy: "environment_specific"
|
|
1104
|
-
},
|
|
1105
|
-
{
|
|
1106
|
-
kind: "runtime_fetch",
|
|
1107
|
-
target: "hosted-mcp-oauth",
|
|
1108
|
-
environmentPolicy: "environment_specific"
|
|
1109
|
-
},
|
|
1110
|
-
{
|
|
1111
|
-
kind: "vercel",
|
|
1112
|
-
target: "lucern-gateway",
|
|
1113
|
-
environmentPolicy: "environment_specific"
|
|
1114
|
-
}
|
|
1115
|
-
],
|
|
1116
|
-
description: "Optional Permit API URL override."
|
|
1117
|
-
},
|
|
1118
|
-
{
|
|
1119
|
-
id: "platform.ci.infisical-bootstrap-client-id",
|
|
1120
|
-
canonicalName: "INFISICAL_BOOTSTRAP_CLIENT_ID",
|
|
1121
|
-
aliases: ["INFISICAL_CI_CLIENT_ID"],
|
|
1122
|
-
owner: "provider",
|
|
1123
|
-
scope: "environment",
|
|
1124
|
-
sourcePath: "/platform/ci",
|
|
1125
|
-
environmentPolicy: "same_all_environments",
|
|
1126
|
-
required: true,
|
|
1127
|
-
secret: true,
|
|
1128
|
-
public: false,
|
|
1129
|
-
consumers: ["lucern-repo-ci"],
|
|
1130
|
-
destinations: [
|
|
1131
|
-
{
|
|
1132
|
-
kind: "github_actions",
|
|
1133
|
-
target: "LucernAI/lucern",
|
|
1134
|
-
environmentPolicy: "same_all_environments"
|
|
1135
|
-
}
|
|
1136
|
-
],
|
|
1137
|
-
description: "Machine identity client id used by CI to reconcile Infisical desired state."
|
|
1138
|
-
},
|
|
1139
|
-
{
|
|
1140
|
-
id: "platform.ci.infisical-bootstrap-client-secret",
|
|
1141
|
-
canonicalName: "INFISICAL_BOOTSTRAP_CLIENT_SECRET",
|
|
1142
|
-
aliases: ["INFISICAL_CI_CLIENT_SECRET"],
|
|
1143
|
-
owner: "provider",
|
|
1144
|
-
scope: "environment",
|
|
1145
|
-
sourcePath: "/platform/ci",
|
|
1146
|
-
environmentPolicy: "same_all_environments",
|
|
1147
|
-
required: true,
|
|
1148
|
-
secret: true,
|
|
1149
|
-
public: false,
|
|
1150
|
-
consumers: ["lucern-repo-ci"],
|
|
1151
|
-
destinations: [
|
|
1152
|
-
{
|
|
1153
|
-
kind: "github_actions",
|
|
1154
|
-
target: "LucernAI/lucern",
|
|
1155
|
-
environmentPolicy: "same_all_environments"
|
|
1156
|
-
}
|
|
1157
|
-
],
|
|
1158
|
-
description: "Machine identity client secret used by CI to reconcile Infisical desired state."
|
|
1159
|
-
},
|
|
1160
|
-
{
|
|
1161
|
-
id: "platform.publish.npm-token",
|
|
1162
|
-
canonicalName: "NPM_TOKEN",
|
|
1163
|
-
aliases: ["NODE_AUTH_TOKEN"],
|
|
1164
|
-
owner: "provider",
|
|
1165
|
-
scope: "environment",
|
|
1166
|
-
sourcePath: "/platform/publish",
|
|
1167
|
-
environmentPolicy: "same_all_environments",
|
|
1168
|
-
required: true,
|
|
1169
|
-
secret: true,
|
|
1170
|
-
public: false,
|
|
1171
|
-
consumers: ["lucern-repo-ci"],
|
|
1172
|
-
destinations: [
|
|
1173
|
-
{
|
|
1174
|
-
kind: "github_actions",
|
|
1175
|
-
target: "LucernAI/lucern",
|
|
1176
|
-
environmentPolicy: "same_all_environments"
|
|
1177
|
-
}
|
|
1178
|
-
],
|
|
1179
|
-
description: "Package publish/install token for @lucern/* release automation."
|
|
1180
|
-
}
|
|
1181
|
-
];
|
|
1182
|
-
var PLATFORM_AI_SECRET_DEFINITIONS = [
|
|
1183
|
-
{
|
|
1184
|
-
id: "platform.ai.openai-api-key",
|
|
1185
|
-
canonicalName: "OPENAI_API_KEY",
|
|
1186
|
-
owner: "lucern_platform",
|
|
1187
|
-
scope: "environment",
|
|
1188
|
-
sourcePath: "/platform/ai",
|
|
1189
|
-
environmentPolicy: "environment_specific",
|
|
1190
|
-
required: false,
|
|
1191
|
-
secret: true,
|
|
1192
|
-
public: false,
|
|
1193
|
-
consumers: ["lucern-ai-runtime", "lucern-repo-ci"],
|
|
1194
|
-
destinations: [
|
|
1195
|
-
{
|
|
1196
|
-
kind: "runtime_fetch",
|
|
1197
|
-
target: "lucern-ai-runtime",
|
|
1198
|
-
environmentPolicy: "environment_specific"
|
|
1199
|
-
},
|
|
1200
|
-
{
|
|
1201
|
-
kind: "github_actions",
|
|
1202
|
-
target: "LucernAI/lucern",
|
|
1203
|
-
environmentPolicy: "environment_specific"
|
|
1204
|
-
}
|
|
1205
|
-
],
|
|
1206
|
-
description: "Lucern-owned OpenAI key for platform AI jobs, benchmarks, and controlled operator automation."
|
|
1207
|
-
},
|
|
1208
|
-
{
|
|
1209
|
-
id: "platform.ai.anthropic-api-key",
|
|
1210
|
-
canonicalName: "ANTHROPIC_API_KEY",
|
|
1211
|
-
owner: "lucern_platform",
|
|
1212
|
-
scope: "environment",
|
|
1213
|
-
sourcePath: "/platform/ai",
|
|
1214
|
-
environmentPolicy: "environment_specific",
|
|
1215
|
-
required: false,
|
|
1216
|
-
secret: true,
|
|
1217
|
-
public: false,
|
|
1218
|
-
consumers: ["lucern-ai-runtime", "lucern-repo-ci"],
|
|
1219
|
-
destinations: [
|
|
1220
|
-
{
|
|
1221
|
-
kind: "runtime_fetch",
|
|
1222
|
-
target: "lucern-ai-runtime",
|
|
1223
|
-
environmentPolicy: "environment_specific"
|
|
1224
|
-
},
|
|
1225
|
-
{
|
|
1226
|
-
kind: "github_actions",
|
|
1227
|
-
target: "LucernAI/lucern",
|
|
1228
|
-
environmentPolicy: "environment_specific"
|
|
1229
|
-
}
|
|
1230
|
-
],
|
|
1231
|
-
description: "Lucern-owned Anthropic key for platform AI jobs, benchmarks, and controlled operator automation."
|
|
1232
|
-
},
|
|
1233
|
-
{
|
|
1234
|
-
id: "platform.ai.gemini-api-key",
|
|
1235
|
-
canonicalName: "GEMINI_API_KEY",
|
|
1236
|
-
aliases: ["GOOGLE_AI_API_KEY", "GOOGLE_GENERATIVE_AI_API_KEY"],
|
|
1237
|
-
owner: "lucern_platform",
|
|
1238
|
-
scope: "environment",
|
|
1239
|
-
sourcePath: "/platform/ai",
|
|
1240
|
-
environmentPolicy: "environment_specific",
|
|
1241
|
-
required: false,
|
|
1242
|
-
secret: true,
|
|
1243
|
-
public: false,
|
|
1244
|
-
consumers: ["lucern-ai-runtime", "lucern-repo-ci"],
|
|
1245
|
-
destinations: [
|
|
1246
|
-
{
|
|
1247
|
-
kind: "runtime_fetch",
|
|
1248
|
-
target: "lucern-ai-runtime",
|
|
1249
|
-
environmentPolicy: "environment_specific"
|
|
1250
|
-
},
|
|
1251
|
-
{
|
|
1252
|
-
kind: "github_actions",
|
|
1253
|
-
target: "LucernAI/lucern",
|
|
1254
|
-
environmentPolicy: "environment_specific"
|
|
1255
|
-
}
|
|
1256
|
-
],
|
|
1257
|
-
description: "Lucern-owned Google/Gemini key. Google alias names are read compatibility only."
|
|
1258
|
-
}
|
|
1259
|
-
];
|
|
1260
|
-
var PLATFORM_LANGFUSE_SECRET_DEFINITIONS = [
|
|
1261
|
-
{
|
|
1262
|
-
id: "platform.langfuse.secret-key",
|
|
1263
|
-
canonicalName: "LANGFUSE_SECRET_KEY",
|
|
1264
|
-
owner: "lucern_platform",
|
|
1265
|
-
scope: "environment",
|
|
1266
|
-
sourcePath: "/platform/observability/langfuse",
|
|
1267
|
-
environmentPolicy: "environment_specific",
|
|
1268
|
-
required: false,
|
|
1269
|
-
secret: true,
|
|
1270
|
-
public: false,
|
|
1271
|
-
consumers: ["lucern-ai-runtime", "lucern-observability", "lucern-repo-ci"],
|
|
1272
|
-
destinations: [
|
|
1273
|
-
{
|
|
1274
|
-
kind: "runtime_fetch",
|
|
1275
|
-
target: "lucern-ai-runtime",
|
|
1276
|
-
environmentPolicy: "environment_specific"
|
|
1277
|
-
},
|
|
1278
|
-
{
|
|
1279
|
-
kind: "github_actions",
|
|
1280
|
-
target: "LucernAI/lucern",
|
|
1281
|
-
environmentPolicy: "environment_specific"
|
|
1282
|
-
}
|
|
1283
|
-
],
|
|
1284
|
-
description: "Lucern-owned Langfuse secret key for prompt sync, prompt reads, and AI tracing."
|
|
1285
|
-
},
|
|
1286
|
-
{
|
|
1287
|
-
id: "platform.langfuse.public-key",
|
|
1288
|
-
canonicalName: "LANGFUSE_PUBLIC_KEY",
|
|
1289
|
-
owner: "lucern_platform",
|
|
1290
|
-
scope: "environment",
|
|
1291
|
-
sourcePath: "/platform/observability/langfuse",
|
|
1292
|
-
environmentPolicy: "environment_specific",
|
|
1293
|
-
required: false,
|
|
1294
|
-
secret: false,
|
|
1295
|
-
public: false,
|
|
1296
|
-
consumers: ["lucern-ai-runtime", "lucern-observability", "lucern-repo-ci"],
|
|
1297
|
-
destinations: [
|
|
1298
|
-
{
|
|
1299
|
-
kind: "runtime_fetch",
|
|
1300
|
-
target: "lucern-ai-runtime",
|
|
1301
|
-
environmentPolicy: "environment_specific"
|
|
1302
|
-
},
|
|
1303
|
-
{
|
|
1304
|
-
kind: "github_actions",
|
|
1305
|
-
target: "LucernAI/lucern",
|
|
1306
|
-
environmentPolicy: "environment_specific"
|
|
1307
|
-
}
|
|
1308
|
-
],
|
|
1309
|
-
description: "Lucern-owned Langfuse public key paired with LANGFUSE_SECRET_KEY."
|
|
1310
|
-
},
|
|
1311
|
-
{
|
|
1312
|
-
id: "platform.langfuse.base-url",
|
|
1313
|
-
canonicalName: "LANGFUSE_BASE_URL",
|
|
1314
|
-
aliases: ["LANGFUSE_BASEURL", "LANGFUSE_HOST"],
|
|
1315
|
-
owner: "lucern_platform",
|
|
1316
|
-
scope: "environment",
|
|
1317
|
-
sourcePath: "/platform/observability/langfuse",
|
|
1318
|
-
environmentPolicy: "environment_specific",
|
|
1319
|
-
required: false,
|
|
1320
|
-
secret: false,
|
|
1321
|
-
public: false,
|
|
1322
|
-
consumers: ["lucern-ai-runtime", "lucern-observability", "lucern-repo-ci"],
|
|
1323
|
-
destinations: [
|
|
1324
|
-
{
|
|
1325
|
-
kind: "runtime_fetch",
|
|
1326
|
-
target: "lucern-ai-runtime",
|
|
1327
|
-
environmentPolicy: "environment_specific"
|
|
1328
|
-
},
|
|
1329
|
-
{
|
|
1330
|
-
kind: "github_actions",
|
|
1331
|
-
target: "LucernAI/lucern",
|
|
1332
|
-
environmentPolicy: "environment_specific"
|
|
1333
|
-
}
|
|
1334
|
-
],
|
|
1335
|
-
description: "Canonical Langfuse API origin. BASEURL/HOST are compatibility aliases."
|
|
1336
|
-
}
|
|
1337
|
-
];
|
|
1338
|
-
var PLATFORM_GRAPH_STORE_SECRET_DEFINITIONS = [
|
|
1339
|
-
{
|
|
1340
|
-
id: "platform.neo4j.uri",
|
|
1341
|
-
canonicalName: "NEO4J_URI",
|
|
1342
|
-
owner: "lucern_platform",
|
|
1343
|
-
scope: "environment",
|
|
1344
|
-
sourcePath: "/platform/graph/neo4j",
|
|
1345
|
-
environmentPolicy: "environment_specific",
|
|
1346
|
-
required: false,
|
|
1347
|
-
secret: false,
|
|
1348
|
-
public: false,
|
|
1349
|
-
consumers: ["lucern-graph-sync", "lucern-repo-ci"],
|
|
1350
|
-
destinations: [
|
|
1351
|
-
{
|
|
1352
|
-
kind: "runtime_fetch",
|
|
1353
|
-
target: "lucern-graph-sync",
|
|
1354
|
-
environmentPolicy: "environment_specific"
|
|
1355
|
-
},
|
|
1356
|
-
{
|
|
1357
|
-
kind: "github_actions",
|
|
1358
|
-
target: "LucernAI/lucern",
|
|
1359
|
-
environmentPolicy: "environment_specific"
|
|
1360
|
-
}
|
|
1361
|
-
],
|
|
1362
|
-
description: "Lucern-owned Neo4j URI for platform graph-sync surfaces."
|
|
1363
|
-
},
|
|
1364
|
-
{
|
|
1365
|
-
id: "platform.neo4j.user",
|
|
1366
|
-
canonicalName: "NEO4J_USER",
|
|
1367
|
-
aliases: ["NEO4J_USERNAME"],
|
|
1368
|
-
owner: "lucern_platform",
|
|
1369
|
-
scope: "environment",
|
|
1370
|
-
sourcePath: "/platform/graph/neo4j",
|
|
1371
|
-
environmentPolicy: "environment_specific",
|
|
1372
|
-
required: false,
|
|
1373
|
-
secret: false,
|
|
1374
|
-
public: false,
|
|
1375
|
-
consumers: ["lucern-graph-sync", "lucern-repo-ci"],
|
|
1376
|
-
destinations: [
|
|
1377
|
-
{
|
|
1378
|
-
kind: "runtime_fetch",
|
|
1379
|
-
target: "lucern-graph-sync",
|
|
1380
|
-
environmentPolicy: "environment_specific"
|
|
1381
|
-
},
|
|
1382
|
-
{
|
|
1383
|
-
kind: "github_actions",
|
|
1384
|
-
target: "LucernAI/lucern",
|
|
1385
|
-
environmentPolicy: "environment_specific"
|
|
1386
|
-
}
|
|
1387
|
-
],
|
|
1388
|
-
description: "Lucern-owned Neo4j username for platform graph-sync surfaces."
|
|
1389
|
-
},
|
|
1390
|
-
{
|
|
1391
|
-
id: "platform.neo4j.password",
|
|
1392
|
-
canonicalName: "NEO4J_PASSWORD",
|
|
1393
|
-
owner: "lucern_platform",
|
|
1394
|
-
scope: "environment",
|
|
1395
|
-
sourcePath: "/platform/graph/neo4j",
|
|
1396
|
-
environmentPolicy: "environment_specific",
|
|
1397
|
-
required: false,
|
|
1398
|
-
secret: true,
|
|
1399
|
-
public: false,
|
|
1400
|
-
consumers: ["lucern-graph-sync", "lucern-repo-ci"],
|
|
1401
|
-
destinations: [
|
|
1402
|
-
{
|
|
1403
|
-
kind: "runtime_fetch",
|
|
1404
|
-
target: "lucern-graph-sync",
|
|
1405
|
-
environmentPolicy: "environment_specific"
|
|
1406
|
-
},
|
|
1407
|
-
{
|
|
1408
|
-
kind: "github_actions",
|
|
1409
|
-
target: "LucernAI/lucern",
|
|
1410
|
-
environmentPolicy: "environment_specific"
|
|
1411
|
-
}
|
|
1412
|
-
],
|
|
1413
|
-
description: "Lucern-owned Neo4j password for platform graph-sync surfaces."
|
|
1414
|
-
},
|
|
1415
|
-
{
|
|
1416
|
-
id: "platform.neo4j.sync-secret",
|
|
1417
|
-
canonicalName: "NEO4J_SYNC_SECRET",
|
|
1418
|
-
owner: "lucern_platform",
|
|
1419
|
-
scope: "environment",
|
|
1420
|
-
sourcePath: "/platform/graph/neo4j",
|
|
1421
|
-
environmentPolicy: "environment_specific",
|
|
1422
|
-
required: false,
|
|
1423
|
-
secret: true,
|
|
1424
|
-
public: false,
|
|
1425
|
-
consumers: ["lucern-graph-sync", "lucern-repo-ci"],
|
|
1426
|
-
destinations: [
|
|
1427
|
-
{
|
|
1428
|
-
kind: "runtime_fetch",
|
|
1429
|
-
target: "lucern-graph-sync",
|
|
1430
|
-
environmentPolicy: "environment_specific"
|
|
1431
|
-
},
|
|
1432
|
-
{
|
|
1433
|
-
kind: "github_actions",
|
|
1434
|
-
target: "LucernAI/lucern",
|
|
1435
|
-
environmentPolicy: "environment_specific"
|
|
1436
|
-
}
|
|
1437
|
-
],
|
|
1438
|
-
description: "Shared secret protecting Lucern-owned graph-sync HTTP/query proxy calls."
|
|
1439
|
-
},
|
|
1440
|
-
{
|
|
1441
|
-
id: "platform.neo4j.database",
|
|
1442
|
-
canonicalName: "NEO4J_DATABASE",
|
|
1443
|
-
owner: "lucern_platform",
|
|
1444
|
-
scope: "environment",
|
|
1445
|
-
sourcePath: "/platform/graph/neo4j",
|
|
1446
|
-
environmentPolicy: "environment_specific",
|
|
1447
|
-
required: false,
|
|
1448
|
-
secret: false,
|
|
1449
|
-
public: false,
|
|
1450
|
-
consumers: ["lucern-graph-sync", "lucern-repo-ci"],
|
|
1451
|
-
destinations: [
|
|
1452
|
-
{
|
|
1453
|
-
kind: "runtime_fetch",
|
|
1454
|
-
target: "lucern-graph-sync",
|
|
1455
|
-
environmentPolicy: "environment_specific"
|
|
1456
|
-
},
|
|
1457
|
-
{
|
|
1458
|
-
kind: "github_actions",
|
|
1459
|
-
target: "LucernAI/lucern",
|
|
1460
|
-
environmentPolicy: "environment_specific"
|
|
1461
|
-
}
|
|
1462
|
-
],
|
|
1463
|
-
description: "Optional Neo4j database name for Lucern-owned graph-sync surfaces."
|
|
1464
|
-
}
|
|
1465
|
-
];
|
|
1466
|
-
var PLATFORM_VECTOR_STORE_SECRET_DEFINITIONS = [
|
|
1467
|
-
{
|
|
1468
|
-
id: "platform.pinecone.api-key",
|
|
1469
|
-
canonicalName: "PINECONE_API_KEY",
|
|
1470
|
-
owner: "lucern_platform",
|
|
1471
|
-
scope: "environment",
|
|
1472
|
-
sourcePath: "/platform/vector/pinecone",
|
|
1473
|
-
environmentPolicy: "environment_specific",
|
|
1474
|
-
required: false,
|
|
1475
|
-
secret: true,
|
|
1476
|
-
public: false,
|
|
1477
|
-
consumers: ["lucern-ai-runtime", "lucern-repo-ci"],
|
|
1478
|
-
destinations: [
|
|
1479
|
-
{
|
|
1480
|
-
kind: "runtime_fetch",
|
|
1481
|
-
target: "lucern-ai-runtime",
|
|
1482
|
-
environmentPolicy: "environment_specific"
|
|
1483
|
-
},
|
|
1484
|
-
{
|
|
1485
|
-
kind: "github_actions",
|
|
1486
|
-
target: "LucernAI/lucern",
|
|
1487
|
-
environmentPolicy: "environment_specific"
|
|
1488
|
-
}
|
|
1489
|
-
],
|
|
1490
|
-
description: "Lucern-owned Pinecone API key for platform vector search."
|
|
1491
|
-
},
|
|
1492
|
-
{
|
|
1493
|
-
id: "platform.pinecone.index-name",
|
|
1494
|
-
canonicalName: "PINECONE_INDEX_NAME",
|
|
1495
|
-
aliases: ["PINECONE_INDEX"],
|
|
1496
|
-
owner: "lucern_platform",
|
|
1497
|
-
scope: "environment",
|
|
1498
|
-
sourcePath: "/platform/vector/pinecone",
|
|
1499
|
-
environmentPolicy: "environment_specific",
|
|
1500
|
-
required: false,
|
|
1501
|
-
secret: false,
|
|
1502
|
-
public: false,
|
|
1503
|
-
consumers: ["lucern-ai-runtime", "lucern-repo-ci"],
|
|
1504
|
-
destinations: [
|
|
1505
|
-
{
|
|
1506
|
-
kind: "runtime_fetch",
|
|
1507
|
-
target: "lucern-ai-runtime",
|
|
1508
|
-
environmentPolicy: "environment_specific"
|
|
1509
|
-
},
|
|
1510
|
-
{
|
|
1511
|
-
kind: "github_actions",
|
|
1512
|
-
target: "LucernAI/lucern",
|
|
1513
|
-
environmentPolicy: "environment_specific"
|
|
1514
|
-
}
|
|
1515
|
-
],
|
|
1516
|
-
description: "Lucern-owned Pinecone index name."
|
|
1517
|
-
},
|
|
1518
|
-
{
|
|
1519
|
-
id: "platform.pinecone.host",
|
|
1520
|
-
canonicalName: "PINECONE_HOST",
|
|
1521
|
-
aliases: ["PINECONE_INDEX_HOST"],
|
|
1522
|
-
owner: "lucern_platform",
|
|
1523
|
-
scope: "environment",
|
|
1524
|
-
sourcePath: "/platform/vector/pinecone",
|
|
1525
|
-
environmentPolicy: "environment_specific",
|
|
1526
|
-
required: false,
|
|
1527
|
-
secret: false,
|
|
1528
|
-
public: false,
|
|
1529
|
-
consumers: ["lucern-ai-runtime", "lucern-repo-ci"],
|
|
1530
|
-
destinations: [
|
|
1531
|
-
{
|
|
1532
|
-
kind: "runtime_fetch",
|
|
1533
|
-
target: "lucern-ai-runtime",
|
|
1534
|
-
environmentPolicy: "environment_specific"
|
|
1535
|
-
},
|
|
1536
|
-
{
|
|
1537
|
-
kind: "github_actions",
|
|
1538
|
-
target: "LucernAI/lucern",
|
|
1539
|
-
environmentPolicy: "environment_specific"
|
|
1540
|
-
}
|
|
1541
|
-
],
|
|
1542
|
-
description: "Lucern-owned Pinecone host/index host."
|
|
1543
|
-
}
|
|
1544
|
-
];
|
|
1545
|
-
var PLATFORM_SENTRY_SECRET_DEFINITIONS = [
|
|
1546
|
-
{
|
|
1547
|
-
id: "platform.sentry.dsn",
|
|
1548
|
-
canonicalName: "NEXT_PUBLIC_SENTRY_DSN",
|
|
1549
|
-
aliases: ["SENTRY_DSN", "NEXT_PUBLIC_SENTRY_DSN_NEXTJS"],
|
|
1550
|
-
owner: "provider",
|
|
1551
|
-
scope: "environment",
|
|
1552
|
-
sourcePath: "/platform/observability/sentry",
|
|
1553
|
-
environmentPolicy: "environment_specific",
|
|
1554
|
-
required: false,
|
|
1555
|
-
secret: false,
|
|
1556
|
-
public: true,
|
|
1557
|
-
consumers: ["lucern-web", "lucern-gateway", "lucern-observability"],
|
|
1558
|
-
destinations: [
|
|
1559
|
-
{
|
|
1560
|
-
kind: "vercel",
|
|
1561
|
-
target: "lucern",
|
|
1562
|
-
environmentPolicy: "environment_specific"
|
|
1563
|
-
},
|
|
1564
|
-
{
|
|
1565
|
-
kind: "vercel",
|
|
1566
|
-
target: "lucern-gateway",
|
|
1567
|
-
environmentPolicy: "environment_specific"
|
|
1568
|
-
}
|
|
1569
|
-
],
|
|
1570
|
-
description: "Lucern-owned Sentry DSN for browser/server error telemetry."
|
|
1571
|
-
},
|
|
1572
|
-
{
|
|
1573
|
-
id: "platform.sentry.auth-token",
|
|
1574
|
-
canonicalName: "SENTRY_AUTH_TOKEN",
|
|
1575
|
-
owner: "provider",
|
|
1576
|
-
scope: "environment",
|
|
1577
|
-
sourcePath: "/platform/observability/sentry",
|
|
1578
|
-
environmentPolicy: "same_all_environments",
|
|
1579
|
-
required: false,
|
|
1580
|
-
secret: true,
|
|
1581
|
-
public: false,
|
|
1582
|
-
consumers: ["lucern-repo-ci", "lucern-observability"],
|
|
1583
|
-
destinations: [
|
|
1584
|
-
{
|
|
1585
|
-
kind: "github_actions",
|
|
1586
|
-
target: "LucernAI/lucern",
|
|
1587
|
-
environmentPolicy: "same_all_environments"
|
|
1588
|
-
},
|
|
1589
|
-
{
|
|
1590
|
-
kind: "vercel",
|
|
1591
|
-
target: "lucern",
|
|
1592
|
-
environmentPolicy: "same_all_environments"
|
|
1593
|
-
}
|
|
1594
|
-
],
|
|
1595
|
-
description: "Sentry release-upload token. Runtime services must not use it for authorization."
|
|
1596
|
-
},
|
|
1597
|
-
{
|
|
1598
|
-
id: "platform.sentry.org",
|
|
1599
|
-
canonicalName: "SENTRY_ORG",
|
|
1600
|
-
aliases: ["SENTRY_ORG_SLUG"],
|
|
1601
|
-
owner: "provider",
|
|
1602
|
-
scope: "global",
|
|
1603
|
-
sourcePath: "/platform/observability/sentry",
|
|
1604
|
-
environmentPolicy: "same_all_environments",
|
|
1605
|
-
required: false,
|
|
1606
|
-
secret: false,
|
|
1607
|
-
public: false,
|
|
1608
|
-
consumers: ["lucern-repo-ci", "lucern-observability"],
|
|
1609
|
-
destinations: [
|
|
1610
|
-
{
|
|
1611
|
-
kind: "github_actions",
|
|
1612
|
-
target: "LucernAI/lucern",
|
|
1613
|
-
environmentPolicy: "same_all_environments"
|
|
1614
|
-
},
|
|
1615
|
-
{
|
|
1616
|
-
kind: "vercel",
|
|
1617
|
-
target: "lucern",
|
|
1618
|
-
environmentPolicy: "same_all_environments"
|
|
1619
|
-
}
|
|
1620
|
-
],
|
|
1621
|
-
description: "Sentry organization slug for Lucern release uploads."
|
|
1622
|
-
},
|
|
1623
|
-
{
|
|
1624
|
-
id: "platform.sentry.project",
|
|
1625
|
-
canonicalName: "SENTRY_PROJECT",
|
|
1626
|
-
aliases: ["SENTRY_PROJECT_NEXTJS"],
|
|
1627
|
-
owner: "provider",
|
|
1628
|
-
scope: "global",
|
|
1629
|
-
sourcePath: "/platform/observability/sentry",
|
|
1630
|
-
environmentPolicy: "same_all_environments",
|
|
1631
|
-
required: false,
|
|
1632
|
-
secret: false,
|
|
1633
|
-
public: false,
|
|
1634
|
-
consumers: ["lucern-repo-ci", "lucern-observability"],
|
|
1635
|
-
destinations: [
|
|
1636
|
-
{
|
|
1637
|
-
kind: "github_actions",
|
|
1638
|
-
target: "LucernAI/lucern",
|
|
1639
|
-
environmentPolicy: "same_all_environments"
|
|
1640
|
-
},
|
|
1641
|
-
{
|
|
1642
|
-
kind: "vercel",
|
|
1643
|
-
target: "lucern",
|
|
1644
|
-
environmentPolicy: "same_all_environments"
|
|
1645
|
-
}
|
|
1646
|
-
],
|
|
1647
|
-
description: "Sentry project slug for Lucern release uploads."
|
|
1648
|
-
},
|
|
1649
|
-
{
|
|
1650
|
-
id: "platform.sentry.environment",
|
|
1651
|
-
canonicalName: "SENTRY_ENVIRONMENT",
|
|
1652
|
-
aliases: ["NEXT_PUBLIC_SENTRY_ENVIRONMENT"],
|
|
1653
|
-
owner: "provider",
|
|
1654
|
-
scope: "environment",
|
|
1655
|
-
sourcePath: "/platform/observability/sentry",
|
|
1656
|
-
environmentPolicy: "environment_specific",
|
|
1657
|
-
required: false,
|
|
1658
|
-
secret: false,
|
|
1659
|
-
public: false,
|
|
1660
|
-
consumers: ["lucern-web", "lucern-gateway", "lucern-observability"],
|
|
1661
|
-
destinations: [
|
|
1662
|
-
{
|
|
1663
|
-
kind: "vercel",
|
|
1664
|
-
target: "lucern",
|
|
1665
|
-
environmentPolicy: "environment_specific",
|
|
1666
|
-
writeNames: ["SENTRY_ENVIRONMENT", "NEXT_PUBLIC_SENTRY_ENVIRONMENT"]
|
|
1667
|
-
},
|
|
1668
|
-
{
|
|
1669
|
-
kind: "vercel",
|
|
1670
|
-
target: "lucern-gateway",
|
|
1671
|
-
environmentPolicy: "environment_specific"
|
|
1672
|
-
}
|
|
1673
|
-
],
|
|
1674
|
-
description: "Lucern-owned Sentry environment label."
|
|
1675
|
-
},
|
|
1676
|
-
{
|
|
1677
|
-
id: "platform.sentry.release",
|
|
1678
|
-
canonicalName: "SENTRY_RELEASE",
|
|
1679
|
-
aliases: ["NEXT_PUBLIC_SENTRY_RELEASE"],
|
|
1680
|
-
owner: "provider",
|
|
1681
|
-
scope: "environment",
|
|
1682
|
-
sourcePath: "/platform/observability/sentry",
|
|
1683
|
-
environmentPolicy: "environment_specific",
|
|
1684
|
-
required: false,
|
|
1685
|
-
secret: false,
|
|
1686
|
-
public: false,
|
|
1687
|
-
consumers: ["lucern-web", "lucern-gateway", "lucern-observability"],
|
|
1688
|
-
destinations: [
|
|
1689
|
-
{
|
|
1690
|
-
kind: "vercel",
|
|
1691
|
-
target: "lucern",
|
|
1692
|
-
environmentPolicy: "environment_specific",
|
|
1693
|
-
writeNames: ["SENTRY_RELEASE", "NEXT_PUBLIC_SENTRY_RELEASE"]
|
|
1694
|
-
},
|
|
1695
|
-
{
|
|
1696
|
-
kind: "vercel",
|
|
1697
|
-
target: "lucern-gateway",
|
|
1698
|
-
environmentPolicy: "environment_specific"
|
|
1699
|
-
}
|
|
1700
|
-
],
|
|
1701
|
-
description: "Lucern-owned Sentry release name."
|
|
1702
|
-
}
|
|
1703
|
-
];
|
|
1704
|
-
var PLATFORM_DEPLOY_AUTOMATION_SECRET_DEFINITIONS = [
|
|
1705
|
-
{
|
|
1706
|
-
id: "platform.deploy.vercel-token",
|
|
1707
|
-
canonicalName: "VERCEL_TOKEN",
|
|
1708
|
-
owner: "provider",
|
|
1709
|
-
scope: "global",
|
|
1710
|
-
sourcePath: "/platform/deploy/vercel",
|
|
1711
|
-
environmentPolicy: "same_all_environments",
|
|
1712
|
-
required: false,
|
|
1713
|
-
secret: true,
|
|
1714
|
-
public: false,
|
|
1715
|
-
consumers: ["lucern-repo-ci"],
|
|
1716
|
-
destinations: [
|
|
1717
|
-
{
|
|
1718
|
-
kind: "github_actions",
|
|
1719
|
-
target: "LucernAI/lucern",
|
|
1720
|
-
environmentPolicy: "same_all_environments"
|
|
1721
|
-
},
|
|
1722
|
-
{
|
|
1723
|
-
kind: "operator_local",
|
|
1724
|
-
target: "secret-sync-writer",
|
|
1725
|
-
environmentPolicy: "same_all_environments"
|
|
1726
|
-
}
|
|
1727
|
-
],
|
|
1728
|
-
description: "Vercel API token for the future reviewed live writer. Never copy into tenant apps."
|
|
1729
|
-
},
|
|
1730
|
-
{
|
|
1731
|
-
id: "platform.deploy.vercel-token.stack",
|
|
1732
|
-
canonicalName: "STACK_VERCEL_TOKEN",
|
|
1733
|
-
owner: "provider",
|
|
1734
|
-
scope: "global",
|
|
1735
|
-
sourcePath: "/platform/deploy/vercel",
|
|
1736
|
-
environmentPolicy: "same_all_environments",
|
|
1737
|
-
required: false,
|
|
1738
|
-
secret: true,
|
|
1739
|
-
public: false,
|
|
1740
|
-
consumers: ["lucern-repo-ci"],
|
|
1741
|
-
destinations: [
|
|
1742
|
-
{
|
|
1743
|
-
kind: "operator_local",
|
|
1744
|
-
target: "secret-sync-writer",
|
|
1745
|
-
environmentPolicy: "same_all_environments"
|
|
1746
|
-
}
|
|
1747
|
-
],
|
|
1748
|
-
description: "Stack Vercel API token for manifest-scoped Stack tenant Vercel secret sync. Never copy into tenant apps."
|
|
1749
|
-
},
|
|
1750
|
-
{
|
|
1751
|
-
id: "platform.deploy.vercel-token.lucern",
|
|
1752
|
-
canonicalName: "LUCERN_VERCEL_TOKEN",
|
|
1753
|
-
owner: "provider",
|
|
1754
|
-
scope: "global",
|
|
1755
|
-
sourcePath: "/platform/deploy/vercel",
|
|
1756
|
-
environmentPolicy: "same_all_environments",
|
|
1757
|
-
required: false,
|
|
1758
|
-
secret: true,
|
|
1759
|
-
public: false,
|
|
1760
|
-
consumers: ["lucern-repo-ci"],
|
|
1761
|
-
destinations: [
|
|
1762
|
-
{
|
|
1763
|
-
kind: "operator_local",
|
|
1764
|
-
target: "secret-sync-writer",
|
|
1765
|
-
environmentPolicy: "same_all_environments"
|
|
1766
|
-
}
|
|
1767
|
-
],
|
|
1768
|
-
description: "Lucern Vercel API token for manifest-scoped Lucern tenant Vercel secret sync. Never copy into tenant apps."
|
|
1769
|
-
},
|
|
1770
|
-
{
|
|
1771
|
-
id: "platform.deploy.vercel-org-id",
|
|
1772
|
-
canonicalName: "VERCEL_ORG_ID",
|
|
1773
|
-
owner: "provider",
|
|
1774
|
-
scope: "global",
|
|
1775
|
-
sourcePath: "/platform/deploy/vercel",
|
|
1776
|
-
environmentPolicy: "same_all_environments",
|
|
1777
|
-
required: false,
|
|
1778
|
-
secret: false,
|
|
1779
|
-
public: false,
|
|
1780
|
-
consumers: ["lucern-repo-ci"],
|
|
1781
|
-
destinations: [
|
|
1782
|
-
{
|
|
1783
|
-
kind: "github_actions",
|
|
1784
|
-
target: "LucernAI/lucern",
|
|
1785
|
-
environmentPolicy: "same_all_environments"
|
|
1786
|
-
},
|
|
1787
|
-
{
|
|
1788
|
-
kind: "operator_local",
|
|
1789
|
-
target: "secret-sync-writer",
|
|
1790
|
-
environmentPolicy: "same_all_environments"
|
|
1791
|
-
}
|
|
1792
|
-
],
|
|
1793
|
-
description: "Vercel team/org id used by deployment and sync automation."
|
|
1794
|
-
}
|
|
1795
|
-
];
|
|
1796
|
-
var PLATFORM_LOCAL_OPERATOR_CONFIG_SECRET_DEFINITIONS = [
|
|
1797
|
-
{
|
|
1798
|
-
id: "platform.docs.gap-audit-api-key",
|
|
1799
|
-
canonicalName: "DOC_GAP_AUDIT_API_KEY",
|
|
1800
|
-
owner: "lucern_platform",
|
|
1801
|
-
scope: "environment",
|
|
1802
|
-
sourcePath: "/platform/docs",
|
|
1803
|
-
environmentPolicy: "environment_specific",
|
|
1804
|
-
required: false,
|
|
1805
|
-
secret: true,
|
|
1806
|
-
public: false,
|
|
1807
|
-
consumers: ["lucern-repo-ci"],
|
|
1808
|
-
destinations: [
|
|
1809
|
-
{
|
|
1810
|
-
kind: "github_actions",
|
|
1811
|
-
target: "LucernAI/lucern",
|
|
1812
|
-
environmentPolicy: "environment_specific"
|
|
1813
|
-
},
|
|
1814
|
-
{
|
|
1815
|
-
kind: "operator_local",
|
|
1816
|
-
target: "lucern-repo",
|
|
1817
|
-
environmentPolicy: "environment_specific"
|
|
1818
|
-
}
|
|
1819
|
-
],
|
|
1820
|
-
description: "Optional model key for docs gap audits."
|
|
1821
|
-
},
|
|
1822
|
-
{
|
|
1823
|
-
id: "platform.docs.gap-audit-provider",
|
|
1824
|
-
canonicalName: "DOC_GAP_AUDIT_PROVIDER",
|
|
1825
|
-
owner: "lucern_platform",
|
|
1826
|
-
scope: "environment",
|
|
1827
|
-
sourcePath: "/platform/docs",
|
|
1828
|
-
environmentPolicy: "environment_specific",
|
|
1829
|
-
required: false,
|
|
1830
|
-
secret: false,
|
|
1831
|
-
public: false,
|
|
1832
|
-
consumers: ["lucern-repo-ci"],
|
|
1833
|
-
destinations: [
|
|
1834
|
-
{
|
|
1835
|
-
kind: "github_actions",
|
|
1836
|
-
target: "LucernAI/lucern",
|
|
1837
|
-
environmentPolicy: "environment_specific"
|
|
1838
|
-
},
|
|
1839
|
-
{
|
|
1840
|
-
kind: "operator_local",
|
|
1841
|
-
target: "lucern-repo",
|
|
1842
|
-
environmentPolicy: "environment_specific"
|
|
1843
|
-
}
|
|
1844
|
-
],
|
|
1845
|
-
description: "Optional docs gap audit provider selector."
|
|
1846
|
-
},
|
|
1847
|
-
{
|
|
1848
|
-
id: "platform.docs.gap-audit-model",
|
|
1849
|
-
canonicalName: "DOC_GAP_AUDIT_MODEL",
|
|
1850
|
-
owner: "lucern_platform",
|
|
1851
|
-
scope: "environment",
|
|
1852
|
-
sourcePath: "/platform/docs",
|
|
1853
|
-
environmentPolicy: "environment_specific",
|
|
1854
|
-
required: false,
|
|
1855
|
-
secret: false,
|
|
1856
|
-
public: false,
|
|
1857
|
-
consumers: ["lucern-repo-ci"],
|
|
1858
|
-
destinations: [
|
|
1859
|
-
{
|
|
1860
|
-
kind: "github_actions",
|
|
1861
|
-
target: "LucernAI/lucern",
|
|
1862
|
-
environmentPolicy: "environment_specific"
|
|
1863
|
-
},
|
|
1864
|
-
{
|
|
1865
|
-
kind: "operator_local",
|
|
1866
|
-
target: "lucern-repo",
|
|
1867
|
-
environmentPolicy: "environment_specific"
|
|
1868
|
-
}
|
|
1869
|
-
],
|
|
1870
|
-
description: "Optional docs gap audit model selector."
|
|
1871
|
-
},
|
|
1872
|
-
{
|
|
1873
|
-
id: "platform.infisical.local-cli",
|
|
1874
|
-
canonicalName: "INFISICAL_BIN",
|
|
1875
|
-
aliases: ["INFISICAL_API_URL", "INFISICAL_URL"],
|
|
1876
|
-
owner: "lucern_platform",
|
|
1877
|
-
scope: "global",
|
|
1878
|
-
sourcePath: "/platform/infisical",
|
|
1879
|
-
environmentPolicy: "same_all_environments",
|
|
1880
|
-
required: false,
|
|
1881
|
-
secret: false,
|
|
1882
|
-
public: false,
|
|
1883
|
-
consumers: ["mc-operator-tooling", "lucern-repo-ci"],
|
|
1884
|
-
destinations: [
|
|
1885
|
-
{
|
|
1886
|
-
kind: "operator_local",
|
|
1887
|
-
target: "lucern-repo",
|
|
1888
|
-
environmentPolicy: "same_all_environments"
|
|
1889
|
-
}
|
|
1890
|
-
],
|
|
1891
|
-
description: "Operator-only Infisical CLI/API location knobs. Machine credentials are handled by the bootstrap contract."
|
|
1892
|
-
},
|
|
1893
|
-
{
|
|
1894
|
-
id: "platform.gateway.device-verification-base-url",
|
|
1895
|
-
canonicalName: "LUCERN_DEVICE_VERIFICATION_BASE_URL",
|
|
1896
|
-
owner: "lucern_platform",
|
|
1897
|
-
scope: "environment",
|
|
1898
|
-
sourcePath: "/platform/runtime",
|
|
1899
|
-
environmentPolicy: "environment_specific",
|
|
1900
|
-
required: false,
|
|
1901
|
-
secret: false,
|
|
1902
|
-
public: false,
|
|
1903
|
-
consumers: ["lucern-gateway"],
|
|
1904
|
-
destinations: [
|
|
1905
|
-
{
|
|
1906
|
-
kind: "vercel",
|
|
1907
|
-
target: "lucern-gateway",
|
|
1908
|
-
environmentPolicy: "environment_specific"
|
|
1909
|
-
}
|
|
1910
|
-
],
|
|
1911
|
-
description: "Base URL shown during Lucern CLI/device authentication."
|
|
1912
|
-
},
|
|
1913
|
-
{
|
|
1914
|
-
id: "platform.gateway.mode",
|
|
1915
|
-
canonicalName: "LUCERN_GATEWAY_MODE",
|
|
1916
|
-
aliases: ["LUCERN_GATEWAY_ENV"],
|
|
1917
|
-
owner: "lucern_platform",
|
|
1918
|
-
scope: "environment",
|
|
1919
|
-
sourcePath: "/platform/runtime",
|
|
1920
|
-
environmentPolicy: "environment_specific",
|
|
1921
|
-
required: false,
|
|
1922
|
-
secret: false,
|
|
1923
|
-
public: false,
|
|
1924
|
-
consumers: ["lucern-gateway", "lucern-repo-ci"],
|
|
1925
|
-
destinations: [
|
|
1926
|
-
{
|
|
1927
|
-
kind: "vercel",
|
|
1928
|
-
target: "lucern-gateway",
|
|
1929
|
-
environmentPolicy: "environment_specific"
|
|
1930
|
-
},
|
|
1931
|
-
{
|
|
1932
|
-
kind: "github_actions",
|
|
1933
|
-
target: "LucernAI/lucern",
|
|
1934
|
-
environmentPolicy: "environment_specific"
|
|
1935
|
-
}
|
|
1936
|
-
],
|
|
1937
|
-
description: "Gateway runtime mode/environment label."
|
|
1938
|
-
},
|
|
1939
|
-
{
|
|
1940
|
-
id: "platform.mcp.runtime",
|
|
1941
|
-
canonicalName: "LUCERN_MCP_URL",
|
|
1942
|
-
aliases: [
|
|
1943
|
-
"LUCERN_AGENT_IDENTITY",
|
|
1944
|
-
"LUCERN_HTTP_HOST",
|
|
1945
|
-
"LUCERN_HTTP_PORT",
|
|
1946
|
-
"LUCERN_MCP_ALLOW_API_KEY_PASSTHROUGH",
|
|
1947
|
-
"LUCERN_MCP_DEBUG",
|
|
1948
|
-
"LUCERN_MCP_DIAGNOSTICS_FILE",
|
|
1949
|
-
"LUCERN_MCP_HEALTH_PATH",
|
|
1950
|
-
"LUCERN_MCP_HEALTH_URL",
|
|
1951
|
-
"LUCERN_MCP_HOST",
|
|
1952
|
-
"LUCERN_MCP_PATH",
|
|
1953
|
-
"LUCERN_MCP_PORT",
|
|
1954
|
-
"LUCERN_MCP_QUIET",
|
|
1955
|
-
"LUCERN_MCP_TRANSPORT",
|
|
1956
|
-
"LUCERN_PROFILE",
|
|
1957
|
-
"LUCERN_PUBLIC_URL",
|
|
1958
|
-
"MCP_SERVER_URL"
|
|
1959
|
-
],
|
|
1960
|
-
owner: "lucern_platform",
|
|
1961
|
-
scope: "environment",
|
|
1962
|
-
sourcePath: "/platform/runtime",
|
|
1963
|
-
environmentPolicy: "environment_specific",
|
|
1964
|
-
required: false,
|
|
1965
|
-
secret: false,
|
|
1966
|
-
public: false,
|
|
1967
|
-
consumers: ["lucern-mcp", "lucern-cli", "lucern-repo-ci"],
|
|
1968
|
-
destinations: [
|
|
1969
|
-
{
|
|
1970
|
-
kind: "runtime_fetch",
|
|
1971
|
-
target: "lucern-cli-mcp-sdk",
|
|
1972
|
-
environmentPolicy: "environment_specific"
|
|
1973
|
-
},
|
|
1974
|
-
{
|
|
1975
|
-
kind: "operator_local",
|
|
1976
|
-
target: "lucern-repo",
|
|
1977
|
-
environmentPolicy: "environment_specific"
|
|
1978
|
-
}
|
|
1979
|
-
],
|
|
1980
|
-
description: "Lucern MCP/CLI runtime knobs. Aliases are compatibility names and not Vercel write names."
|
|
1981
|
-
},
|
|
1982
|
-
{
|
|
1983
|
-
id: "platform.mcp.auth-token",
|
|
1984
|
-
canonicalName: "LUCERN_MCP_SERVER_AUTH_TOKEN",
|
|
1985
|
-
aliases: ["LUCERN_USER_TOKEN", "MCP_SERVER_TOKEN"],
|
|
1986
|
-
owner: "lucern_platform",
|
|
1987
|
-
scope: "environment",
|
|
1988
|
-
sourcePath: "/platform/runtime",
|
|
1989
|
-
environmentPolicy: "environment_specific",
|
|
1990
|
-
required: false,
|
|
1991
|
-
secret: true,
|
|
1992
|
-
public: false,
|
|
1993
|
-
consumers: ["lucern-mcp", "lucern-cli", "lucern-repo-ci"],
|
|
1994
|
-
destinations: [
|
|
1995
|
-
{
|
|
1996
|
-
kind: "runtime_fetch",
|
|
1997
|
-
target: "lucern-cli-mcp-sdk",
|
|
1998
|
-
environmentPolicy: "environment_specific"
|
|
1999
|
-
},
|
|
2000
|
-
{
|
|
2001
|
-
kind: "operator_local",
|
|
2002
|
-
target: "lucern-repo",
|
|
2003
|
-
environmentPolicy: "environment_specific"
|
|
2004
|
-
}
|
|
2005
|
-
],
|
|
2006
|
-
description: "Local/hosted MCP auth token material. Tenant apps must use MC/API-key sessions instead."
|
|
2007
|
-
},
|
|
2008
|
-
{
|
|
2009
|
-
id: "platform.graph-sync.proxy",
|
|
2010
|
-
canonicalName: "LUCERN_GRAPH_SYNC_QUERY_BASE_URL",
|
|
2011
|
-
aliases: [
|
|
2012
|
-
"LUCERN_DEFAULT_TENANT_ID",
|
|
2013
|
-
"LUCERN_GRAPH_SYNC_ALLOWED_PROXY_HOSTS"
|
|
2014
|
-
],
|
|
2015
|
-
owner: "lucern_platform",
|
|
2016
|
-
scope: "environment",
|
|
2017
|
-
sourcePath: "/platform/graph/neo4j",
|
|
2018
|
-
environmentPolicy: "environment_specific",
|
|
2019
|
-
required: false,
|
|
2020
|
-
secret: false,
|
|
2021
|
-
public: false,
|
|
2022
|
-
consumers: ["lucern-graph-sync", "lucern-repo-ci"],
|
|
2023
|
-
destinations: [
|
|
2024
|
-
{
|
|
2025
|
-
kind: "runtime_fetch",
|
|
2026
|
-
target: "lucern-graph-sync",
|
|
2027
|
-
environmentPolicy: "environment_specific"
|
|
2028
|
-
},
|
|
2029
|
-
{
|
|
2030
|
-
kind: "github_actions",
|
|
2031
|
-
target: "LucernAI/lucern",
|
|
2032
|
-
environmentPolicy: "environment_specific"
|
|
2033
|
-
}
|
|
2034
|
-
],
|
|
2035
|
-
description: "Graph-sync proxy URL, tenant filter, and allowed host list."
|
|
2036
|
-
},
|
|
2037
|
-
{
|
|
2038
|
-
id: "platform.package-smoke.local",
|
|
2039
|
-
canonicalName: "LUCERN_SDK_NPM_TOKEN",
|
|
2040
|
-
aliases: [
|
|
2041
|
-
"LUCERN_KERNEL_INSTALL_SPEC",
|
|
2042
|
-
"LUCERN_KERNEL_KEEP_CLEANROOM",
|
|
2043
|
-
"LUCERN_KERNEL_LOCAL_TARBALL",
|
|
2044
|
-
"LUCERN_KERNEL_NPM_TOKEN",
|
|
2045
|
-
"LUCERN_KERNEL_SCOPE_REGISTRY",
|
|
2046
|
-
"LUCERN_KERNEL_SKIP_CONVEX",
|
|
2047
|
-
"LUCERN_SDK_INSTALL_SPEC",
|
|
2048
|
-
"LUCERN_SDK_KEEP_CLEANROOM",
|
|
2049
|
-
"LUCERN_SDK_LOCAL_TARBALL",
|
|
2050
|
-
"LUCERN_SDK_SCOPE_REGISTRY",
|
|
2051
|
-
"LUCERN_SDK_SKIP_LIVE"
|
|
2052
|
-
],
|
|
2053
|
-
owner: "lucern_platform",
|
|
2054
|
-
scope: "global",
|
|
2055
|
-
sourcePath: "/platform/package-publish",
|
|
2056
|
-
environmentPolicy: "same_all_environments",
|
|
2057
|
-
required: false,
|
|
2058
|
-
secret: true,
|
|
2059
|
-
public: false,
|
|
2060
|
-
consumers: ["lucern-repo-ci"],
|
|
2061
|
-
destinations: [
|
|
2062
|
-
{
|
|
2063
|
-
kind: "github_actions",
|
|
2064
|
-
target: "LucernAI/lucern",
|
|
2065
|
-
environmentPolicy: "same_all_environments"
|
|
2066
|
-
},
|
|
2067
|
-
{
|
|
2068
|
-
kind: "operator_local",
|
|
2069
|
-
target: "lucern-repo",
|
|
2070
|
-
environmentPolicy: "same_all_environments"
|
|
2071
|
-
}
|
|
2072
|
-
],
|
|
2073
|
-
description: "Private package install smoke-test knobs. Values are not tenant runtime variables."
|
|
2074
|
-
},
|
|
2075
|
-
{
|
|
2076
|
-
id: "platform.convex-deploy.local-names",
|
|
2077
|
-
canonicalName: "LUCERN_CONVEX_DEPLOYMENT_NAME",
|
|
2078
|
-
aliases: [
|
|
2079
|
-
"CONVEX_DEPLOYMENT",
|
|
2080
|
-
"CONVEX_DEV_DEPLOYMENT_NAME",
|
|
2081
|
-
"CONVEX_PROD_DEPLOYMENT_NAME"
|
|
2082
|
-
],
|
|
2083
|
-
owner: "lucern_platform",
|
|
2084
|
-
scope: "environment",
|
|
2085
|
-
sourcePath: "/platform/deploy/convex",
|
|
2086
|
-
environmentPolicy: "environment_specific",
|
|
2087
|
-
required: false,
|
|
2088
|
-
secret: false,
|
|
2089
|
-
public: false,
|
|
2090
|
-
consumers: ["mc-operator-tooling", "lucern-repo-ci"],
|
|
2091
|
-
destinations: [
|
|
2092
|
-
{
|
|
2093
|
-
kind: "operator_local",
|
|
2094
|
-
target: "lucern-repo",
|
|
2095
|
-
environmentPolicy: "environment_specific"
|
|
2096
|
-
}
|
|
2097
|
-
],
|
|
2098
|
-
description: "Operator-only Convex deployment name hints. Deploy keys and URLs remain separately scoped."
|
|
2099
|
-
},
|
|
2100
|
-
{
|
|
2101
|
-
id: "platform.sdk.local-context",
|
|
2102
|
-
canonicalName: "LUCERN_TENANT_ID",
|
|
2103
|
-
aliases: [
|
|
2104
|
-
"LUCERN_AGENT_DISPLAY_NAME",
|
|
2105
|
-
"LUCERN_AGENT_ID",
|
|
2106
|
-
"LUCERN_API_ENVIRONMENT",
|
|
2107
|
-
"LUCERN_PACK_KEY",
|
|
2108
|
-
"LUCERN_PROJECT_ID",
|
|
2109
|
-
"LUCERN_TOPIC_ID",
|
|
2110
|
-
"LUCERN_WORKSPACE_ID",
|
|
2111
|
-
"LUCERN_WORKTREE_ID"
|
|
2112
|
-
],
|
|
2113
|
-
owner: "lucern_platform",
|
|
2114
|
-
scope: "environment",
|
|
2115
|
-
sourcePath: "/platform/runtime",
|
|
2116
|
-
environmentPolicy: "environment_specific",
|
|
2117
|
-
required: false,
|
|
2118
|
-
secret: false,
|
|
2119
|
-
public: false,
|
|
2120
|
-
consumers: ["lucern-cli", "lucern-mcp", "tenant-agent-runtime"],
|
|
2121
|
-
destinations: [
|
|
2122
|
-
{
|
|
2123
|
-
kind: "runtime_fetch",
|
|
2124
|
-
target: "lucern-cli-mcp-sdk",
|
|
2125
|
-
environmentPolicy: "environment_specific"
|
|
2126
|
-
},
|
|
2127
|
-
{
|
|
2128
|
-
kind: "operator_local",
|
|
2129
|
-
target: "lucern-repo",
|
|
2130
|
-
environmentPolicy: "environment_specific"
|
|
2131
|
-
}
|
|
2132
|
-
],
|
|
2133
|
-
description: "SDK, CLI, and agent context selectors. These identify scope and must not grant access by themselves."
|
|
2134
|
-
},
|
|
2135
|
-
{
|
|
2136
|
-
id: "platform.debug.local-flags",
|
|
2137
|
-
canonicalName: "LUCERN_FUNCTIONAL_DEBUG",
|
|
2138
|
-
aliases: [
|
|
2139
|
-
"LUCERN_CONTRACTS_SKIP_DTS",
|
|
2140
|
-
"LUCERN_DEPLOY_RECONCILIATION_DEBUG",
|
|
2141
|
-
"LUCERN_ENABLE_ADAPTIVE_LEARNING",
|
|
2142
|
-
"LUCERN_ENV_FILE",
|
|
2143
|
-
"LUCERN_EXAMPLE_DEBUG",
|
|
2144
|
-
"LUCERN_HTTP_SMOKE_DEBUG",
|
|
2145
|
-
"LUCERN_MULTI_TENANT",
|
|
2146
|
-
"LUCERN_PACK_ACTION_DEBUG",
|
|
2147
|
-
"LUCERN_RUN_LIVE_MCP"
|
|
2148
|
-
],
|
|
2149
|
-
owner: "lucern_platform",
|
|
2150
|
-
scope: "environment",
|
|
2151
|
-
sourcePath: "/platform/runtime/debug",
|
|
2152
|
-
environmentPolicy: "environment_specific",
|
|
2153
|
-
required: false,
|
|
2154
|
-
secret: false,
|
|
2155
|
-
public: false,
|
|
2156
|
-
consumers: ["lucern-repo-ci", "mc-operator-tooling"],
|
|
2157
|
-
destinations: [
|
|
2158
|
-
{
|
|
2159
|
-
kind: "operator_local",
|
|
2160
|
-
target: "lucern-repo",
|
|
2161
|
-
environmentPolicy: "environment_specific"
|
|
2162
|
-
}
|
|
2163
|
-
],
|
|
2164
|
-
description: "Local or CI debug toggles. They are manifest-known but not tenant runtime secrets."
|
|
2165
|
-
},
|
|
2166
|
-
{
|
|
2167
|
-
id: "tenant.stackos.deploy-guard.local",
|
|
2168
|
-
canonicalName: "STACKOS_DEPLOY_TARGET",
|
|
2169
|
-
aliases: [
|
|
2170
|
-
"STACKOS_DEPLOY_ENTRYPOINT",
|
|
2171
|
-
"STACKOS_EXPECTED_STAGING_COMMIT",
|
|
2172
|
-
"STACKOS_PROD_CUTOVER_APPROVED",
|
|
2173
|
-
"STACKOS_REPO_PATH",
|
|
2174
|
-
"STACKOS_REQUIRE_CHAT_RUNTIME",
|
|
2175
|
-
"STACKOS_SLOP_SCAN_BASELINE",
|
|
2176
|
-
"STACKOS_STAGING_API_KEY",
|
|
2177
|
-
"STACKOS_STAGING_BASE_URL",
|
|
2178
|
-
"STACK_DEPLOY_RECONCILIATION_SCHEMA_JSON"
|
|
2179
|
-
],
|
|
2180
|
-
owner: "tenant",
|
|
2181
|
-
scope: "software_system",
|
|
2182
|
-
sourcePath: "/tenants/stack",
|
|
2183
|
-
environmentPolicy: "environment_specific",
|
|
2184
|
-
required: false,
|
|
2185
|
-
secret: true,
|
|
2186
|
-
public: false,
|
|
2187
|
-
consumers: ["tenant-deploy-tooling", "lucern-repo-ci"],
|
|
2188
|
-
destinations: [
|
|
2189
|
-
{
|
|
2190
|
-
kind: "operator_local",
|
|
2191
|
-
target: "stackos-deploy-guard",
|
|
2192
|
-
environmentPolicy: "environment_specific"
|
|
2193
|
-
},
|
|
2194
|
-
{
|
|
2195
|
-
kind: "github_actions",
|
|
2196
|
-
target: "stack-vc/stackos",
|
|
2197
|
-
environmentPolicy: "environment_specific"
|
|
2198
|
-
}
|
|
2199
|
-
],
|
|
2200
|
-
description: "StackOS deploy/test guard variables. These are not written into the StackOS Vercel runtime."
|
|
2201
|
-
}
|
|
2202
|
-
];
|
|
2203
|
-
var TENANT_SHARED_SECRET_DEFINITION_TEMPLATES = [
|
|
2204
|
-
{
|
|
2205
|
-
idSuffix: "clerk.publishable",
|
|
2206
|
-
canonicalName: "NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY",
|
|
2207
|
-
aliases: ["CLERK_PUBLISHABLE_KEY"],
|
|
2208
|
-
required: true,
|
|
2209
|
-
secret: false,
|
|
2210
|
-
public: true,
|
|
2211
|
-
description: "Tenant-owned Clerk browser key. For Stack this is the master clerk.stack.vc project shared by front-end, StackOS, and the engineering workspace."
|
|
2212
|
-
},
|
|
2213
|
-
{
|
|
2214
|
-
idSuffix: "clerk.secret",
|
|
2215
|
-
canonicalName: "CLERK_SECRET_KEY",
|
|
2216
|
-
required: true,
|
|
2217
|
-
secret: true,
|
|
2218
|
-
public: false,
|
|
2219
|
-
description: "Tenant-owned Clerk backend secret used only by that tenant's server runtimes."
|
|
2220
|
-
},
|
|
2221
|
-
{
|
|
2222
|
-
idSuffix: "clerk.project",
|
|
2223
|
-
canonicalName: "CLERK_PROJECT_ID",
|
|
2224
|
-
required: true,
|
|
2225
|
-
secret: false,
|
|
2226
|
-
public: false,
|
|
2227
|
-
description: "Tenant-owned Clerk project id used to resolve canonical Clerk aliases."
|
|
2228
|
-
},
|
|
2229
|
-
{
|
|
2230
|
-
idSuffix: "clerk.jwks",
|
|
2231
|
-
canonicalName: "CLERK_JWT_ISSUER_DOMAIN",
|
|
2232
|
-
aliases: ["CLERK_ISSUER_URL", "CLERK_JWKS_URL"],
|
|
2233
|
-
required: false,
|
|
2234
|
-
secret: false,
|
|
2235
|
-
public: false,
|
|
2236
|
-
description: "Tenant Clerk issuer/JWKS URL consumed by Convex auth.config.ts."
|
|
2237
|
-
},
|
|
2238
|
-
{
|
|
2239
|
-
idSuffix: "clerk.jwt-key",
|
|
2240
|
-
canonicalName: "CLERK_JWT_KEY",
|
|
2241
|
-
required: false,
|
|
2242
|
-
secret: true,
|
|
2243
|
-
public: false,
|
|
2244
|
-
description: "Tenant Clerk JWT public verification key used by bearer-token API routes."
|
|
2245
|
-
},
|
|
2246
|
-
{
|
|
2247
|
-
idSuffix: "clerk.authorized-parties",
|
|
2248
|
-
canonicalName: "CLERK_AUTHORIZED_PARTIES",
|
|
2249
|
-
aliases: ["CLERK_MOBILE_AUTHORIZED_PARTIES"],
|
|
2250
|
-
required: false,
|
|
2251
|
-
secret: false,
|
|
2252
|
-
public: false,
|
|
2253
|
-
description: "Comma-separated Clerk authorized parties for browser and mobile bearer-token validation."
|
|
2254
|
-
},
|
|
2255
|
-
{
|
|
2256
|
-
idSuffix: "clerk.sign-in-url",
|
|
2257
|
-
canonicalName: "NEXT_PUBLIC_CLERK_SIGN_IN_URL",
|
|
2258
|
-
required: false,
|
|
2259
|
-
secret: false,
|
|
2260
|
-
public: true,
|
|
2261
|
-
description: "Tenant Clerk sign-in route for custom app login surfaces."
|
|
2262
|
-
},
|
|
2263
|
-
{
|
|
2264
|
-
idSuffix: "clerk.sign-up-url",
|
|
2265
|
-
canonicalName: "NEXT_PUBLIC_CLERK_SIGN_UP_URL",
|
|
2266
|
-
required: false,
|
|
2267
|
-
secret: false,
|
|
2268
|
-
public: true,
|
|
2269
|
-
description: "Tenant Clerk sign-up route for custom app login surfaces."
|
|
2270
|
-
}
|
|
2271
|
-
];
|
|
2272
|
-
var TENANT_SHARED_SECRET_DEFINITIONS = INFISICAL_TENANT_SOFTWARE_SYSTEMS.flatMap(
|
|
2273
|
-
(system) => TENANT_SHARED_SECRET_DEFINITION_TEMPLATES.map(
|
|
2274
|
-
(template) => ({
|
|
2275
|
-
id: `tenant.${system.id}.${template.idSuffix}`,
|
|
2276
|
-
canonicalName: template.canonicalName,
|
|
2277
|
-
aliases: "aliases" in template ? template.aliases : void 0,
|
|
2278
|
-
owner: "tenant",
|
|
2279
|
-
scope: "tenant",
|
|
2280
|
-
sourcePath: system.sharedSourcePath,
|
|
2281
|
-
environmentPolicy: "environment_specific",
|
|
2282
|
-
required: template.required,
|
|
2283
|
-
secret: template.secret,
|
|
2284
|
-
public: template.public,
|
|
2285
|
-
consumers: ["tenant-vercel-app", "tenant-convex-deployment"],
|
|
2286
|
-
destinations: [
|
|
2287
|
-
{
|
|
2288
|
-
kind: "vercel",
|
|
2289
|
-
target: system.vercelProjectName,
|
|
2290
|
-
environmentPolicy: "preprod_staging_prod_prod"
|
|
2291
|
-
},
|
|
2292
|
-
{
|
|
2293
|
-
kind: "convex",
|
|
2294
|
-
target: `${system.convex.preprodDeployment}|${system.convex.prodDeployment}`,
|
|
2295
|
-
environmentPolicy: "preprod_staging_prod_prod"
|
|
2296
|
-
}
|
|
2297
|
-
],
|
|
2298
|
-
description: `${system.tenantKey}/${system.workspaceKey}: ${template.description}`
|
|
2299
|
-
})
|
|
2300
|
-
)
|
|
2301
|
-
);
|
|
2302
|
-
var TENANT_INSTALL_SECRET_DEFINITIONS = INFISICAL_TENANT_SOFTWARE_SYSTEMS.map(
|
|
2303
|
-
(system) => ({
|
|
2304
|
-
id: `tenant.${system.id}.install-lucern-npm`,
|
|
2305
|
-
canonicalName: "INSTALL_LUCERN_NPM",
|
|
2306
|
-
owner: "provider",
|
|
2307
|
-
scope: "global",
|
|
2308
|
-
sourcePath: "/tenants/shared",
|
|
2309
|
-
environmentPolicy: "same_all_environments",
|
|
2310
|
-
required: true,
|
|
2311
|
-
secret: true,
|
|
2312
|
-
public: false,
|
|
2313
|
-
consumers: ["tenant-vercel-app", "tenant-deploy-tooling"],
|
|
2314
|
-
destinations: [
|
|
2315
|
-
{
|
|
2316
|
-
kind: "vercel",
|
|
2317
|
-
target: system.vercelProjectName,
|
|
2318
|
-
environmentPolicy: "same_all_environments"
|
|
2319
|
-
},
|
|
2320
|
-
{
|
|
2321
|
-
kind: "github_actions",
|
|
2322
|
-
target: `${system.repository.owner}/${system.repository.name}`,
|
|
2323
|
-
environmentPolicy: "same_all_environments"
|
|
2324
|
-
}
|
|
2325
|
-
],
|
|
2326
|
-
description: `${system.tenantKey}/${system.workspaceKey}: read-only npm install token for published @lucern/* packages.`
|
|
2327
|
-
})
|
|
2328
|
-
);
|
|
2329
|
-
var TENANT_PRODUCT_SOFTWARE_SYSTEM_IDS = ["stack-frontend", "stackos"];
|
|
2330
|
-
var TENANT_PRODUCT_RUNTIME_SECRET_DEFINITION_TEMPLATES = [
|
|
2331
|
-
{
|
|
2332
|
-
idSuffix: "ai.openai-api-key",
|
|
2333
|
-
canonicalName: "OPENAI_API_KEY",
|
|
2334
|
-
required: false,
|
|
2335
|
-
secret: true,
|
|
2336
|
-
public: false,
|
|
2337
|
-
consumers: ["tenant-vercel-app", "tenant-convex-deployment", "tenant-ai-runtime"],
|
|
2338
|
-
description: "Tenant-owned OpenAI key for product runtime LLM calls."
|
|
2339
|
-
},
|
|
2340
|
-
{
|
|
2341
|
-
idSuffix: "ai.anthropic-api-key",
|
|
2342
|
-
canonicalName: "ANTHROPIC_API_KEY",
|
|
2343
|
-
required: false,
|
|
2344
|
-
secret: true,
|
|
2345
|
-
public: false,
|
|
2346
|
-
consumers: ["tenant-vercel-app", "tenant-convex-deployment", "tenant-ai-runtime"],
|
|
2347
|
-
description: "Tenant-owned Anthropic key for product runtime LLM calls."
|
|
2348
|
-
},
|
|
2349
|
-
{
|
|
2350
|
-
idSuffix: "ai.gemini-api-key",
|
|
2351
|
-
canonicalName: "GEMINI_API_KEY",
|
|
2352
|
-
aliases: ["GOOGLE_AI_API_KEY", "GOOGLE_GENERATIVE_AI_API_KEY"],
|
|
2353
|
-
required: false,
|
|
2354
|
-
secret: true,
|
|
2355
|
-
public: false,
|
|
2356
|
-
consumers: ["tenant-vercel-app", "tenant-convex-deployment", "tenant-ai-runtime"],
|
|
2357
|
-
description: "Tenant-owned Google/Gemini key for product runtime LLM calls."
|
|
2358
|
-
},
|
|
2359
|
-
{
|
|
2360
|
-
idSuffix: "langfuse.secret-key",
|
|
2361
|
-
canonicalName: "LANGFUSE_SECRET_KEY",
|
|
2362
|
-
required: false,
|
|
2363
|
-
secret: true,
|
|
2364
|
-
public: false,
|
|
2365
|
-
consumers: [
|
|
2366
|
-
"tenant-vercel-app",
|
|
2367
|
-
"tenant-convex-deployment",
|
|
2368
|
-
"tenant-observability"
|
|
2369
|
-
],
|
|
2370
|
-
description: "Tenant-owned Langfuse secret key for product AI tracing."
|
|
2371
|
-
},
|
|
2372
|
-
{
|
|
2373
|
-
idSuffix: "langfuse.public-key",
|
|
2374
|
-
canonicalName: "LANGFUSE_PUBLIC_KEY",
|
|
2375
|
-
required: false,
|
|
2376
|
-
secret: false,
|
|
2377
|
-
public: false,
|
|
2378
|
-
consumers: [
|
|
2379
|
-
"tenant-vercel-app",
|
|
2380
|
-
"tenant-convex-deployment",
|
|
2381
|
-
"tenant-observability"
|
|
2382
|
-
],
|
|
2383
|
-
description: "Tenant-owned Langfuse public key for product AI tracing."
|
|
2384
|
-
},
|
|
2385
|
-
{
|
|
2386
|
-
idSuffix: "langfuse.base-url",
|
|
2387
|
-
canonicalName: "LANGFUSE_BASE_URL",
|
|
2388
|
-
aliases: ["LANGFUSE_BASEURL", "LANGFUSE_HOST"],
|
|
2389
|
-
required: false,
|
|
2390
|
-
secret: false,
|
|
2391
|
-
public: false,
|
|
2392
|
-
consumers: [
|
|
2393
|
-
"tenant-vercel-app",
|
|
2394
|
-
"tenant-convex-deployment",
|
|
2395
|
-
"tenant-observability"
|
|
2396
|
-
],
|
|
2397
|
-
description: "Tenant-owned Langfuse API origin."
|
|
2398
|
-
},
|
|
2399
|
-
{
|
|
2400
|
-
idSuffix: "graph.neo4j-uri",
|
|
2401
|
-
canonicalName: "NEO4J_URI",
|
|
2402
|
-
required: false,
|
|
2403
|
-
secret: false,
|
|
2404
|
-
public: false,
|
|
2405
|
-
consumers: [
|
|
2406
|
-
"tenant-vercel-app",
|
|
2407
|
-
"tenant-convex-deployment",
|
|
2408
|
-
"tenant-graph-sync"
|
|
2409
|
-
],
|
|
2410
|
-
description: "Tenant-owned Neo4j URI for product graph-sync."
|
|
2411
|
-
},
|
|
2412
|
-
{
|
|
2413
|
-
idSuffix: "graph.neo4j-user",
|
|
2414
|
-
canonicalName: "NEO4J_USER",
|
|
2415
|
-
aliases: ["NEO4J_USERNAME"],
|
|
2416
|
-
required: false,
|
|
2417
|
-
secret: false,
|
|
2418
|
-
public: false,
|
|
2419
|
-
consumers: [
|
|
2420
|
-
"tenant-vercel-app",
|
|
2421
|
-
"tenant-convex-deployment",
|
|
2422
|
-
"tenant-graph-sync"
|
|
2423
|
-
],
|
|
2424
|
-
description: "Tenant-owned Neo4j user for product graph-sync."
|
|
2425
|
-
},
|
|
2426
|
-
{
|
|
2427
|
-
idSuffix: "graph.neo4j-password",
|
|
2428
|
-
canonicalName: "NEO4J_PASSWORD",
|
|
2429
|
-
required: false,
|
|
2430
|
-
secret: true,
|
|
2431
|
-
public: false,
|
|
2432
|
-
consumers: [
|
|
2433
|
-
"tenant-vercel-app",
|
|
2434
|
-
"tenant-convex-deployment",
|
|
2435
|
-
"tenant-graph-sync"
|
|
2436
|
-
],
|
|
2437
|
-
description: "Tenant-owned Neo4j password for product graph-sync."
|
|
2438
|
-
},
|
|
2439
|
-
{
|
|
2440
|
-
idSuffix: "graph.neo4j-sync-secret",
|
|
2441
|
-
canonicalName: "NEO4J_SYNC_SECRET",
|
|
2442
|
-
required: false,
|
|
2443
|
-
secret: true,
|
|
2444
|
-
public: false,
|
|
2445
|
-
consumers: [
|
|
2446
|
-
"tenant-vercel-app",
|
|
2447
|
-
"tenant-convex-deployment",
|
|
2448
|
-
"tenant-graph-sync"
|
|
2449
|
-
],
|
|
2450
|
-
description: "Tenant-owned shared secret for product Convex-to-HTTP graph-sync calls."
|
|
2451
|
-
},
|
|
2452
|
-
{
|
|
2453
|
-
idSuffix: "graph.neo4j-database",
|
|
2454
|
-
canonicalName: "NEO4J_DATABASE",
|
|
2455
|
-
required: false,
|
|
2456
|
-
secret: false,
|
|
2457
|
-
public: false,
|
|
2458
|
-
consumers: [
|
|
2459
|
-
"tenant-vercel-app",
|
|
2460
|
-
"tenant-convex-deployment",
|
|
2461
|
-
"tenant-graph-sync"
|
|
2462
|
-
],
|
|
2463
|
-
description: "Tenant-owned Neo4j database name for product graph-sync."
|
|
2464
|
-
},
|
|
2465
|
-
{
|
|
2466
|
-
idSuffix: "vector.pinecone-api-key",
|
|
2467
|
-
canonicalName: "PINECONE_API_KEY",
|
|
2468
|
-
required: false,
|
|
2469
|
-
secret: true,
|
|
2470
|
-
public: false,
|
|
2471
|
-
consumers: [
|
|
2472
|
-
"tenant-vercel-app",
|
|
2473
|
-
"tenant-convex-deployment",
|
|
2474
|
-
"tenant-vector-store"
|
|
2475
|
-
],
|
|
2476
|
-
description: "Tenant-owned Pinecone API key for product vector search."
|
|
2477
|
-
},
|
|
2478
|
-
{
|
|
2479
|
-
idSuffix: "vector.pinecone-index-name",
|
|
2480
|
-
canonicalName: "PINECONE_INDEX_NAME",
|
|
2481
|
-
aliases: ["PINECONE_INDEX"],
|
|
2482
|
-
required: false,
|
|
2483
|
-
secret: false,
|
|
2484
|
-
public: false,
|
|
2485
|
-
consumers: [
|
|
2486
|
-
"tenant-vercel-app",
|
|
2487
|
-
"tenant-convex-deployment",
|
|
2488
|
-
"tenant-vector-store"
|
|
2489
|
-
],
|
|
2490
|
-
description: "Tenant-owned Pinecone index name for product vector search."
|
|
2491
|
-
},
|
|
2492
|
-
{
|
|
2493
|
-
idSuffix: "vector.pinecone-host",
|
|
2494
|
-
canonicalName: "PINECONE_HOST",
|
|
2495
|
-
aliases: ["PINECONE_INDEX_HOST"],
|
|
2496
|
-
required: false,
|
|
2497
|
-
secret: false,
|
|
2498
|
-
public: false,
|
|
2499
|
-
consumers: [
|
|
2500
|
-
"tenant-vercel-app",
|
|
2501
|
-
"tenant-convex-deployment",
|
|
2502
|
-
"tenant-vector-store"
|
|
2503
|
-
],
|
|
2504
|
-
description: "Tenant-owned Pinecone host for product vector search."
|
|
2505
|
-
},
|
|
2506
|
-
{
|
|
2507
|
-
idSuffix: "vector.pinecone-namespace",
|
|
2508
|
-
canonicalName: "PINECONE_NAMESPACE",
|
|
2509
|
-
required: false,
|
|
2510
|
-
secret: false,
|
|
2511
|
-
public: false,
|
|
2512
|
-
consumers: [
|
|
2513
|
-
"tenant-vercel-app",
|
|
2514
|
-
"tenant-convex-deployment",
|
|
2515
|
-
"tenant-vector-store"
|
|
2516
|
-
],
|
|
2517
|
-
description: "Tenant-owned Pinecone namespace for product vector search isolation."
|
|
2518
|
-
},
|
|
2519
|
-
{
|
|
2520
|
-
idSuffix: "storage.aws-access-key-id",
|
|
2521
|
-
canonicalName: "AWS_ACCESS_KEY_ID",
|
|
2522
|
-
required: false,
|
|
2523
|
-
secret: true,
|
|
2524
|
-
public: false,
|
|
2525
|
-
consumers: ["tenant-vercel-app", "tenant-convex-deployment"],
|
|
2526
|
-
description: "Tenant-owned AWS access key id for document/file ingestion."
|
|
2527
|
-
},
|
|
2528
|
-
{
|
|
2529
|
-
idSuffix: "storage.aws-secret-access-key",
|
|
2530
|
-
canonicalName: "AWS_SECRET_ACCESS_KEY",
|
|
2531
|
-
required: false,
|
|
2532
|
-
secret: true,
|
|
2533
|
-
public: false,
|
|
2534
|
-
consumers: ["tenant-vercel-app", "tenant-convex-deployment"],
|
|
2535
|
-
description: "Tenant-owned AWS secret access key for document/file ingestion."
|
|
2536
|
-
},
|
|
2537
|
-
{
|
|
2538
|
-
idSuffix: "storage.aws-region",
|
|
2539
|
-
canonicalName: "AWS_REGION",
|
|
2540
|
-
required: false,
|
|
2541
|
-
secret: false,
|
|
2542
|
-
public: false,
|
|
2543
|
-
consumers: ["tenant-vercel-app", "tenant-convex-deployment"],
|
|
2544
|
-
description: "Tenant-owned AWS region for document/file ingestion."
|
|
2545
|
-
},
|
|
2546
|
-
{
|
|
2547
|
-
idSuffix: "observability.sentry-dsn",
|
|
2548
|
-
canonicalName: "NEXT_PUBLIC_SENTRY_DSN",
|
|
2549
|
-
aliases: ["NEXT_PUBLIC_SENTRY_DSN_NEXTJS", "SENTRY_DSN"],
|
|
2550
|
-
required: false,
|
|
2551
|
-
secret: false,
|
|
2552
|
-
public: true,
|
|
2553
|
-
consumers: ["tenant-vercel-app", "tenant-observability"],
|
|
2554
|
-
description: "Tenant-owned Sentry DSN for app telemetry."
|
|
2555
|
-
},
|
|
2556
|
-
{
|
|
2557
|
-
idSuffix: "observability.sentry-auth-token",
|
|
2558
|
-
canonicalName: "SENTRY_AUTH_TOKEN",
|
|
2559
|
-
required: false,
|
|
2560
|
-
secret: true,
|
|
2561
|
-
public: false,
|
|
2562
|
-
consumers: ["tenant-deploy-tooling", "tenant-observability"],
|
|
2563
|
-
description: "Tenant-owned Sentry release token for app deployments."
|
|
2564
|
-
},
|
|
2565
|
-
{
|
|
2566
|
-
idSuffix: "observability.sentry-org",
|
|
2567
|
-
canonicalName: "SENTRY_ORG",
|
|
2568
|
-
aliases: ["SENTRY_ORG_SLUG"],
|
|
2569
|
-
required: false,
|
|
2570
|
-
secret: false,
|
|
2571
|
-
public: false,
|
|
2572
|
-
consumers: ["tenant-deploy-tooling", "tenant-observability"],
|
|
2573
|
-
description: "Tenant-owned Sentry org slug for release uploads."
|
|
2574
|
-
},
|
|
2575
|
-
{
|
|
2576
|
-
idSuffix: "observability.sentry-project",
|
|
2577
|
-
canonicalName: "SENTRY_PROJECT",
|
|
2578
|
-
aliases: ["SENTRY_PROJECT_NEXTJS"],
|
|
2579
|
-
required: false,
|
|
2580
|
-
secret: false,
|
|
2581
|
-
public: false,
|
|
2582
|
-
consumers: ["tenant-deploy-tooling", "tenant-observability"],
|
|
2583
|
-
description: "Tenant-owned Sentry project slug for release uploads."
|
|
2584
|
-
},
|
|
2585
|
-
{
|
|
2586
|
-
idSuffix: "observability.sentry-environment",
|
|
2587
|
-
canonicalName: "NEXT_PUBLIC_SENTRY_ENVIRONMENT",
|
|
2588
|
-
aliases: ["SENTRY_ENVIRONMENT"],
|
|
2589
|
-
required: false,
|
|
2590
|
-
secret: false,
|
|
2591
|
-
public: true,
|
|
2592
|
-
consumers: ["tenant-vercel-app", "tenant-observability"],
|
|
2593
|
-
description: "Tenant-owned Sentry environment label."
|
|
2594
|
-
},
|
|
2595
|
-
{
|
|
2596
|
-
idSuffix: "observability.sentry-release",
|
|
2597
|
-
canonicalName: "NEXT_PUBLIC_SENTRY_RELEASE",
|
|
2598
|
-
aliases: ["SENTRY_RELEASE"],
|
|
2599
|
-
required: false,
|
|
2600
|
-
secret: false,
|
|
2601
|
-
public: true,
|
|
2602
|
-
consumers: ["tenant-vercel-app", "tenant-observability"],
|
|
2603
|
-
description: "Tenant-owned Sentry release label."
|
|
2604
|
-
},
|
|
2605
|
-
{
|
|
2606
|
-
idSuffix: "observability.sentry-client-options",
|
|
2607
|
-
canonicalName: "NEXT_PUBLIC_SENTRY_TRACES_SAMPLE_RATE",
|
|
2608
|
-
aliases: [
|
|
2609
|
-
"NEXT_PUBLIC_SENTRY_CAPTURE_CONSOLE_LEVELS",
|
|
2610
|
-
"NEXT_PUBLIC_SENTRY_CAPTURE_CONSOLE_LEVELS_NEXTJS",
|
|
2611
|
-
"NEXT_PUBLIC_SENTRY_CONSOLE_BREADCRUMB_LEVELS",
|
|
2612
|
-
"NEXT_PUBLIC_SENTRY_CONSOLE_BREADCRUMB_LEVELS_NEXTJS",
|
|
2613
|
-
"NEXT_PUBLIC_SENTRY_CONSOLE_LOG_LEVELS",
|
|
2614
|
-
"NEXT_PUBLIC_SENTRY_CONSOLE_LOG_LEVELS_NEXTJS",
|
|
2615
|
-
"NEXT_PUBLIC_SENTRY_ENABLE_LOGS",
|
|
2616
|
-
"NEXT_PUBLIC_SENTRY_REPLAYS_ON_ERROR_SAMPLE_RATE",
|
|
2617
|
-
"NEXT_PUBLIC_SENTRY_REPLAYS_SESSION_SAMPLE_RATE",
|
|
2618
|
-
"NEXT_PUBLIC_SENTRY_SEND_DEFAULT_PII",
|
|
2619
|
-
"NEXT_PUBLIC_SENTRY_TRACES_SAMPLE_RATE_NEXTJS"
|
|
2620
|
-
],
|
|
2621
|
-
required: false,
|
|
2622
|
-
secret: false,
|
|
2623
|
-
public: true,
|
|
2624
|
-
consumers: ["tenant-vercel-app", "tenant-observability"],
|
|
2625
|
-
description: "Tenant-owned public Sentry tuning values for Next.js client instrumentation."
|
|
2626
|
-
},
|
|
2627
|
-
{
|
|
2628
|
-
idSuffix: "observability.sentry-webhook-secret",
|
|
2629
|
-
canonicalName: "SENTRY_WEBHOOK_SECRET",
|
|
2630
|
-
required: false,
|
|
2631
|
-
secret: true,
|
|
2632
|
-
public: false,
|
|
2633
|
-
consumers: ["tenant-convex-deployment", "tenant-observability"],
|
|
2634
|
-
description: "Tenant-owned Sentry webhook verification secret."
|
|
2635
|
-
},
|
|
2636
|
-
{
|
|
2637
|
-
idSuffix: "lucern.gateway-api-key",
|
|
2638
|
-
canonicalName: "LUCERN_API_KEY",
|
|
2639
|
-
aliases: ["STACK_API_KEY"],
|
|
2640
|
-
required: false,
|
|
2641
|
-
secret: true,
|
|
2642
|
-
public: false,
|
|
2643
|
-
consumers: ["tenant-vercel-app", "tenant-agent-runtime"],
|
|
2644
|
-
description: "Tenant-scoped Lucern/MC gateway API key for product front-door calls."
|
|
2645
|
-
},
|
|
2646
|
-
{
|
|
2647
|
-
idSuffix: "lucern.gateway-base-url",
|
|
2648
|
-
canonicalName: "LUCERN_BASE_URL",
|
|
2649
|
-
aliases: ["LUCERN_API_BASE_URL", "LUCERN_GATEWAY_BASE_URL"],
|
|
2650
|
-
required: false,
|
|
2651
|
-
secret: false,
|
|
2652
|
-
public: false,
|
|
2653
|
-
consumers: ["tenant-vercel-app", "tenant-agent-runtime"],
|
|
2654
|
-
description: "Lucern/MC gateway base URL used by tenant product apps."
|
|
2655
|
-
},
|
|
2656
|
-
{
|
|
2657
|
-
idSuffix: "lucern.proxy-token-secret",
|
|
2658
|
-
canonicalName: "LUCERN_PROXY_TOKEN_SECRET",
|
|
2659
|
-
required: false,
|
|
2660
|
-
secret: true,
|
|
2661
|
-
public: false,
|
|
2662
|
-
consumers: ["tenant-vercel-app", "tenant-agent-runtime"],
|
|
2663
|
-
description: "Tenant-owned secret for signing internal proxy/session tokens in product apps."
|
|
2664
|
-
},
|
|
2665
|
-
{
|
|
2666
|
-
idSuffix: "tenant.integrations.linear-api-key",
|
|
2667
|
-
canonicalName: "LINEAR_API_KEY",
|
|
2668
|
-
required: false,
|
|
2669
|
-
secret: true,
|
|
2670
|
-
public: false,
|
|
2671
|
-
consumers: ["tenant-vercel-app", "tenant-agent-runtime"],
|
|
2672
|
-
description: "Tenant-owned Linear API key for support/slash-command flows."
|
|
2673
|
-
},
|
|
2674
|
-
{
|
|
2675
|
-
idSuffix: "tenant.vercel.bypass-token",
|
|
2676
|
-
canonicalName: "VERCEL_AUTOMATION_BYPASS_SECRET",
|
|
2677
|
-
aliases: ["NEXT_PUBLIC_VERCEL_BYPASS_TOKEN"],
|
|
2678
|
-
required: false,
|
|
2679
|
-
secret: true,
|
|
2680
|
-
public: false,
|
|
2681
|
-
consumers: ["tenant-vercel-app", "tenant-deploy-tooling"],
|
|
2682
|
-
description: "Tenant-owned Vercel automation bypass token. Public alias is legacy and should be removed from app code."
|
|
2683
|
-
}
|
|
2684
|
-
];
|
|
2685
|
-
var TENANT_PRODUCT_RUNTIME_SECRET_DEFINITIONS = INFISICAL_TENANT_SOFTWARE_SYSTEMS.filter(
|
|
2686
|
-
(system) => TENANT_PRODUCT_SOFTWARE_SYSTEM_IDS.includes(system.id)
|
|
2687
|
-
).flatMap(
|
|
2688
|
-
(system) => TENANT_PRODUCT_RUNTIME_SECRET_DEFINITION_TEMPLATES.map(
|
|
2689
|
-
(template) => ({
|
|
2690
|
-
id: `tenant.${system.id}.${template.idSuffix}`,
|
|
2691
|
-
canonicalName: template.canonicalName,
|
|
2692
|
-
aliases: "aliases" in template ? template.aliases : void 0,
|
|
2693
|
-
owner: "tenant",
|
|
2694
|
-
scope: "tenant",
|
|
2695
|
-
sourcePath: system.sharedSourcePath,
|
|
2696
|
-
environmentPolicy: "environment_specific",
|
|
2697
|
-
required: template.required,
|
|
2698
|
-
secret: template.secret,
|
|
2699
|
-
public: template.public,
|
|
2700
|
-
consumers: template.consumers,
|
|
2701
|
-
destinations: [
|
|
2702
|
-
{
|
|
2703
|
-
kind: "vercel",
|
|
2704
|
-
target: system.vercelProjectName,
|
|
2705
|
-
environmentPolicy: "preprod_staging_prod_prod"
|
|
2706
|
-
},
|
|
2707
|
-
{
|
|
2708
|
-
kind: "convex",
|
|
2709
|
-
target: `${system.convex.preprodDeployment}|${system.convex.prodDeployment}`,
|
|
2710
|
-
environmentPolicy: "preprod_staging_prod_prod"
|
|
2711
|
-
},
|
|
2712
|
-
{
|
|
2713
|
-
kind: "github_actions",
|
|
2714
|
-
target: `${system.repository.owner}/${system.repository.name}`,
|
|
2715
|
-
environmentPolicy: "preprod_staging_prod_prod"
|
|
2716
|
-
}
|
|
2717
|
-
],
|
|
2718
|
-
description: `${system.tenantKey}/${system.workspaceKey}: ${template.description}`
|
|
2719
|
-
})
|
|
2720
|
-
)
|
|
2721
|
-
);
|
|
2722
|
-
function tenantVercelConvexUrlWriteNames(system) {
|
|
2723
|
-
const names = [system.convex.urlEnv, "NEXT_PUBLIC_CONVEX_URL"];
|
|
2724
|
-
if (system.id === "stack-eng") {
|
|
2725
|
-
return [...names, "STACKOS_ENGINEERING_GRAPH_CONVEX_URL"];
|
|
2726
|
-
}
|
|
2727
|
-
return names;
|
|
2728
|
-
}
|
|
2729
|
-
function tenantRepositoryConvexUrlWriteNames(system) {
|
|
2730
|
-
if (system.id === "stack-eng") {
|
|
2731
|
-
return [system.convex.urlEnv, "STACKOS_ENGINEERING_GRAPH_CONVEX_URL"];
|
|
2732
|
-
}
|
|
2733
|
-
return [system.convex.urlEnv];
|
|
2734
|
-
}
|
|
2735
|
-
function tenantRepositoryConvexDeployKeyWriteNames(system) {
|
|
2736
|
-
if (system.id === "stack-eng") {
|
|
2737
|
-
return [system.convex.deployKeyEnv, "STACKOS_ENGINEERING_GRAPH_DEPLOY_KEY"];
|
|
2738
|
-
}
|
|
2739
|
-
return [system.convex.deployKeyEnv];
|
|
2740
|
-
}
|
|
2741
|
-
function tenantConvexUrlAliases(system) {
|
|
2742
|
-
if (system.id === "stack-frontend") {
|
|
2743
|
-
return [
|
|
2744
|
-
"CONVEX_PROD_URL",
|
|
2745
|
-
"CONVEX_STACK_V2_PROD_URL",
|
|
2746
|
-
"CONVEX_STACK_V2_STAGING_URL",
|
|
2747
|
-
"STACK_CONVEX_URL"
|
|
2748
|
-
];
|
|
2749
|
-
}
|
|
2750
|
-
if (system.id === "stackos") {
|
|
2751
|
-
return [
|
|
2752
|
-
"CONVEX_CLOUD_URL",
|
|
2753
|
-
"CONVEX_STACK_URL",
|
|
2754
|
-
"CONVEX_URL",
|
|
2755
|
-
"CONVEX_URL_DEVELOPMENT",
|
|
2756
|
-
"CONVEX_URL_PRODUCTION",
|
|
2757
|
-
"STACK_CONVEX_URL"
|
|
2758
|
-
];
|
|
2759
|
-
}
|
|
2760
|
-
if (system.id === "stack-eng") {
|
|
2761
|
-
return ["STACKOS_ENGINEERING_GRAPH_CONVEX_URL"];
|
|
2762
|
-
}
|
|
2763
|
-
if (system.id === "lucern-graph") {
|
|
2764
|
-
return [
|
|
2765
|
-
"CONVEX_GRAPH_URL",
|
|
2766
|
-
"LUCERN_PROD_URL",
|
|
2767
|
-
"NEXT_PUBLIC_LUCERN_GRAPH_URL"
|
|
2768
|
-
];
|
|
2769
|
-
}
|
|
2770
|
-
return void 0;
|
|
2771
|
-
}
|
|
2772
|
-
function tenantConvexDeployKeyAliases(system) {
|
|
2773
|
-
if (system.id === "stack-frontend") {
|
|
2774
|
-
return [
|
|
2775
|
-
"CONVEX_STACK_V2_PROD_DEPLOY_KEY",
|
|
2776
|
-
"CONVEX_STACK_V2_STAGING_DEPLOY_KEY",
|
|
2777
|
-
"STACK_DEPLOY_KEY"
|
|
2778
|
-
];
|
|
2779
|
-
}
|
|
2780
|
-
if (system.id === "stackos") {
|
|
2781
|
-
return [
|
|
2782
|
-
"CONVEX_DEPLOY_KEY",
|
|
2783
|
-
"CONVEX_DEV_DEPLOY_KEY",
|
|
2784
|
-
"CONVEX_PROD_DEPLOY_KEY",
|
|
2785
|
-
"CONVEX_STACK_DEPLOY_KEY",
|
|
2786
|
-
"STACK_DEPLOY_KEY"
|
|
2787
|
-
];
|
|
2788
|
-
}
|
|
2789
|
-
if (system.id === "stack-eng") {
|
|
2790
|
-
return ["CONVEX_DEPLOY_KEY", "STACKOS_ENGINEERING_GRAPH_DEPLOY_KEY"];
|
|
2791
|
-
}
|
|
2792
|
-
if (system.id === "lucern-graph") {
|
|
2793
|
-
return [
|
|
2794
|
-
"CONVEX_DEPLOY_KEY",
|
|
2795
|
-
"CONVEX_GRAPH_DEPLOY_KEY",
|
|
2796
|
-
"LUCERN_CONVEX_DEPLOY_KEY",
|
|
2797
|
-
"LUCERN_DEV_DEPLOY_KEY",
|
|
2798
|
-
"LUCERN_PROD_DEPLOY_KEY"
|
|
2799
|
-
];
|
|
2800
|
-
}
|
|
2801
|
-
return void 0;
|
|
2802
|
-
}
|
|
2803
|
-
var TENANT_GRAPH_PUBLIC_CONFIG_SECRET_DEFINITIONS = INFISICAL_TENANT_SOFTWARE_SYSTEMS.flatMap(
|
|
2804
|
-
(system) => {
|
|
2805
|
-
if (system.id === "lucern-graph") {
|
|
2806
|
-
return [
|
|
2807
|
-
{
|
|
2808
|
-
id: "tenant.lucern-graph.public.tenant-id",
|
|
2809
|
-
canonicalName: "NEXT_PUBLIC_LUCERN_GRAPH_TENANT_ID",
|
|
2810
|
-
aliases: ["NEXT_PUBLIC_LUCERN_TENANT_ID"],
|
|
2811
|
-
owner: "tenant",
|
|
2812
|
-
scope: "workspace",
|
|
2813
|
-
sourcePath: system.sharedSourcePath,
|
|
2814
|
-
environmentPolicy: "environment_specific",
|
|
2815
|
-
required: false,
|
|
2816
|
-
secret: false,
|
|
2817
|
-
public: true,
|
|
2818
|
-
consumers: ["tenant-vercel-app"],
|
|
2819
|
-
destinations: [
|
|
2820
|
-
{
|
|
2821
|
-
kind: "vercel",
|
|
2822
|
-
target: system.vercelProjectName,
|
|
2823
|
-
environmentPolicy: "preprod_staging_prod_prod"
|
|
2824
|
-
}
|
|
2825
|
-
],
|
|
2826
|
-
description: "Lucern graph public tenant id used by the standalone graph explorer."
|
|
2827
|
-
},
|
|
2828
|
-
{
|
|
2829
|
-
id: "tenant.lucern-graph.public.tenant-label",
|
|
2830
|
-
canonicalName: "NEXT_PUBLIC_LUCERN_GRAPH_TENANT_LABEL",
|
|
2831
|
-
owner: "tenant",
|
|
2832
|
-
scope: "workspace",
|
|
2833
|
-
sourcePath: system.sharedSourcePath,
|
|
2834
|
-
environmentPolicy: "environment_specific",
|
|
2835
|
-
required: false,
|
|
2836
|
-
secret: false,
|
|
2837
|
-
public: true,
|
|
2838
|
-
consumers: ["tenant-vercel-app"],
|
|
2839
|
-
destinations: [
|
|
2840
|
-
{
|
|
2841
|
-
kind: "vercel",
|
|
2842
|
-
target: system.vercelProjectName,
|
|
2843
|
-
environmentPolicy: "preprod_staging_prod_prod"
|
|
2844
|
-
}
|
|
2845
|
-
],
|
|
2846
|
-
description: "Lucern graph public tenant label used by the standalone graph explorer."
|
|
2847
|
-
}
|
|
2848
|
-
];
|
|
2849
|
-
}
|
|
2850
|
-
if (system.id === "stack-eng") {
|
|
2851
|
-
return [
|
|
2852
|
-
{
|
|
2853
|
-
id: "tenant.stack-eng.public.tenant-id",
|
|
2854
|
-
canonicalName: "NEXT_PUBLIC_STACKOS_ENGINEERING_GRAPH_TENANT_ID",
|
|
2855
|
-
owner: "tenant",
|
|
2856
|
-
scope: "workspace",
|
|
2857
|
-
sourcePath: system.sharedSourcePath,
|
|
2858
|
-
environmentPolicy: "environment_specific",
|
|
2859
|
-
required: false,
|
|
2860
|
-
secret: false,
|
|
2861
|
-
public: true,
|
|
2862
|
-
consumers: ["tenant-vercel-app"],
|
|
2863
|
-
destinations: [
|
|
2864
|
-
{
|
|
2865
|
-
kind: "vercel",
|
|
2866
|
-
target: system.vercelProjectName,
|
|
2867
|
-
environmentPolicy: "preprod_staging_prod_prod"
|
|
2868
|
-
}
|
|
2869
|
-
],
|
|
2870
|
-
description: "Stack engineering graph public tenant id used by the graph explorer."
|
|
2871
|
-
},
|
|
2872
|
-
{
|
|
2873
|
-
id: "tenant.stack-eng.public.tenant-label",
|
|
2874
|
-
canonicalName: "NEXT_PUBLIC_STACKOS_ENGINEERING_GRAPH_TENANT_LABEL",
|
|
2875
|
-
owner: "tenant",
|
|
2876
|
-
scope: "workspace",
|
|
2877
|
-
sourcePath: system.sharedSourcePath,
|
|
2878
|
-
environmentPolicy: "environment_specific",
|
|
2879
|
-
required: false,
|
|
2880
|
-
secret: false,
|
|
2881
|
-
public: true,
|
|
2882
|
-
consumers: ["tenant-vercel-app"],
|
|
2883
|
-
destinations: [
|
|
2884
|
-
{
|
|
2885
|
-
kind: "vercel",
|
|
2886
|
-
target: system.vercelProjectName,
|
|
2887
|
-
environmentPolicy: "preprod_staging_prod_prod"
|
|
2888
|
-
}
|
|
2889
|
-
],
|
|
2890
|
-
description: "Stack engineering graph public tenant label used by the graph explorer."
|
|
2891
|
-
},
|
|
2892
|
-
{
|
|
2893
|
-
id: "tenant.stack-eng.public.environment",
|
|
2894
|
-
canonicalName: "NEXT_PUBLIC_STACKOS_ENGINEERING_GRAPH_ENV",
|
|
2895
|
-
owner: "tenant",
|
|
2896
|
-
scope: "workspace",
|
|
2897
|
-
sourcePath: system.sharedSourcePath,
|
|
2898
|
-
environmentPolicy: "environment_specific",
|
|
2899
|
-
required: false,
|
|
2900
|
-
secret: false,
|
|
2901
|
-
public: true,
|
|
2902
|
-
consumers: ["tenant-vercel-app"],
|
|
2903
|
-
destinations: [
|
|
2904
|
-
{
|
|
2905
|
-
kind: "vercel",
|
|
2906
|
-
target: system.vercelProjectName,
|
|
2907
|
-
environmentPolicy: "preprod_staging_prod_prod"
|
|
2908
|
-
}
|
|
2909
|
-
],
|
|
2910
|
-
description: "Stack engineering graph public environment label used by the graph explorer."
|
|
2911
|
-
}
|
|
2912
|
-
];
|
|
2913
|
-
}
|
|
2914
|
-
return [];
|
|
2915
|
-
}
|
|
2916
|
-
);
|
|
2917
|
-
var STACK_ENG_GRAPH_STORE_SECRET_DEFINITIONS = [
|
|
2918
|
-
{
|
|
2919
|
-
id: "tenant.stack-eng.neo4j.uri",
|
|
2920
|
-
canonicalName: "NEO4J_URI",
|
|
2921
|
-
aliases: ["NEO4J_ENG_URI"],
|
|
2922
|
-
owner: "tenant",
|
|
2923
|
-
scope: "workspace",
|
|
2924
|
-
sourcePath: "/tenants/stack/engineering",
|
|
2925
|
-
environmentPolicy: "environment_specific",
|
|
2926
|
-
required: false,
|
|
2927
|
-
secret: false,
|
|
2928
|
-
public: false,
|
|
2929
|
-
consumers: ["tenant-graph-sync", "tenant-convex-deployment"],
|
|
2930
|
-
destinations: [
|
|
2931
|
-
{
|
|
2932
|
-
kind: "convex",
|
|
2933
|
-
target: "small-oyster-270|bold-cuttlefish-804",
|
|
2934
|
-
environmentPolicy: "preprod_staging_prod_prod"
|
|
2935
|
-
},
|
|
2936
|
-
{
|
|
2937
|
-
kind: "vercel",
|
|
2938
|
-
target: "stackos-engineering-graph",
|
|
2939
|
-
environmentPolicy: "preprod_staging_prod_prod"
|
|
2940
|
-
},
|
|
2941
|
-
{
|
|
2942
|
-
kind: "github_actions",
|
|
2943
|
-
target: "stack-vc/stackos-engineering-graph",
|
|
2944
|
-
environmentPolicy: "preprod_staging_prod_prod"
|
|
2945
|
-
}
|
|
2946
|
-
],
|
|
2947
|
-
description: "Stack engineering graph Neo4j runtime URI. NEO4J_ENG_URI is the source alias used to avoid StackOS front-office collisions."
|
|
2948
|
-
},
|
|
2949
|
-
{
|
|
2950
|
-
id: "tenant.stack-eng.neo4j.user",
|
|
2951
|
-
canonicalName: "NEO4J_USER",
|
|
2952
|
-
aliases: ["NEO4J_ENG_USER"],
|
|
2953
|
-
owner: "tenant",
|
|
2954
|
-
scope: "workspace",
|
|
2955
|
-
sourcePath: "/tenants/stack/engineering",
|
|
2956
|
-
environmentPolicy: "environment_specific",
|
|
2957
|
-
required: false,
|
|
2958
|
-
secret: false,
|
|
2959
|
-
public: false,
|
|
2960
|
-
consumers: ["tenant-graph-sync", "tenant-convex-deployment"],
|
|
2961
|
-
destinations: [
|
|
2962
|
-
{
|
|
2963
|
-
kind: "convex",
|
|
2964
|
-
target: "small-oyster-270|bold-cuttlefish-804",
|
|
2965
|
-
environmentPolicy: "preprod_staging_prod_prod"
|
|
2966
|
-
},
|
|
2967
|
-
{
|
|
2968
|
-
kind: "vercel",
|
|
2969
|
-
target: "stackos-engineering-graph",
|
|
2970
|
-
environmentPolicy: "preprod_staging_prod_prod"
|
|
2971
|
-
},
|
|
2972
|
-
{
|
|
2973
|
-
kind: "github_actions",
|
|
2974
|
-
target: "stack-vc/stackos-engineering-graph",
|
|
2975
|
-
environmentPolicy: "preprod_staging_prod_prod"
|
|
2976
|
-
}
|
|
2977
|
-
],
|
|
2978
|
-
description: "Stack engineering graph Neo4j runtime user."
|
|
2979
|
-
},
|
|
2980
|
-
{
|
|
2981
|
-
id: "tenant.stack-eng.neo4j.password",
|
|
2982
|
-
canonicalName: "NEO4J_PASSWORD",
|
|
2983
|
-
aliases: ["NEO4J_ENG_PASSWORD"],
|
|
2984
|
-
owner: "tenant",
|
|
2985
|
-
scope: "workspace",
|
|
2986
|
-
sourcePath: "/tenants/stack/engineering",
|
|
2987
|
-
environmentPolicy: "environment_specific",
|
|
2988
|
-
required: false,
|
|
2989
|
-
secret: true,
|
|
2990
|
-
public: false,
|
|
2991
|
-
consumers: ["tenant-graph-sync", "tenant-convex-deployment"],
|
|
2992
|
-
destinations: [
|
|
2993
|
-
{
|
|
2994
|
-
kind: "convex",
|
|
2995
|
-
target: "small-oyster-270|bold-cuttlefish-804",
|
|
2996
|
-
environmentPolicy: "preprod_staging_prod_prod"
|
|
2997
|
-
},
|
|
2998
|
-
{
|
|
2999
|
-
kind: "vercel",
|
|
3000
|
-
target: "stackos-engineering-graph",
|
|
3001
|
-
environmentPolicy: "preprod_staging_prod_prod"
|
|
3002
|
-
},
|
|
3003
|
-
{
|
|
3004
|
-
kind: "github_actions",
|
|
3005
|
-
target: "stack-vc/stackos-engineering-graph",
|
|
3006
|
-
environmentPolicy: "preprod_staging_prod_prod"
|
|
3007
|
-
}
|
|
3008
|
-
],
|
|
3009
|
-
description: "Stack engineering graph Neo4j runtime password."
|
|
3010
|
-
},
|
|
3011
|
-
{
|
|
3012
|
-
id: "tenant.stack-eng.neo4j.sync-secret",
|
|
3013
|
-
canonicalName: "NEO4J_SYNC_SECRET",
|
|
3014
|
-
owner: "tenant",
|
|
3015
|
-
scope: "workspace",
|
|
3016
|
-
sourcePath: "/tenants/stack/engineering",
|
|
3017
|
-
environmentPolicy: "environment_specific",
|
|
3018
|
-
required: false,
|
|
3019
|
-
secret: true,
|
|
3020
|
-
public: false,
|
|
3021
|
-
consumers: ["tenant-graph-sync", "tenant-convex-deployment"],
|
|
3022
|
-
destinations: [
|
|
3023
|
-
{
|
|
3024
|
-
kind: "convex",
|
|
3025
|
-
target: "small-oyster-270|bold-cuttlefish-804",
|
|
3026
|
-
environmentPolicy: "preprod_staging_prod_prod"
|
|
3027
|
-
},
|
|
3028
|
-
{
|
|
3029
|
-
kind: "vercel",
|
|
3030
|
-
target: "stackos-engineering-graph",
|
|
3031
|
-
environmentPolicy: "preprod_staging_prod_prod"
|
|
3032
|
-
},
|
|
3033
|
-
{
|
|
3034
|
-
kind: "github_actions",
|
|
3035
|
-
target: "stack-vc/stackos-engineering-graph",
|
|
3036
|
-
environmentPolicy: "preprod_staging_prod_prod"
|
|
3037
|
-
}
|
|
3038
|
-
],
|
|
3039
|
-
description: "Stack engineering graph sync secret for Convex-to-HTTP graph query/sync calls."
|
|
3040
|
-
}
|
|
3041
|
-
];
|
|
3042
|
-
var TENANT_CONVEX_SECRET_DEFINITIONS = INFISICAL_TENANT_SOFTWARE_SYSTEMS.flatMap((system) => [
|
|
3043
|
-
{
|
|
3044
|
-
id: `tenant.${system.id}.convex.url`,
|
|
3045
|
-
canonicalName: system.convex.urlEnv,
|
|
3046
|
-
aliases: tenantConvexUrlAliases(system),
|
|
3047
|
-
owner: "tenant",
|
|
3048
|
-
scope: "software_system",
|
|
3049
|
-
sourcePath: system.sharedSourcePath,
|
|
3050
|
-
environmentPolicy: "preprod_staging_prod_prod",
|
|
3051
|
-
required: true,
|
|
3052
|
-
secret: false,
|
|
3053
|
-
public: false,
|
|
3054
|
-
consumers: [
|
|
3055
|
-
"tenant-vercel-app",
|
|
3056
|
-
"tenant-agent-runtime",
|
|
3057
|
-
"mc-operator-tooling"
|
|
3058
|
-
],
|
|
3059
|
-
destinations: [
|
|
3060
|
-
{
|
|
3061
|
-
kind: "vercel",
|
|
3062
|
-
target: system.vercelProjectName,
|
|
3063
|
-
environmentPolicy: "preprod_staging_prod_prod",
|
|
3064
|
-
writeNames: tenantVercelConvexUrlWriteNames(system)
|
|
3065
|
-
},
|
|
3066
|
-
{
|
|
3067
|
-
kind: "github_actions",
|
|
3068
|
-
target: `${system.repository.owner}/${system.repository.name}`,
|
|
3069
|
-
environmentPolicy: "preprod_staging_prod_prod",
|
|
3070
|
-
writeNames: tenantRepositoryConvexUrlWriteNames(system),
|
|
3071
|
-
notes: "Only if that repository deploy/test workflow owns this software system."
|
|
3072
|
-
}
|
|
3073
|
-
],
|
|
3074
|
-
description: `${system.tenantKey}/${system.workspaceKey} Convex URL. Pre-prod resolves to ${system.convex.preprodDeployment}; prod resolves to ${system.convex.prodDeployment}.`
|
|
3075
|
-
},
|
|
3076
|
-
{
|
|
3077
|
-
id: `tenant.${system.id}.convex.deploy-key`,
|
|
3078
|
-
canonicalName: system.convex.deployKeyEnv,
|
|
3079
|
-
aliases: tenantConvexDeployKeyAliases(system),
|
|
3080
|
-
owner: "tenant",
|
|
3081
|
-
scope: "software_system",
|
|
3082
|
-
sourcePath: system.sharedSourcePath,
|
|
3083
|
-
environmentPolicy: "preprod_staging_prod_prod",
|
|
3084
|
-
required: true,
|
|
3085
|
-
secret: true,
|
|
3086
|
-
public: false,
|
|
3087
|
-
consumers: [
|
|
3088
|
-
"tenant-vercel-app",
|
|
3089
|
-
"tenant-agent-runtime",
|
|
3090
|
-
"mc-operator-tooling"
|
|
3091
|
-
],
|
|
3092
|
-
destinations: [
|
|
3093
|
-
{
|
|
3094
|
-
kind: "vercel",
|
|
3095
|
-
target: system.vercelProjectName,
|
|
3096
|
-
environmentPolicy: "preprod_staging_prod_prod"
|
|
3097
|
-
},
|
|
3098
|
-
{
|
|
3099
|
-
kind: "github_actions",
|
|
3100
|
-
target: `${system.repository.owner}/${system.repository.name}`,
|
|
3101
|
-
environmentPolicy: "preprod_staging_prod_prod",
|
|
3102
|
-
writeNames: tenantRepositoryConvexDeployKeyWriteNames(system),
|
|
3103
|
-
notes: "Only if that repository deploy/test workflow owns this software system."
|
|
3104
|
-
}
|
|
3105
|
-
],
|
|
3106
|
-
description: `${system.tenantKey}/${system.workspaceKey} Convex deploy/admin key. Never route to sibling workspaces.`
|
|
3107
|
-
}
|
|
3108
|
-
]);
|
|
3109
|
-
var INFISICAL_SECRET_DEFINITIONS = [
|
|
3110
|
-
...PLATFORM_SECRET_DEFINITIONS,
|
|
3111
|
-
...PLATFORM_AI_SECRET_DEFINITIONS,
|
|
3112
|
-
...PLATFORM_LANGFUSE_SECRET_DEFINITIONS,
|
|
3113
|
-
...PLATFORM_GRAPH_STORE_SECRET_DEFINITIONS,
|
|
3114
|
-
...PLATFORM_VECTOR_STORE_SECRET_DEFINITIONS,
|
|
3115
|
-
...PLATFORM_SENTRY_SECRET_DEFINITIONS,
|
|
3116
|
-
...PLATFORM_DEPLOY_AUTOMATION_SECRET_DEFINITIONS,
|
|
3117
|
-
...PLATFORM_LOCAL_OPERATOR_CONFIG_SECRET_DEFINITIONS,
|
|
3118
|
-
...TENANT_SHARED_SECRET_DEFINITIONS,
|
|
3119
|
-
...TENANT_INSTALL_SECRET_DEFINITIONS,
|
|
3120
|
-
...TENANT_PRODUCT_RUNTIME_SECRET_DEFINITIONS,
|
|
3121
|
-
...TENANT_GRAPH_PUBLIC_CONFIG_SECRET_DEFINITIONS,
|
|
3122
|
-
...STACK_ENG_GRAPH_STORE_SECRET_DEFINITIONS,
|
|
3123
|
-
...TENANT_CONVEX_SECRET_DEFINITIONS
|
|
3124
|
-
];
|
|
3125
|
-
function findInfisicalSecretDefinition(secretId) {
|
|
3126
|
-
return INFISICAL_SECRET_DEFINITIONS.find((secret) => secret.id === secretId);
|
|
3127
|
-
}
|
|
3128
|
-
function infisicalSecretDefinitionsForConsumer(consumer) {
|
|
3129
|
-
return INFISICAL_SECRET_DEFINITIONS.filter(
|
|
3130
|
-
(secret) => secret.consumers.includes(consumer)
|
|
3131
|
-
);
|
|
3132
|
-
}
|
|
3133
|
-
function infisicalSecretDefinitionsForDestination(kind, target) {
|
|
3134
|
-
return INFISICAL_SECRET_DEFINITIONS.filter(
|
|
3135
|
-
(secret) => secret.destinations.some(
|
|
3136
|
-
(destination) => destination.kind === kind && destination.target === target
|
|
3137
|
-
)
|
|
3138
|
-
);
|
|
3139
|
-
}
|
|
3140
|
-
function validateInfisicalSecretDefinitions(definitions = INFISICAL_SECRET_DEFINITIONS) {
|
|
3141
|
-
const errors = [];
|
|
3142
|
-
const ids = /* @__PURE__ */ new Set();
|
|
3143
|
-
const platformOnlyNames = /* @__PURE__ */ new Set(["CONVEX_MC_URL", "CONVEX_MC_DEPLOY_KEY"]);
|
|
3144
|
-
for (const definition of definitions) {
|
|
3145
|
-
if (ids.has(definition.id)) {
|
|
3146
|
-
errors.push(`Duplicate secret definition id: ${definition.id}`);
|
|
3147
|
-
}
|
|
3148
|
-
ids.add(definition.id);
|
|
3149
|
-
if (!definition.canonicalName.startsWith("CONVEX_")) {
|
|
3150
|
-
continue;
|
|
3151
|
-
}
|
|
3152
|
-
if (platformOnlyNames.has(definition.canonicalName)) {
|
|
3153
|
-
if (definition.owner !== "lucern_platform") {
|
|
3154
|
-
errors.push(`${definition.canonicalName} must be Lucern platform-owned.`);
|
|
3155
|
-
}
|
|
3156
|
-
for (const destination of definition.destinations) {
|
|
3157
|
-
if (destination.kind === "vercel" && INFISICAL_TENANT_SOFTWARE_SYSTEMS.some(
|
|
3158
|
-
(system) => system.vercelProjectName === destination.target
|
|
3159
|
-
)) {
|
|
3160
|
-
errors.push(
|
|
3161
|
-
`${definition.canonicalName} must not route to tenant Vercel project ${destination.target}.`
|
|
3162
|
-
);
|
|
3163
|
-
}
|
|
3164
|
-
}
|
|
3165
|
-
continue;
|
|
3166
|
-
}
|
|
3167
|
-
const owner = INFISICAL_TENANT_SOFTWARE_SYSTEMS.find(
|
|
3168
|
-
(system) => system.convex.urlEnv === definition.canonicalName || system.convex.deployKeyEnv === definition.canonicalName
|
|
3169
|
-
);
|
|
3170
|
-
if (!owner) {
|
|
3171
|
-
errors.push(
|
|
3172
|
-
`${definition.canonicalName} is a Convex variable without a tenant software owner.`
|
|
3173
|
-
);
|
|
3174
|
-
continue;
|
|
3175
|
-
}
|
|
3176
|
-
for (const destination of definition.destinations) {
|
|
3177
|
-
if (destination.kind === "vercel" && destination.target !== owner.vercelProjectName) {
|
|
3178
|
-
errors.push(
|
|
3179
|
-
`${definition.canonicalName} routes to ${destination.target}; expected ${owner.vercelProjectName}.`
|
|
3180
|
-
);
|
|
3181
|
-
}
|
|
3182
|
-
}
|
|
3183
|
-
}
|
|
3184
|
-
return errors;
|
|
3185
|
-
}
|
|
3186
|
-
|
|
3187
|
-
export { INFISICAL_CONVEX_TIERS, INFISICAL_CONVEX_TIER_BY_VERCEL_ENVIRONMENT, INFISICAL_RUNTIME_BOOTSTRAP_ENV, INFISICAL_RUNTIME_CONTRACT_VERSION, INFISICAL_RUNTIME_CONTROL_ENV, INFISICAL_RUNTIME_DEFAULT_API_URL, INFISICAL_RUNTIME_DEFAULT_PROJECT_ID, INFISICAL_RUNTIME_DELIVERY_MODES, INFISICAL_RUNTIME_ENVIRONMENTS, INFISICAL_RUNTIME_PATHS, INFISICAL_RUNTIME_SURFACES, INFISICAL_RUNTIME_SURFACE_IDS, INFISICAL_SECRET_CONSUMERS, INFISICAL_SECRET_DEFINITIONS, INFISICAL_SECRET_DESTINATION_KINDS, INFISICAL_SECRET_ENVIRONMENT_POLICIES, INFISICAL_SECRET_OWNERS, INFISICAL_SECRET_SCOPES, INFISICAL_TENANT_SOFTWARE_SYSTEMS, INFISICAL_VERCEL_DESTINATION_ENVIRONMENTS, INFISICAL_VERCEL_SYNC_DESTINATIONS, INFISICAL_VERCEL_SYNC_RECONCILIATION, INFISICAL_VERCEL_TARGETS, convexTierForVercelDestinationEnvironment, expectedTenantConvexDeploymentForVercelEnvironment, findInfisicalRuntimePath, findInfisicalRuntimeSurface, findInfisicalSecretDefinition, findInfisicalTenantSoftwareSystem, findInfisicalVercelSyncDestination, infisicalSecretDefinitionsForConsumer, infisicalSecretDefinitionsForDestination, tenantSoftwareSystemConvexEnvNames, tenantSoftwareSystemOwnsConvexEnvName, validateInfisicalSecretDefinitions, vercelCustomEnvironmentIdForTenantSoftwareSystem };
|
|
3188
|
-
//# sourceMappingURL=infisical-runtime.contract.js.map
|
|
3189
|
-
//# sourceMappingURL=infisical-runtime.contract.js.map
|