mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 07:39:24 -05:00
* fix(cognito): keep tag operations and DescribeUserPoolDomain in the pool's region The region guard for user pools checked only requests naming a UserPoolId. TagResource, UntagResource and ListTagsForResource name the pool by ARN, and DescribeUserPoolDomain looks a domain up by its name in a store keyed by name alone, so another region could still read or change a pool's tags and describe its domain. The handler now applies the same guard to the pool an ARN names, and refuses a domain whose pool lives in another region with the not found an unknown domain gets. * fix(cognito): answer a missing user pool domain with 400 and match the tagged pool's full ARN ResourceNotFoundException carries no HTTP status of its own in the cognito-idp model, so it goes out as the awsJson 400; the domain operations sent 404. The tag operations now also refuse an ARN that names the pool's id under another region or account, and the region test covers UntagResource.