modified: src/lib/config/env.ts

This commit is contained in:
Daniel Hougaard
2024-11-03 23:25:01 +04:00
parent 6dbe3c8793
commit 8d4a06e9e4

View File

@@ -1,8 +1,6 @@
import { Logger } from "pino";
import { z } from "zod";
import { RootKeyEncryptionStrategy } from "@app/services/kms/kms-types";
import { removeTrailingSlash } from "../fn";
import { zpStr } from "../zod";
@@ -167,9 +165,6 @@ const envSchema = z
WORKFLOW_SLACK_CLIENT_SECRET: zpStr(z.string().optional()),
ENABLE_MSSQL_SECRET_ROTATION_ENCRYPT: zodStrBool.default("true"),
// KMS ENCRYPTION
ROOT_KEY_ENCRYPTION_STRATEGY: z.nativeEnum(RootKeyEncryptionStrategy).default(RootKeyEncryptionStrategy.Basic),
// HSM
HSM_LIB_PATH: zpStr(
z
@@ -209,8 +204,6 @@ const envSchema = z
.transform((data) => ({
...data,
// ROOT_KEY_ENCRYPTION_STRATEGY: "HSM",
DB_READ_REPLICAS: data.DB_READ_REPLICAS
? databaseReadReplicaSchema.parse(JSON.parse(data.DB_READ_REPLICAS))
: undefined,