Skip to content

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

fix(secret-rotation): fail rotation when os detection fails

DimitrisStaratzisb6049d2cd2e0
diff --git a/backend/src/ee/services/secret-rotation-v2/unix-linux-local-account-rotation/aix-password-flags.ts b/backend/src/ee/services/secret-rotation-v2/unix-linux-local-account-rotation/aix-password-flags.ts
index 174f3ffe08..9ac56c90e5 100644
--- a/backend/src/ee/services/secret-rotation-v2/unix-linux-local-account-rotation/aix-password-flags.ts
+++ b/backend/src/ee/services/secret-rotation-v2/unix-linux-local-account-rotation/aix-password-flags.ts
@@ -44,8 +44,9 @@ export const isAixHost = async (client: Client): Promise<boolean> => {
}
return stdout.trim() === "AIX";
} catch (error) {
- logger.warn(error, "Unix/Linux Local Account Rotation: `uname -s` failed, assuming a non-AIX host");
- return false;
+ throw new Error(
+ `Could not detect the host's operating system, so the password was not changed: ${(error as Error).message}`
+ );
}
};