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 pwd rotation syntax
Fang-Pen Linc0d6204e1368
diff --git a/backend/src/ee/services/pam-resource/shared/sql/sql-resource-factory.ts b/backend/src/ee/services/pam-resource/shared/sql/sql-resource-factory.tsindex bc224336a1..92caefc82b 100644--- a/backend/src/ee/services/pam-resource/shared/sql/sql-resource-factory.ts+++ b/backend/src/ee/services/pam-resource/shared/sql/sql-resource-factory.ts@@ -115,7 +115,7 @@ const makeSqlConnection = (},rotateCredentials: async (currentCredentials) => {const newPassword = alphaNumericNanoId(32);- await client.raw(`ALTER USER ?? WITH PASSWORD ?'`, [currentCredentials.username, newPassword]);+ await client.raw(`ALTER USER ?? WITH PASSWORD ?`, [currentCredentials.username, newPassword]);return { username: currentCredentials.username, password: newPassword };},close: () => client.destroy()