mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
TransitEncryptionEnabled was serialized as `authMode == PASSWORD` in both the replication-group and the member-cache-cluster views. An auth token does force encryption in transit, but the reverse does not hold: CreateReplicationGroup already accepts TransitEncryptionEnabled=true with no token and records it as AuthMode.IAM, and every read then reported that group as unencrypted in transit. Terraform's aws_elasticache_replication_group reads transit_encryption_enabled back on every plan, so such a group showed permanent drift. DescribeCacheClusters had a second, narrower version of the same problem: AtRestEncryptionEnabled was a hardcoded false on the member view, so it contradicted DescribeReplicationGroups about one group's own storage encryption. It now reports what the group stores, which is the value CreateReplicationGroup already parsed and kept.