mirror of
https://github.com/floci-io/floci.git
synced 2026-11-25 06:47:41 -05:00
* feat(ses): add the S/MIME identity certificate operations Implement AssociateEmailIdentityCertificate, DisassociateEmailIdentityCertificate and ListEmailIdentityCertificates as a control plane only: associations are stored per region and Floci never signs mail. Request validation, messages and precedence follow real SES: a domain identity needs a FromAddress in the domain or a subdomain, one certificate per address regardless of case, the request members are checked before the identity, and the certificate is not inspected on association. The reported status is Floci's own rule: ACTIVE while the ARN names an issued, unexpired ACM certificate (with its expiry as CertificateExpiryTime), FAILED otherwise. Disassociation is immediate and idempotent, and the list pages through SesListPaging. DeleteEmailIdentity now refuses an identity that still has a certificate associated, as SES does. The v1 DeleteIdentity and DeleteVerifiedEmailAddress share the identities and refuse it too. * fix(ses): apply the documented S/MIME certificate requirements ListEmailIdentityCertificates now reports ACTIVE only when the association meets the SES Developer Guide's S/MIME certificate considerations: the identity is verified, and the certificate is currently valid, has an allowed key (RSA 2048/3072/4096 or EC P-256, P-384, P-521, read from the certificate itself since ACM's stored key algorithm folds other sizes into those) and an RFC822Name SAN equal to the From address, case-sensitively. The docs link that section instead of calling the criteria undocumented. * fix(ses): require an email-signing end-entity S/MIME certificate A probe against SES found requirements beyond the Developer Guide's list: a CA certificate fails even with the right usages, and the certificate needs both a key usage including digitalSignature and an extended key usage including emailProtection, while other usages may sit alongside them. ListEmailIdentityCertificates now applies them, and the docs list them next to the guide's link. * refactor(ses): reuse SesIdentityService's verified-identity check