mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-18 02:33:15 +00:00
fix(security): document unsafe and TLS overrides (#2835)
This commit is contained in:
@@ -58,6 +58,13 @@ impl KeystoneClient {
|
||||
admin_domain: String,
|
||||
verify_ssl: bool,
|
||||
) -> Self {
|
||||
if !verify_ssl {
|
||||
warn!(
|
||||
"Keystone client for '{}' is configured to skip TLS certificate verification. This permits MITM attacks and should not be used in production.",
|
||||
auth_url
|
||||
);
|
||||
}
|
||||
|
||||
let client = Client::builder()
|
||||
.danger_accept_invalid_certs(!verify_ssl)
|
||||
.timeout(std::time::Duration::from_secs(30))
|
||||
|
||||
Reference in New Issue
Block a user