File tree 1 file changed +13
-0
lines changed
sqlx-postgres/src/options
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,19 @@ impl PgConnectOptions {
134
134
/// # use sqlx_postgres::PgConnectOptions;
135
135
/// let options = PgConnectOptions::new();
136
136
/// ```
137
+ ///
138
+ /// Note: that unlike `libpq` the environment variables:
139
+ ///
140
+ /// * `PGSSLROOTCERT`
141
+ /// * `PGSSLCERT`
142
+ /// * `PGSSLKEY`
143
+ ///
144
+ /// Must not exclusively be path, ´sqlx-postgres` supports these variables
145
+ /// encode the certificates / keys directly. Content snooping is done via
146
+ /// `CertificateInput::from`.
147
+ ///
148
+ /// Note: Putting key material in environment variables can be subjected to risk as on
149
+ /// some platforms environment variables can be recovered by other (non root) users.
137
150
pub fn new ( ) -> Self {
138
151
Self :: new_without_pgpass ( ) . apply_pgpass ( )
139
152
}
You can’t perform that action at this time.
0 commit comments