Refresh HiveGrid Cloud reference snapshot

This commit is contained in:
david committed 2026-08-03 15:31:14 +02:00
1 parent 5e99e14772
commit 7f88026f79
5955 files changed
+1177325 -188362

No files matched your search

@@ -29,6 +29,7 @@ describe("env catalog", () => {
classification: "optional-provider",
targets: ["web", "api", "mcp", "worker"],
source: "code",
requiredInProductionTargets: ["web", "mcp"],
});
expect(getEnvVariableDefinition("EMAIL_QUEUE_NAME")).toMatchObject({
@@ -64,6 +65,25 @@ describe("env catalog", () => {
});
test("catalogs active operational runtime toggles", () => {
for (const key of ["WEB_RUNTIME_SURFACE", "PORTAL_SESSION_SECRET"]) {
expect(getEnvVariableDefinition(key)).toMatchObject({
classification: "production-only",
targets: ["web"],
source: "code-and-example",
});
}
expect(getEnvVariableDefinition("PORTAL_APP_HOST")).toMatchObject({
classification: "production-only",
targets: ["web", "worker"],
source: "code-and-example",
});
expect(getEnvVariableDefinition("CRYPTO_SECRET")).toMatchObject({
classification: "required-per-app",
targets: ["web", "api", "worker"],
source: "code-and-example",
});
expect(getEnvVariableDefinition("CRYPTO_SECRET")?.notes).toContain("worker-mail");
expect(getEnvVariableDefinition("HIVEGRID_API_MAINTENANCE_MODE")).toMatchObject({
classification: "production-only",
targets: ["api"],
@@ -75,6 +95,20 @@ describe("env catalog", () => {
targets: ["web"],
source: "code",
});
expect(getEnvVariableDefinition("SEED_DEMO_PRO_MANAGED")).toMatchObject({
classification: "production-only",
targets: ["web"],
source: "code",
defaultValue: "false",
});
expect(getEnvVariableDefinition("SEED_DEMO_USER_PASSWORD")).toMatchObject({
classification: "production-only",
targets: ["shared"],
kind: "secret",
source: "code",
});
});
test("groups required production keys without optional worker fallback keys", () => {
@@ -84,6 +118,7 @@ describe("env catalog", () => {
expect(getRequiredEnvVariableNames({ target: "worker", nodeEnv: "production" })).not.toEqual(
expect.arrayContaining(["WORKER_ENABLED", "BULLMQ_REDIS_URL", "REDIS_URL", "SITE_KEY_*"])
);
expect(getRequiredEnvVariableNames({ target: "mcp", nodeEnv: "production" })).toContain("REDIS_URL");
expect(groupEnvVariablesByClassification()["optional-provider"].map((definition) => definition.name)).toEqual(
expect.arrayContaining(["WORKER_ENABLED", "BULLMQ_REDIS_URL", "REDIS_URL", "CRISP_CHAT_WEBSITE_ID", "SITE_KEY_*"])
@@ -101,12 +136,7 @@ describe("env catalog", () => {
expect(envVarsDocument, `docs/env-vars.md missing required key ${key}`).toContain(`\`${key}\``);
}
for (const key of [
"PORTAL_SERVER_URL",
"PORTAL_SERVER_FLY_TOKEN",
"IMPORT_QUEUE_ENABLED",
"IMPORT_QUEUE_RUNTIME_READY",
]) {
for (const key of ["IMPORT_QUEUE_ENABLED", "IMPORT_QUEUE_RUNTIME_READY", "PORTAL_GDPR_EXPORT_QUEUE_ENABLED"]) {
expect(envVarsDocument, `docs/env-vars.md missing active optional key ${key}`).toContain(`\`${key}\``);
}
});
@@ -116,4 +146,59 @@ describe("env catalog", () => {
expect(getEnvVariableDefinition(key)?.targets, `${key} must include web because loadWebConfig consumes it`).toContain("web");
}
});
test("catalogs the Aircall Technology Partner OAuth boundary as web-only", () => {
for (const key of ["AIRCALL_CLIENT_ID", "AIRCALL_CLIENT_SECRET", "AIRCALL_REDIRECT_URI", "AIRCALL_WEBHOOK_URL"]) {
expect(getEnvVariableDefinition(key)).toMatchObject({
classification: "optional-provider",
targets: ["web"],
source: "code-and-example",
});
}
expect(getEnvVariableDefinition("AIRCALL_CLIENT_SECRET")?.kind).toBe("secret");
});
test("catalogs the KWP OAuth boundary and exposes only its tenant binding to the worker", () => {
for (const key of ["KWP_OAUTH_CLIENT_ID", "KWP_OAUTH_CLIENT_SECRET", "KWP_OAUTH_SCOPES", "KWP_CUSTOMER_CODE", "KWP_OIDC_ISSUER", "KWP_MANDANT"]) {
expect(getEnvVariableDefinition(key)).toMatchObject({
classification: "optional-provider",
targets: ["web"],
source: "code-and-example",
});
expect(getEnvVariableDefinition(key)?.requiredInProduction, `${key} must remain optional in production`).not.toBe(true);
}
expect(getEnvVariableDefinition("KWP_HIVEGRID_TENANT_ID")).toMatchObject({
classification: "optional-provider",
targets: ["web", "worker"],
source: "code-and-example",
});
expect(getEnvVariableDefinition("KWP_HIVEGRID_TENANT_ID")?.requiredInProduction).not.toBe(true);
expect(getEnvVariableDefinition("KWP_OAUTH_CLIENT_SECRET")?.kind).toBe("secret");
expect(getEnvVariableDefinition("KWP_OIDC_ISSUER")?.kind).toBe("url");
expect(getEnvVariableDefinition("KWP_OAUTH_REDIRECT_URI")).toBeUndefined();
});
test("catalogs the Web Push VAPID boundary without making it core-required", () => {
for (const key of ["WEB_PUSH_VAPID_SUBJECT", "WEB_PUSH_VAPID_PRIVATE_KEY"]) {
expect(getEnvVariableDefinition(key)).toMatchObject({ classification: "optional-provider", targets: ["worker"], source: "code-and-example" });
expect(getEnvVariableDefinition(key)?.requiredInProduction).not.toBe(true);
}
expect(getEnvVariableDefinition("WEB_PUSH_VAPID_PUBLIC_KEY")).toMatchObject({
classification: "optional-provider",
targets: ["web", "worker"],
source: "code-and-example",
requiredInProductionTargets: ["web"],
});
expect(getEnvVariableDefinition("WEB_PUSH_VAPID_PUBLIC_KEY")?.requiredInProduction).not.toBe(true);
expect(getEnvVariableDefinition("WEB_PUSH_VAPID_PRIVATE_KEY")?.kind).toBe("secret");
});
test("catalogs the Authentik JIT database boundary as a web-only secret", () => {
expect(getEnvVariableDefinition("AUTHENTIK_ADMIN_JIT_DATABASE_URL")).toMatchObject({
classification: "optional-provider",
targets: ["web"],
kind: "secret",
source: "code-and-example",
});
});
});