Skip to content

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

Update aws-connection-fns.ts

Daniel6c769b4bc201
diff --git a/backend/src/services/app-connection/aws/aws-connection-fns.ts b/backend/src/services/app-connection/aws/aws-connection-fns.ts
index 41b2d5f866..dea205ae6f 100644
--- a/backend/src/services/app-connection/aws/aws-connection-fns.ts
+++ b/backend/src/services/app-connection/aws/aws-connection-fns.ts
@@ -63,11 +63,14 @@ export const getAwsConnectionConfig = async (appConnection: TAwsConnectionConfig
case AwsConnectionMethod.AssumeRole: {
const client = new STSClient({
region: getStsSigningRegion(credentials.stsEndpoint) ?? region,
- useFipsEndpoint: crypto.isFipsModeEnabled(),
sha256: CustomAWSHasher,
// only override the endpoint when explicitly set; otherwise preserve the SDK's
// default region/FIPS endpoint resolution so existing connections are unaffected
- ...(credentials.stsEndpoint ? { endpoint: credentials.stsEndpoint } : {}),
+ ...(credentials.stsEndpoint
+ ? { endpoint: credentials.stsEndpoint }
+ : {
+ useFipsEndpoint: crypto.isFipsModeEnabled()
+ }),
credentials:
appCfg.INF_APP_CONNECTION_AWS_ACCESS_KEY_ID && appCfg.INF_APP_CONNECTION_AWS_SECRET_ACCESS_KEY
? {