fix: did same resolution for dynamic secret ops as well

This commit is contained in:
=
2025-01-10 15:12:04 +05:30
parent e741b63e63
commit 4d43accc8a
2 changed files with 13 additions and 2 deletions
@@ -181,7 +181,7 @@ export const secretRotationQueueFactory = ({
? ({
encrypt: appCfg.ENABLE_MSSQL_SECRET_ROTATION_ENCRYPT,
// when ca is provided use that
trustServerCertificate: ca ? false : true,
trustServerCertificate: !ca,
cryptoCredentialsDetails: ca ? { ca } : {}
} as Record<string, unknown>)
: undefined;