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
make sure that the RSA pub key is also empty on creation
adilson0b70c6c4d959
diff --git a/backend/src/ee/services/secret-rotation-v2/snowflake-user-key-pair/snowflake-user-key-pair-rotation-fns.ts b/backend/src/ee/services/secret-rotation-v2/snowflake-user-key-pair/snowflake-user-key-pair-rotation-fns.tsindex 90f1af00f4..a525b4087e 100644--- a/backend/src/ee/services/secret-rotation-v2/snowflake-user-key-pair/snowflake-user-key-pair-rotation-fns.ts+++ b/backend/src/ee/services/secret-rotation-v2/snowflake-user-key-pair/snowflake-user-key-pair-rotation-fns.ts@@ -179,7 +179,7 @@ export const snowflakeUserKeyPairRotationFactory: TRotationFactory<return readFingerprints(client, resolvedUsername);}, `Failed to read existing RSA public keys for Snowflake user "${username}"`);- if (fingerprints.RSA_PUBLIC_KEY) {+ if (fingerprints.RSA_PUBLIC_KEY || fingerprints.RSA_PUBLIC_KEY_2) {throw new BadRequestError({message: `Snowflake user "${username}" already has a key set in the RSA_PUBLIC_KEY slot. Remove it before creating this rotation so an existing key is not overwritten.`});