Urgent request for encrypt=Strict on MS SQL connection

One of our data providers are imminently migrating their MS SQL servers and will be enforcing encrypt=Strict.

I’ve conducted tests to the new host and it fails.
I assume the SSL/TLS toggle applies encrypt=true and an encrypt property in the Connection Options section doesn’t get passed through.

What are the options to resolve this database connection on Retool Cloud? Thanks

Summary

On Retool Cloud, a Microsoft SQL Server data provider is migrating hosts and will enforce encrypt=Strict (TDS 8.0 strict encryption). Test connections to the new host fail, and there's an assumption that the Use SSL/TLS toggle only applies encrypt=true and that an encrypt key added under Connection Options isn't passed through.

AI Response

For Microsoft SQL Server resources using username/password (SQL) authentication, custom Connection options are passed through as key-value pairs — including encrypt — so adding encrypt=true there (alongside enabling Use SSL/TLS) is the documented path for encrypted connections; the restriction on passing encrypt/trustServerCertificate only applies to Windows authentication. The documented default behavior relies on TDS 7.4 and encrypt=true/mandatory-style encryption, and there is no published support for the Strict value (TDS 8.0 strict encryption), so a value of encrypt=Strict is not confirmed to be honored. The reliable, supported approach is to enable Use SSL/TLS (optionally supplying the provider's CA certificate and keeping Reject unauthorized on), and if the server still negotiates differently, confirm whether it also accepts standard mandatory encryption rather than strict-only.

Sources

:bookmark: Connect to Microsoft SQL Server | Retool Docs
Confirms that for SQL (username/password) auth, Connection options like encrypt=true are passed through, documents the SSL/TLS fields, and shows the supported TDS versions (max 7.4).
:bookmark: Getting "Error: Server requires encryption, set 'encrypt' config option to true."
Accepted-answer topic showing that enabling the Use SSL/TLS checkbox resolves the MS SQL 'Server requires encryption' error.

The Community Team is testing out a new automation. Let us know if it's helpful (or not) by leaving a :heart:, :+1:, or :-1:. Or by marking this post as the "Solution"! Let us know if you have any feedback here. :rocket:

Bumping this.

We only use one MS SQL source so happy for the encrypt=strict to be enforced globally on MS SQL connectors in the backend of our cloud instance if that’s a viable short-term solution.

Hey @ferret141
Thanks for reporting this. Unfortunately, this is not currently possible. I have notified our engineering team, and a ticket has been opened for it. We will update you when we ship something out. Sorry for the disruption, but we will let you know when we have an update.

1 Like

Thank you @JayL .

Is that a “we’ll consider it” or is the need recognised but timeline is TBC.

Is there an approximate timeline…?

Sorry! Should have been more clear but in the "need recognised but timeline is TBC"

I have passed on the urgency to our team.

1 Like

Hey @ferret141 great news, we should some movement on this request, we will be reaching out soon!

2 Likes