Tenancy: tenants verify the domain names they add (MT-24, 2026.x) #504

Merged
jcoffey-dev merged 1 commits from fix/tenant-domain-verification-2026 into release/2026 2026-11-20 18:09:56 +00:00
Owner

Backport of #503 to 2026.x.

A domain name a tenant administrator adds, as a new domain, a rename or an alias, now has to be verified with a TXT record at _inbuxa-verification.<name> before the server uses it, and every name counts toward the tenant's maxDomains. Names a server administrator adds need no record; names saved before stay as they are.

  • Same property ids as 27.1 (unverifiedNames 948, verificationToken 949).
  • The stored Domain is version 4 in 27.1's layout: 27.1's logoDark and passkeysAllowed slots are written at their defaults and skipped when read, so an upgrade to 27.1 reads the record back the same.
  • Only MT-24 is backported; the tenant write lock (#501) and the storage fixes are 27.1 only.

Part of the inbuxa/inbuxa-admin#257 remediation (Refs inbuxa/inbuxa-admin#257).

Tests: registry stored-version test, TXT matching unit tests, the MT-24 tenant_tests cases; tenant, scim, undelete, legal_hold and jmap suites pass locally.

Backport of #503 to 2026.x. A domain name a tenant administrator adds, as a new domain, a rename or an alias, now has to be verified with a TXT record at `_inbuxa-verification.<name>` before the server uses it, and every name counts toward the tenant's `maxDomains`. Names a server administrator adds need no record; names saved before stay as they are. - Same property ids as 27.1 (`unverifiedNames` 948, `verificationToken` 949). - The stored Domain is version 4 in 27.1's layout: 27.1's `logoDark` and `passkeysAllowed` slots are written at their defaults and skipped when read, so an upgrade to 27.1 reads the record back the same. - Only MT-24 is backported; the tenant write lock (#501) and the storage fixes are 27.1 only. Part of the inbuxa/inbuxa-admin#257 remediation (Refs inbuxa/inbuxa-admin#257). **Tests:** registry stored-version test, TXT matching unit tests, the MT-24 `tenant_tests` cases; `tenant`, `scim`, `undelete`, `legal_hold` and `jmap` suites pass locally.
jcoffey-dev added this to the 2026.x maintenance milestone 2026-11-20 17:58:17 +00:00
jcoffey-dev added 1 commit 2026-11-20 17:58:17 +00:00
Tenancy: tenants verify the domain names they add (MT-24)
ci / fork-checks (pull_request) Skipped
ci / build (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 11m6s
df4d0fbb4e
A domain name a tenant administrator adds, as a new domain, a rename
or an alias, now has to be shown to be the tenant's before the server
uses it, and every name counts toward the tenant's maxDomains.

- x:Domain gets unverifiedNames (948) and a read-only, server-set
  verificationToken (949), the same ids as in 27.1. The stored Domain is
  version 4, laid out as 27.1 stores it: 27.1's logoDark and
  passkeysAllowed slots (versions 2 and 3) are written at their defaults
  and skipped when read, so an upgrade to 27.1 reads it back the same.
  Names saved before stay as they are.
- A name a tenant administrator adds is saved as unverified, and the
  domain gets a 32-character token. Until it's verified the name takes
  no mail, isn't a local domain, signs nothing, and gives no addresses
  to send as.
- The tenant verifies a name with a TXT record at
  _inbuxa-verification.<name> carrying inbuxa-verification=<token>,
  then takes it off unverifiedNames; the save looks the record up and
  names it in the refusal if it isn't there. Names a server
  administrator adds need no record, and a server administrator may
  clear or add entries.
- A domain counts as 1 plus its aliases toward maxDomains: on create,
  on an update that adds aliases, and on a move into a tenant.
- Spec: multi-tenancy MT-24. The domain form gets a Verification
  section.

Part of the inbuxa/inbuxa-admin#257 remediation.

Backport of the main change to 2026.x.

Test: registry stored-version test (version 1 reads back with no
unverified names; version 4 is 27.1's layout); TXT matching unit tests; tenant_tests covers an
unverified alias, clears refused without the record and with a wrong
token, a clear with it, the token refused as client-set, aliases over
maxDomains, a tenant-created domain unverified as a whole, and the
server administrator's clear and alias. scim, undelete, legal_hold and
jmap suites pass.
jcoffey-dev merged commit 85bf5c0149 into release/2026 2026-11-20 18:09:56 +00:00
jcoffey-dev deleted branch fix/tenant-domain-verification-2026 2026-11-20 18:09:56 +00:00
Sign in to join this conversation.