mirror of
https://github.com/floci-io/floci.git
synced 2026-12-04 02:28:08 -05:00
The request-resources table gives MemoryDB's clusters, users and ACLs the aws:ResourceTag keys, which the Service Reference lists for them, but MemoryDB answered no storedTags, so a condition on a resource tag never matched: a caller allowed memorydb:DeleteUser only on users tagged team=blue was refused it on the blue user as on any other. MemoryDbStoredResourceArns reads the tags MemoryDB's ListTags reads, for the caller's cluster, user or ACL the ARN names. Its tag changes mutated the stored map in place under no lock, and ListTags handed out that live map, which an IAM check reading it while another request tags the resource could see half changed or fail on; the tag read, tag and untag are now synchronized, and each returns a copy.