Moving to managed tenant services
The CLI still accepts the frozen tsg.dataspac.es/v1alpha1 input schema and can
upgrade it with tsg migrate. Runtime services now require managed tenancy.
Upgrading a document version does not import tenant state, create a canonical
organization ID or change an existing service binding.
The older Helm-generating general/participant format still needs manual
conversion. tsg migrate does not convert it or take over Helm ownership.
Preserve existing state
Record the exact context, namespace, releases, image revisions, database names, roles, volumes, Secrets, tenant slugs and DIDs before changing a deployment. Back up databases and wallet key material, and verify the restore procedure. Use the manager import procedure for organizations that already have tenant data. Preserve their existing slugs and DIDs. A new deployment ID or renamed seed does not migrate records.
Test the import and new configuration in an isolated environment first. The CLI
creates its own infrastructure names; a database mode or stack ID change does
not move data. Do not delete the old resources or run --delete-data as part of
this migration. Changing Helm/GitOps/CLI ownership is a separate reviewed step.
Declare the intended topology
A managed stack contains SSO Bridge, Wallet, Control Plane and Tenant Management. Wallet and SSO remain established mandatory components. Declare the manager and enabled Control Plane explicitly; the renderer does not add them to an old topology. This example starts the services without creating organizations:
# Manager-owned tenant creation. This stack starts without organizations.
# Create organizations in the manager UI after deploying all four services.
apiVersion: tsg.dataspac.es/v1alpha2
kind: TsgDeployment
metadata:
name: hosted
spec:
namespace: tsg-hosted
dataspace:
name: example-dataspace
authority:
did: did:web:authority.example.com:tenants:authority
domain: authority.example.com
credentialType: ExampleCredential
admin:
username: platform-admin
email: platform@example.com
require2FA: true
passwordSecret:
name: hosted-admin
key: password
stacks:
- id: hosted
name: Hosted organizations
host: hosted.example.com
# Also supports subdomain routing: tenants.hosted.example.com is the UI.
routing: path
managedTenancy:
# Choose this UUID before first deployment and preserve it afterward.
adminUserId: 11111111-1111-4111-8111-111111111111
components:
controlPlane:
enabled: true
tenantManagement: {}
Choose the administrator UUID before first deployment and preserve it. Replace the example namespace, host and authority details with the intended environment. Keep persistent session/encryption Secrets and the manager's provisioning key.
After upgrading the document version, remove participantSeeds and startup
configuration such as initTenants, iam and initCatalog. Provision this state
through the managed tenant APIs. The renderer names each unsupported setting
instead of ignoring it.
Provision tenant workloads
Create or import organizations through Tenant Management. Read their canonical
UUIDs and service registrations from the manager. Worker configuration must
reference those actual execution owners and already issued OAuth credentials.
Remove the retained data-plane participant field and supply canonical
controlPlane.executionScopes; tenant slugs are insufficient authorization.
Starter tenant choices require explicit slug, name, canonical tenantId
and the managed Control Plane audience. Remove authorizationMode. Browser
clients have explicit shared kind; workloads have workload kind; the manager's
provisioning client has platform kind. No legacy client kind remains.
Strict access-token audience checks are unconditional. Remove
auth.tokenValidationMode and auth.legacyAccessTokenAudiences. There is no
authentication bypass for migration.
Render and review the new bundle before choosing an apply method. Verify the actual manager, SSO, Wallet and Control Plane browser/API flow after deployment, then check a real tenant protocol exchange. Local rendering alone does not prove that the live issuer, audience, credentials or data path are correct.
Wallet initKeys and issueConfigurations remain managed provisioning recipes.
The default recipe generates an EdDSA key separately for each newly provisioned
organization. It creates no tenant at startup. Imported organizations keep their
existing key material. Shared preloaded credentials or holder seeds cannot be
used to create new managed organizations.