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: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@
16
16
- reduce the margin at the botton of forms to make them more compact.
17
17
- fix [datagrid](https://sql.ophir.dev/documentation.sql?component=datagrid#component) color pills display when they contain long text.
18
18
- fix the "started successfully" message being displayed before the error message when the server failed to start.
19
+
- add support for using the system's native SSL Certificate Authority (CA) store in `sqlpage.fetch`. See the new `system_root_ca_certificates` configuration option.
Copy file name to clipboardExpand all lines: configuration.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,7 @@ Here are the available configuration options and their default values:
31
31
|`https_acme_directory_url`|https://acme-v02.api.letsencrypt.org/directory| The URL of the ACME directory to use when requesting a certificate. |
32
32
|`environment`| development | The environment in which SQLPage is running. Can be either `development` or `production`. In `production` mode, SQLPage will hide error messages and stack traces from the user, and will cache sql files in memory to avoid reloading them from disk. |
33
33
|`content_security_policy`|| The [Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) to set in the HTTP headers. If you get CSP errors in the browser console, you can set this to the empty string to disable CSP. |
34
+
|`system_root_ca_certificates`| false | Whether to use the system root CA certificates to validate SSL certificates when making http requests with `sqlpage.fetch`. If set to false, SQLPage will use its own set of root CA certificates. If the `SSL_CERT_FILE` or `SSL_CERT_DIR` environment variables are set, they will be used instead of the system root CA certificates. |
34
35
35
36
Multiple configuration file formats are supported:
36
37
you can use a [`.json5`](https://json5.org/) file, a [`.toml`](https://toml.io/) file, or a [`.yaml`](https://en.wikipedia.org/wiki/YAML#Syntax) file.
Copy file name to clipboardExpand all lines: src/app_config.rs
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -100,6 +100,12 @@ pub struct AppConfig {
100
100
101
101
/// Content-Security-Policy header to send to the client. If not set, a default policy allowing scripts from the same origin is used and from jsdelivr.net
102
102
pubcontent_security_policy:Option<String>,
103
+
104
+
/// Whether `sqlpage.fetch` should load trusted certificates from the operating system's certificate store
105
+
/// By default, it loads Mozilla's root certificates that are embedded in the `SQLPage` binary, or the ones pointed to by the
106
+
/// `SSL_CERT_FILE` and `SSL_CERT_DIR` environment variables.
0 commit comments