feat(kms): wire Vault custom CA and mTLS client identity (#6638)

This commit is contained in:
唐小鸭
2026-08-26 13:32:29 +08:00
committed by GitHub
parent 45f706b274
commit 32346f159a
10 changed files with 517 additions and 52 deletions
+5 -1
View File
@@ -452,8 +452,12 @@ impl VaultRestoreClient {
attempt_timeout: kms_config.effective_timeout(),
// A restore target carries no TLS settings, so certificates are
// always verified: recovery is the last path that should accept an
// unauthenticated Vault.
// unauthenticated Vault. The empty trust list and absent identity
// also neutralize the VAULT_CACERT / VAULT_CLIENT_CERT environment
// fallbacks, exactly as on the primary connection.
skip_tls_verify: false,
ca_cert_paths: Vec::new(),
client_identity: None,
};
let source = token_source_for(&target.auth_method, &settings)?;
let policy = VaultCredentialPolicy::from_kms_config(