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
Copy file name to clipboardExpand all lines: spiceaidocs/docs/data-accelerators/postgres/index.md
+10-3Lines changed: 10 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,11 @@ The connection to PostgreSQL can be configured by providing the following `param
25
25
- `pg_user`: The username to connect with.
26
26
- `pg_pass_key`: The secret key containing the password to connect with.
27
27
- `pg_pass`: The plain-text password to connect with, ignored if `pg_pass_key` is provided.
28
+
- `pg_sslmode`: Optional parameter, specifies the SSL/TLS behavior for the connection, supported values:
29
+
- `prefer`: (default) This mode will try to establish a secure SSL connection if possible, but will still connect if the server does not support SSL.
30
+
- `required`: This mode requires an SSL connection. If a secure connection cannot be established, server will not connect.
31
+
- `disable`: This mode will not attempt to use an SSL connection, even if the server supports it.
32
+
- `pg_insecure`: Optional parameter, Allows TLS connectivity to servers with invalid/expired certificates.
28
33
29
34
Configuration `params` are provided either in the `acceleration` section of a dataset.
30
35
@@ -36,10 +41,12 @@ datasets:
36
41
engine: postgres
37
42
params:
38
43
pg_host: localhost
39
-
pg_port: 5432
44
+
pg_port: '5432'
40
45
pg_db: my_database
41
46
pg_user: my_user
42
47
pg_pass_key: my_secret
48
+
pg_sslmode: required
49
+
pg_insecure: 'true'
43
50
```
44
51
45
52
Additionally, an `engine_secret` may be provided when configuring a PostgreSQL data store to allow for using a different secret store to specify the password for a dataset using PostgreSQL as both the data source and data store.
Copy file name to clipboardExpand all lines: spiceaidocs/docs/data-connectors/postgres/index.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,7 @@ The connection to PostgreSQL can be configured by providing the following `param
28
28
- `prefer`: (default) This mode will try to establish a secure SSL connection if possible, but will connect insecurely if the server does not support SSL.
29
29
- `required`: This mode requires an SSL connection. If a secure connection cannot be established, server will not connect.
30
30
- `disable`: This mode will not attempt to use an SSL connection, even if the server supports it.
31
+
- `pg_insecure`: Optional parameter, Allows TLS connectivity to servers with invalid/expired certificates.
31
32
32
33
Configuration `params` are provided either in the top level `dataset` for a dataset source and federated SQL query, or in the `acceleration` section for a data store.
33
34
@@ -41,6 +42,8 @@ datasets:
41
42
pg_db: my_database
42
43
pg_user: my_user
43
44
pg_pass_key: my_secret
45
+
pg_sslmode: required
46
+
pg_insecure: 'true'
44
47
```
45
48
46
49
Additionally, an `engine_secret` may be provided when configuring a PostgreSQL data store to allow for using a different secret store to specify the password for a dataset using PostgreSQL as both the data source and data store.
0 commit comments