Skip to content

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

remove SMB credential check

x032205677982102e40
diff --git a/backend/src/ee/services/pam-resource/windows-server/windows-server-resource-factory.ts b/backend/src/ee/services/pam-resource/windows-server/windows-server-resource-factory.ts
index 2d03c0eaff..024f6c5c3a 100644
--- a/backend/src/ee/services/pam-resource/windows-server/windows-server-resource-factory.ts
+++ b/backend/src/ee/services/pam-resource/windows-server/windows-server-resource-factory.ts
@@ -4,7 +4,6 @@ import { BadRequestError } from "@app/lib/errors";
import { GatewayProxyProtocol } from "@app/lib/gateway";
import { withGatewayV2Proxy } from "@app/lib/gateway-v2/gateway-v2";
import { logger } from "@app/lib/logger";
-import { verifyWindowsCredentials } from "@app/lib/smb-rpc";
import { verifyHostInputValidity } from "../../dynamic-secret/dynamic-secret-fns";
import { TGatewayV2ServiceFactory } from "../../gateway-v2/gateway-v2-service";
@@ -17,7 +16,6 @@ import {
import { TWindowsAccountCredentials, TWindowsResourceConnectionDetails } from "./windows-server-resource-types";
const EXTERNAL_REQUEST_TIMEOUT = 10 * 1000;
-const SMB_PORT = 445;
const executeWithGateway = async <T>(
config: {
@@ -123,27 +121,7 @@ export const windowsResourceFactory: TPamResourceFactory<
const validateAccountCredentials: TPamResourceFactoryValidateAccountCredentials<TWindowsAccountCredentials> = async (
credentials
) => {
- if (!gatewayId) {
- throw new BadRequestError({ message: "Gateway ID is required" });
- }
-
- try {
- await executeWithGateway(
- { connectionDetails, gatewayId, resourceType, targetPortOverride: SMB_PORT },
- gatewayV2Service,
- async (proxyPort) => {
- await verifyWindowsCredentials("localhost", proxyPort, credentials.username, credentials.password);
- }
- );
- } catch (error) {
- if (error instanceof BadRequestError) throw error;
-
- const errMsg = error instanceof Error ? error.message : String(error);
- throw new BadRequestError({
- message: `Unable to validate account credentials via SMB: ${errMsg}`
- });
- }
-
+ // Temporarily allow all credentials. Later on we'll implement a check with RDP
return credentials;
};
diff --git a/docs/documentation/platform/pam/getting-started/resources/windows-server.mdx b/docs/documentation/platform/pam/getting-started/resources/windows-server.mdx
index 3361dc19b7..08134e9f1a 100644
--- a/docs/documentation/platform/pam/getting-started/resources/windows-server.mdx
+++ b/docs/documentation/platform/pam/getting-started/resources/windows-server.mdx
@@ -35,9 +35,7 @@ sequenceDiagram
2. **RDP Protocol**: Infisical connects to your Windows server using the Remote Desktop Protocol (RDP) on the configured port (default: 3389).
-3. **Credential Validation via SMB**: When creating or updating accounts, Infisical validates credentials by connecting to the Windows server's SMB service (port 445). This ensures credentials are correct before they are stored.
-
-4. **Account Types**: Windows accounts can be categorized as either **User** accounts or **Service** accounts, allowing you to organize and manage different types of access.
+3. **Account Types**: Windows accounts can be categorized as either **User** accounts or **Service** accounts, allowing you to organize and manage different types of access.
## Prerequisites
@@ -45,15 +43,10 @@ Before configuring Windows Server access in Infisical PAM, you need:
1. **Infisical Gateway** - A Gateway deployed in your network with access to the Windows server
2. **RDP Enabled** - Remote Desktop must be enabled on the Windows server (port 3389 by default)
-3. **SMB Enabled** - SMB (Server Message Block) must be accessible for credential validation (port 445)
-4. **Windows Credentials** - A username and password for a Windows account on the server
+3. **Windows Credentials** - A username and password for a Windows account on the server
<Warning>
- **SMB Required**: Infisical validates account credentials using SMB (Server Message Block) on port 445. SMB is enabled by default on Windows servers. Ensure port 445 is accessible from the Gateway and not blocked by a firewall.
-</Warning>
-
-<Warning>
- **Gateway Required**: Windows Server access requires an Infisical Gateway to be deployed and registered with your Infisical instance. The Gateway must have network connectivity to your Windows server on both the RDP port (default: 3389) and SMB port (445).
+ **Gateway Required**: Windows Server access requires an Infisical Gateway to be deployed and registered with your Infisical instance. The Gateway must have network connectivity to your Windows server on the RDP port (default: 3389).
</Warning>
## Create the PAM Resource
@@ -123,9 +116,5 @@ A PAM Account represents a specific Windows user account on the server. You can
<ParamField path="Password" type="string" required>
The Windows password for this user
</ParamField>
-
- <Note>
- When creating the account, Infisical will validate the credentials by connecting to the server via SMB (port 445).
- </Note>
</Step>
</Steps>