mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 14:10:49 -05:00
* feat(ses): implement identity (sending authorization) policies for v1 and v2 Add the SES identity-policy APIs across both protocols, backed by one shared StorageFactory store (key policy::<region>::<identity>::<policyName>): - v1 Query: PutIdentityPolicy (upsert), GetIdentityPolicies, ListIdentityPolicies, DeleteIdentityPolicy (idempotent). - v2 REST JSON: CreateEmailIdentityPolicy (fails on duplicate), GetEmailIdentityPolicies, UpdateEmailIdentityPolicy (fails when missing), DeleteEmailIdentityPolicy. Behaviour and error shapes were verified against real AWS: the per-identity limit of 20, the v1/v2 create/update/delete strictness asymmetry, PolicyName constraints, and the shared v1<->v2 store. Floci stores and returns policies but does not enforce the authorization (Principal-account existence, Resource-ARN match) or gate sending on them. * test(ses): inject policyStore into the test SesService constructor Thread the identity-policy store through the package-private constructors as a parameter instead of hardcoding a new InMemoryStorage, matching every other store and keeping the test constructor aligned with the production wiring.