Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix(pam): type the seeded template settings as partial
bernie-g9a997eca7af7
diff --git a/backend/src/ee/services/pam-account-template/pam-account-template-service.ts b/backend/src/ee/services/pam-account-template/pam-account-template-service.tsindex af0253ce38..0489fd7af5 100644--- a/backend/src/ee/services/pam-account-template/pam-account-template-service.ts+++ b/backend/src/ee/services/pam-account-template/pam-account-template-service.ts@@ -155,7 +155,9 @@ export const pamAccountTemplateServiceFactory = (deps: TPamAccountTemplateServicconst resolvedS3Config = await validateTemplateRecordingS3Config(recordingConnectionId, settings, ctx);// Credential health checking is on for a new template unless the caller says otherwise.- const seededSettings: TPamTemplateSettings = {+ // Partial on purpose: the schema's defaults are applied on read, exactly as they were when create stored+ // no settings at all.+ const seededSettings: Partial<TPamTemplateSettings> = {...(settings ?? {}),heartbeat: settings?.heartbeat ?? DEFAULT_HEARTBEAT_CONFIG};