mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 14:10:49 -05:00
* feat(acm): add certificate revocation, renewal, options and email resend Adds RevokeCertificate, RenewCertificate, UpdateCertificateOptions and ResendValidationEmail, with a RevocationReason enum modelling the accepted values. Limitations documented in docs/services/acm.md. * test(acm): stop asserting global-empty state in the pagination filter test Other classes sharing the full-suite JVM revoke certificates of their own, so a REVOKED filter is not globally empty. Assert instead that none of this class's own certificates appear, which is what the test is actually about. * feat(acm): add ResendValidationEmail and certificate revocation reasons * fix(acm): validate Domain/ValidationDomain on ResendValidationEmail Domain and ValidationDomain were accepted verbatim after a null/blank check, so any value round-tripped as 200 OK - a client could resend against an unrelated domain and get success back. Domain must now match the certificate's DomainName or one of its SubjectAlternativeNames, and ValidationDomain must equal Domain or be one of its superdomains, matching botocore's InvalidDomainValidationOptionsException semantics for this operation. Also drops the now-unneeded manual UTF-8 byte encoding in the resend test now that RestAssuredJsonUtils configures the AWS content types. * fix(acm): require Options.Export=ENABLED to revoke a certificate revokeCertificate gated on Certificate.canExport(), which returns true for any PRIVATE or IMPORTED certificate regardless of its Export option - so an imported certificate with Export left at the default DISABLED could still be revoked, bypassing the export-enabled guard the operation is meant to enforce. Check Options.Export directly instead. * fix(acm): use ValidationException for a not-export-enabled revoke RevokeCertificate's own modeled Errors list is AccessDeniedException, ConflictException, InvalidArnException, ResourceInUseException, ResourceNotFoundException, ThrottlingException, and ValidationException. InvalidStateException isn't among them - it's modeled on UpdateCertificateOptions instead, which is likely where it got picked up from. ValidationException is the operation's own general "input failed to satisfy constraints" code, and the better fit here.