Multi-Tenancy Isolation
Ultimate Multisite: Multi-Tenancy 1.2.0 supports per-subsite database and filesystem isolation for sovereign tenants. This keeps tenant data separate while preserving network-level provisioning, billing, and administration.
Isolation strategy
Use sovereign isolation for customers that require stronger data separation, dedicated filesystem storage, or a separate host boundary.
Each sovereign tenant should have:
- A dedicated tenant database or database prefix strategy approved for the host.
- A dedicated tenant filesystem root.
- A tenant registry entry that maps the site to its database, root path, hostname, and isolation model.
- A migration verification result before the tenant is considered live.
Database host binding
Version 1.2.0 changes the default same-machine host binding behavior for sovereign installs. Same-machine values such as localhost are normalized so Bedrock, FrankenPHP, and containerized WordPress installs can grant and verify permissions against the host string MySQL actually sees.
When configuring a sovereign tenant:
- Set the database host to the value required by the tenant runtime.
- Use
localhostfor local socket installs when the host expects local connections. - Use
127.0.0.1or a service hostname only when the database server grants privileges to that host. - Run migration verification after changing the host binding.
If verification reports grant failures, compare the tenant DB user grants with the configured host binding. A user granted for user@localhost is different from [email protected] or user@%.
Filesystem root
The tenant root should be stable across restarts and deployments. Avoid temporary mount paths. For Bedrock-style installs, confirm the tenant root points at the WordPress web root expected by the tenant bootstrap, not only the project root.
Provisioning order
For new sovereign tenants, use this order:
- Create the tenant registry entry.
- Create the tenant database and database user.
- Bootstrap the tenant schema.
- Provision tenant users.
- Configure tenant filesystem paths.
- Run migration verification.
- Switch routing or DNS after verification passes.
This order prevents partially isolated tenants from receiving traffic before the database writer, users, and filesystem are ready.
Sovereign customer management flows
Ultimate Multisite v2.13.0 keeps customer management actions on the main site when sovereign mode is enabled. A tenant can still run as an isolated WordPress install, but customer-facing actions that depend on network billing, membership, or shared account data should send the customer back to the main site instead of trying to complete the action inside the tenant runtime.
The main-site flow applies to:
- Checkout and plan changes.
- Account overview and customer profile actions.
- Billing address updates and payment-management screens.
- Invoice and payment-history views.
- Site management actions such as adding sites or deleting a site.
- Template switching.
- Domain mapping and primary-domain changes.
When the customer starts one of these actions from a sovereign tenant, Ultimate Multisite builds the corresponding main-site URL and preserves the source tenant as a return target when it is safe to do so. This lets customers complete the managed action against the network records, then return to the tenant context without duplicating billing or membership state in the sovereign database.
For operators, the practical rule is: keep billing, account, checkout, invoice, template, and domain-management pages available on the main site for sovereign networks. Tenant dashboards can link to those pages, but the main site remains the source of truth for the action.