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
Owner

Fixes #313.

Deleting a domain now takes its own DKIM keys with it, but only when they are the only things still referring to it. If anything else uses the domain, nothing is touched and the delete is refused like before. objectIsLinked errors now say what is in the way, and cancelling a DestroyAccount task points to inbuxa:DeletedAccount/set instead of saying recovery isn't supported.

Tested locally with the tenant and undelete suites, which cover both changes.

Fixes #313. Deleting a domain now takes its own DKIM keys with it, but only when they are the only things still referring to it. If anything else uses the domain, nothing is touched and the delete is refused like before. objectIsLinked errors now say what is in the way, and cancelling a DestroyAccount task points to inbuxa:DeletedAccount/set instead of saying recovery isn't supported. Tested locally with the tenant and undelete suites, which cover both changes.
jcoffey-dev self-assigned this 2026-11-08 06:45:43 +00:00
jcoffey-dev added 1 commit 2026-11-08 06:45:43 +00:00
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
05bfb65066
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
jcoffey-dev merged commit 26f559c7c2 into main 2026-11-08 06:55:58 +00:00
jcoffey-dev deleted branch fix/313-domain-delete-and-kept-accounts 2026-11-08 06:55:59 +00:00
Sign in to join this conversation.