Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

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.ts
index 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()