Delete a domain's DKIM keys with it; point kept accounts at DeletedAccount #314

Merged
jcoffey-dev merged 1 commits from fix/313-domain-delete-and-kept-accounts into main 2026-11-08 06:55:58 +00:00
1 Commits
Author SHA1 Message Date
jcoffey-dev 05bfb65066 Delete a domain's DKIM keys with it; point kept accounts at DeletedAccount
ci / fork-checks (pull_request) Skipped
ci / build (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 8m53s
A domain with automatic DKIM couldn't be deleted: the keys it generated
refer to it, so the delete came back objectIsLinked until someone found
and removed them by hand. When those keys are the only things still
referring to the domain, they now go first and then the domain. Anything
else that's linked leaves them in place and the delete is refused as
before.

objectIsLinked now has a description naming what's in the way, for
clients that only show the description.

Cancelling a DestroyAccount task is still refused, but the message no
longer says recovery isn't supported. It points to
inbuxa:DeletedAccount/set, which restores a kept account or destroys it
now.

Fixes #313
2026-11-07 23:45:31 -07:00