mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-09 14:49:25 +00:00
fix(replication): fail closed on destination encryption (#5633)
* fix(replication): fail closed on destination encryption * test(replication): avoid Debug bound in encryption assertion
This commit is contained in:
@@ -870,7 +870,9 @@ mod tests {
|
||||
);
|
||||
|
||||
config.rules[0].source_selection_criteria = None;
|
||||
config.rules[0].destination.encryption_configuration = Some(EncryptionConfiguration::default());
|
||||
config.rules[0].destination.encryption_configuration = Some(EncryptionConfiguration {
|
||||
replica_kms_key_id: Some("arn:aws:kms:us-east-1:123456789012:key/opaque-key-id".to_string()),
|
||||
});
|
||||
assert_eq!(unsupported_replication_config_field(&config), Some("Destination.EncryptionConfiguration"));
|
||||
|
||||
config.rules[0].destination.encryption_configuration = None;
|
||||
|
||||
Reference in New Issue
Block a user