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:
cxymds
2026-08-02 22:54:51 +08:00
committed by GitHub
parent 114b2420a2
commit 1fdcbd9225
3 changed files with 126 additions and 21 deletions
+3 -1
View File
@@ -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;