Emails 0.1.12: Encrypted AWS credentials and settings on the core email page
Emails 0.1.12 stores AWS SES credentials in an encrypted Integrations connection instead of plain settings, and moves the module’s settings onto core’s email sending settings page.
The settings tab under Emails is gone. The module now adds two sections, Email Tracking and Amazon SES & SQS, to /admin/settings/email-sending. The SES section has a SES credentials source picker for an aws_ses connection. At boot an existing access key and secret are copied once into a new connection. The old settings rows are kept, and an install that has not moved keeps sending with them.
Two bounce fixes: SES reports soft bounces as “Transient”, which the module did not recognise, so every soft bounce was recorded as a hard one. Hard bounces now also add the address to the blocklist, so it stops receiving mail.
Upgrading
Emails 0.1.12 needs PhoenixKit 1.7.190 or later. Once the new connection works, you can clear the old AWS key and secret settings by hand.
Full release notes: Emails 0.1.12
0.1.12 · 19 July 2026
Changed
- AWS SES credentials now resolve through
PhoenixKit.Integrations(an encryptedaws_sesconnection) instead of being stored as plaintext Settings rows.get_aws_access_key/0,get_aws_secret_key/0, andget_aws_region/0prefer the selected Integrations connection and fall back to the legacy Settings/env-var path, so an unmigrated install keeps sending.migrate_legacy/0moves an existing key/secret into a new connection once, idempotently, without deleting the legacy Settings rows (an operator confirms the new connection works before blanking them manually). - The combined credential lookup is cached for 60s (
PhoenixKit.Cache) so building a send-path AWS config no longer costs 3 Settings reads plus 3 decrypt round-trips per email;invalidate_aws_credentials_cache/0is called wherever the selected connection changes. - Settings moved off this module’s own
/admin/settings/emailstab and now contributes two sections (“Email Tracking”, “Amazon SES & SQS”) to core’s unified/admin/settings/email-sendingpage viaemail_settings_sections/0.settings.ex/settings.html.heexare gone, replaced byweb/settings_sections/. - Requires
phoenix_kit ~> 1.7.190(the release that carries theemail_settings_sections/0seam).
Fixed
- SES bounce classification matched
"Temporary"for soft bounces, but SES actually sends"Transient"— every soft bounce was silently recorded as a hard one. Both strings are now accepted. - Hard (permanent) bounces are now added to the rate limiter’s blocklist, so a bounced address stops receiving future sends instead of bouncing again on the next campaign.
PhoenixKit.Modules.Emails.ProviderimplementsPhoenixKit.Email.Providerbut never declared@behaviour/@impl— a renamed or dropped callback in core would have compiled clean here and only failed at runtime. Declared, with@implon all 14 callbacks.- Boot-time
migrate_legacy/0no longer makes a live SES API call (GetSendQuota, up to 15s) to validate the migrated connection — the credentials were already sending mail before the migration ran, so there was nothing to verify that the first real send wouldn’t; this was blocking app startup on network egress. mix hex.publishrefused to build the package withhackneydeclared asoverride: true(“Can’t build package with overridden dependency hackney, removeoverride: true”). The override dates back to whenex_aws_sqspinnedhackney ~> 1.9; since 0.1.11 swapped that forbeamlab_ex_aws_sqs(which declares no hackney dependency at all), nothing in the tree needs hackney forced above its natural resolution — removed,mix.lockunchanged (still resolves 4.6.0).
Added
- First real test infrastructure for this package (
test/support/data_case.ex,test_repo.ex,config/test.exs) — the credential-resolution and SQS bounce/blocklist paths now have DB-backed integration tests instead of being untestable.
Emails 0.1.12. Install or update: {:phoenix_kit_emails, "~> 0.1"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.