Skip to content

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

Remove PAM Windows hostname alias

bernie-gc146083b7cb0
diff --git a/backend/src/ee/services/pam-account/pam-account-schemas.ts b/backend/src/ee/services/pam-account/pam-account-schemas.ts
index 924724e45d..bcd5aa0c9d 100644
--- a/backend/src/ee/services/pam-account/pam-account-schemas.ts
+++ b/backend/src/ee/services/pam-account/pam-account-schemas.ts
@@ -445,12 +445,6 @@ const getAccountTypeConfig = (accountType: PamAccountType | string) => {
};
export const validateConnectionDetails = (accountType: PamAccountType, data: unknown) => {
- if (accountType === PamAccountType.Windows && data && typeof data === "object") {
- const raw = data as Record<string, unknown>;
- if (!raw.host && raw.hostname) {
- raw.host = raw.hostname;
- }
- }
return getAccountTypeConfig(accountType).connectionDetails.parse(data) as z.output<
(typeof ACCOUNT_TYPE_CONFIGS)[TSupportedAccountType]["connectionDetails"]
>;