You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 30df76c
Browse filesBrowse the repository at this point in the historyBrowse files
fix(credentials): describe saved-connection TLS modes as the drivers apply them
- MySQL Required verifies the certificate chain but not the host name (like
VERIFY_CA), and both Preferred and Required refuse a server without TLS.
- SQL Server Encrypt connection requests TLS; a server that does not support
encryption gets an unencrypted session rather than an error.
- PostgreSQL Preferred can be downgraded by an on-path attacker, so the hint
and docs steer to Required when the server supports TLS.
- Picker options are keyed by each operation schema's value type, so a mode
the operations add or drop fails to compile instead of drifting.
Copy file name to clipboardExpand all lines: apps/docs/content/docs/integrations/mssql.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ Use [Microsoft SQL Server](https://www.microsoft.com/sql-server) to query or mod
16
16
17
17
In **Integrations**, add a connection with the host, port, database, username, password, and transport-security settings. Sim proves the connection with `SELECT 1` before saving it encrypted, then reads it on the server for each run; the block, the workflow, and agents never see the password. Reconnect the connection from Integrations when its credentials change. The runtime must be able to reach the database host.
18
18
19
-
-**Encrypt connection**encrypts the connection with TLS; leave it enabled.
19
+
-**Encrypt connection**requests TLS; leave it enabled. A server that does not support encryption gets an unencrypted session rather than an error, so confirm the server has encryption on.
20
20
-**Trust server certificate** skips certificate validation. Enable it only for a server with a self-signed certificate you trust.
21
21
- Named instances are not supported; give the instance a static TCP port and connect to that port.
Copy file name to clipboardExpand all lines: apps/docs/content/docs/integrations/mysql.mdx
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,8 @@ Query returns rows and a row count. Insert, update, and delete operations accept
19
19
In **Integrations**, add a connection with the host, port, database, username, password, and transport-security settings. Sim proves the connection with `SELECT 1` before saving it encrypted, then reads it on the server for each run; the block, the workflow, and agents never see the password. Reconnect the connection from Integrations when its credentials change. The runtime must be able to reach the database host.
20
20
21
21
-**Preferred** encrypts without verifying the server certificate.
22
-
-**Required** encrypts and verifies the server certificate against the runtime's trust store.
22
+
-**Required** encrypts and verifies the certificate chain against the runtime's trust store, but does not check the host name, like MySQL's `VERIFY_CA`.
23
+
- Both refuse a server that offers no TLS rather than connect unencrypted, so Sim's **Preferred** behaves like MySQL's `REQUIRED`, not its `PREFERRED`.
23
24
-**Disabled** never encrypts. Use it only on a network whose confidentiality you control.
24
25
25
26
Workflows built before saved connections keep their inline connection fields and run unchanged.
Copy file name to clipboardExpand all lines: apps/docs/content/docs/integrations/postgresql.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ Use [PostgreSQL](https://www.postgresql.org/) to query and modify rows, execute
16
16
17
17
In **Integrations**, add a connection with the host, port, database, username, password, and transport-security settings. Sim proves the connection with `SELECT 1` before saving it encrypted, then reads it on the server for each run; the block, the workflow, and agents never see the password. Reconnect the connection from Integrations when its credentials change. The runtime must be able to reach the database host.
18
18
19
-
-**Preferred** encrypts when the server offers TLS and otherwise connects without it.
19
+
-**Preferred** encrypts when the server offers TLS and otherwise connects without it. An attacker on the network can force that fallback, so choose **Required** when the server supports TLS.
20
20
-**Required** always encrypts but does not verify the server certificate, like libpq's `sslmode=require`.
21
21
-**Disabled** never encrypts. Use it only on a network whose confidentiality you control.
hint: 'Required encrypts the connection without verifying the server certificate; Preferred falls back to an unencrypted connection when the server offers no TLS.',
hint: 'Required encrypts the connection without verifying the server certificate. Preferred falls back to an unencrypted connection when the server offers no TLS, which an attacker on the network can force; choose Required when the server supports TLS.',
hint: 'Required encrypts the connection and verifies the server certificate; Preferred encrypts without verifying it.',
93
+
options: optionsFrom<MysqlSslMode>({
94
+
preferred: 'Preferred',
95
+
required: 'Required',
96
+
disabled: 'Disabled',
97
+
}),
98
+
defaultValue: 'preferred'satisfiesMysqlSslMode,
99
+
hint: "Required encrypts the connection and verifies the certificate chain against the runtime's trust store, but not the host name (like MySQL's VERIFY_CA). Preferred encrypts without verifying the certificate. Both refuse a server that offers no TLS rather than connect unencrypted.",
0 commit comments