Skip to content

Commit 78c0454

Browse files
waleedlatif1claude
andcommitted
fix: bind auth tokens to deployment password and remove resolvedIP non-null assertion
- Include SHA-256 hash of encryptedPassword in HMAC token payload so changing a deployment's password immediately invalidates all sessions - Pass encryptedPassword through setChatAuthCookie/setFormAuthCookie and validateAuthToken at all call sites - Replace non-null assertion on resolvedIP with proper narrowing guard Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3db061b commit 78c0454

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apps/sim/lib/mcp/service.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ import { isTest } from '@/lib/core/config/feature-flags'
1010
import { generateRequestId } from '@/lib/core/utils/request'
1111
import { McpClient } from '@/lib/mcp/client'
1212
import { mcpConnectionManager } from '@/lib/mcp/connection-manager'
13-
import { isMcpDomainAllowed, validateMcpDomain, validateMcpServerSsrf } from '@/lib/mcp/domain-check'
13+
import {
14+
isMcpDomainAllowed,
15+
validateMcpDomain,
16+
validateMcpServerSsrf,
17+
} from '@/lib/mcp/domain-check'
1418
import { resolveMcpConfigEnvVars } from '@/lib/mcp/resolve-config'
1519
import {
1620
createMcpCacheAdapter,

0 commit comments

Comments
 (0)