mirror of
https://github.com/floci-io/floci.git
synced 2026-12-05 11:07:59 -05:00
CreateUser and CreateACL never read their Tags member, and ListTags, TagResource and UntagResource resolved every ARN as a cluster, so a user or ACL ARN answered ClusterNotFoundFault and neither resource could be tagged at all. User and Acl now keep a tag map, set from Tags on create as CreateCluster already does. The three tag operations pick the resource from the ARN: user/ and acl/ look the name up in the current Region and require the stored ARN to match, answering UserNotFoundFault or ACLNotFoundFault, and any other ARN goes through clusterByArn as before. The built-in default user and open-access ACL are not stored, so they still answer the not-found fault. Users and ACLs saved before this change have no tags field and load with an empty map. Fixes #7956