Path: redb-identity/UPGRADING.md Snapshot: redb-identity, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb-identity Page: https://redbase.app/src/dev-2026-12-06/redb-identity/UPGRADING.md ---- # Upgrading redb.Identity What to check and change when moving to a new version. Each section lists the changes that need action; [CHANGELOG.md](CHANGELOG.md) has the full list of what changed. ## 4.8.0 ### .NET 10 and .NET 11 only The redb.Identity packages target `net10.0` and `net11.0`. The `net8.0` and `net9.0` builds are gone: .NET 8 and .NET 9 reached end of support on 10 November 2026. The Docker images, the archives, the Tsak modules and `redb.Identity.Web` run on .NET 10 as before. Action: an application that hosts or calls redb.Identity on .NET 8 or .NET 9 either stays on 4.7.x or moves its target framework to `net10.0` (or `net11.0`) before taking this version. Nothing changes in the API or the configuration. ### Group names are unique A group name is now unique across the whole group tree. Names are compared without surrounding whitespace, letter case or Unicode form, so `Admins`, `admins` and ` ADMINS ` are one name. The name keeps the spelling it was given; the comparison key is stored next to it. Creating a group, a child group or a SCIM group with a name that another group already has, and renaming a group to such a name, is refused with `409` (`scimType: "uniqueness"` on SCIM). The `displayName eq` filter of SCIM `/Groups` now compares the same way. LDAP group sync maps a group CN onto the existing group of that name in any case instead of creating a second one. Existing groups get their key at the first start of this version, oldest first. A group whose name another, older group already has keeps working without a key, and every start logs an error that names both groups by id and name. What to do: 1. Before or after the upgrade, list the groups that share a name. On PostgreSQL: ```sql SELECT o._id, o._name, o._date_create FROM _objects o JOIN _schemes s ON s._id = o._id_scheme WHERE s._name = 'redb.Identity.Core.Models.GroupProps' AND lower(btrim(o._name)) IN ( SELECT lower(btrim(o2._name)) FROM _objects o2 JOIN _schemes s2 ON s2._id = o2._id_scheme WHERE s2._name = 'redb.Identity.Core.Models.GroupProps' GROUP BY lower(btrim(o2._name)) HAVING count(*) > 1) ORDER BY lower(btrim(o._name)), o._id; ``` On SQL Server use `lower(ltrim(rtrim(o._name)))` in place of `lower(btrim(o._name))`; on SQLite `lower(trim(o._name))`. These compare case and whitespace only; a pair that differs only in Unicode form shows up in the start log. 2. For every pair, rename or remove all but one group (`PUT /api/v1/identity/groups/{id}` or the admin console). Remember that the `groups` claim and `ScopeRequiredGroups` name a group by its name: check which of the two your scope gates and token consumers mean before you rename. 3. Restart. The renamed groups get their key; the start log has no group-name errors left. ### Own host: one start call A process that runs Identity without a Tsak worker starts it with one call. The older entry point `redb.Identity.Core.InitRoute` is removed, and the modules no longer read options the host registered in its own container: `AddRedbIdentityServer(...)` on the host's services, or `IdentityTransportOptions`, `IdentityGrpcTransportOptions` and `IdentitySoapTransportOptions` configured there. Every module reads the `Identity` and `IdentityTransport` configuration sections, in an own host as in a worker. A host container that still registers `AddRedbIdentityServer` is refused at start with a message that says so. Replace the hand-built route context with: ```csharp services.AddLogging(); services.AddSingleton(configuration); services.AddRedb...(...); // your redb provider, as before services.AddRedbIdentityHost(); // HTTP server manager and direct-vm registry await using var provider = services.BuildServiceProvider(); await using var identity = await RedbIdentityHost.StartAsync(provider, configuration, redb.Identity.Http.InitRoute.main); ``` with the settings moved into the configuration: ```json { "Identity": { "Issuer": "https://id.example.com/", "UsePropsSigningKeyStore": true }, "IdentityTransport": { "Http": { "PublicPort": 5002 } } } ``` `StartAsync` fails before anything listens when logging or `AddRedbIdentityHost()` is missing, when `Identity:Issuer` is missing or not an absolute URI, when neither `Identity:UsePropsSigningKeyStore` nor `Identity:AllowEphemeralKeys` is set, or when a facade is given without the `IdentityTransport` section. Dispose the returned host to stop it. A deployment in a Tsak worker needs no change. ### Audit targets go through the outbox The external audit targets of `Identity:Audit:Targets` are no longer sent from the events route but through the delivery outbox (`identity_delivery_outbox`, created at start), by the same worker as webhooks, with retries. What to check: 1. Give every enabled target a `Name`, unique among the enabled ones, at most 200 characters. The start stops with a message naming `Identity:Audit:Targets:N:Name` when one is missing or taken twice. 2. Delivery is at least once and unordered: after a failure the event is sent again, and two events may arrive in either order. Consumers that must not see one event twice deduplicate by `eventId` (body) or `event_id` (header); an SQL target does it with a unique key on `event_id`, which then refuses the repeat. 3. Retries are per target: `TimeoutMs` (default 10000), `MaxAttempts` (default 10), `RetryBackoffMs` (default 1000, doubling, at most 60 s). Set them on the targets whose consumer is slow or often down. 4. Events arrive a few seconds later than before: the worker polls every `Identity:Delivery:PollInterval` (default 2 s). The body and the headers a target receives are unchanged. ### Admin TOTP confirm sends the setup token Confirming a TOTP enrollment through the management API failed with `400 invalid_request "Missing setup_token"` since the setup token was introduced: neither `POST /api/v1/identity/mfa/totp/confirm` nor `IdentityClient.ConfirmUserTotpAsync` passed it. The request now carries it, and the client method takes it. Before: ```csharp var setup = await client.SetupUserTotpAsync(userId, username); await client.ConfirmUserTotpAsync(userId, code); ``` After: ```csharp var setup = await client.SetupUserTotpAsync(userId, username); await client.ConfirmUserTotpAsync(userId, code, setup.GetProperty("setup_token").GetString()!); ``` Action: pass the `setup_token` of the setup answer to `ConfirmUserTotpAsync`, or add `"setupToken"` to the body of `POST /api/v1/identity/mfa/totp/confirm`. A confirm without it is refused with `400` (`setupToken is required.`). ### E-mail MFA enrollment sends the code E-mail MFA could not be enrolled: setup sent nothing to the address, and confirm needed a code that only a sign-in challenge to an already confirmed address produced. Setup now sends the one-time code to the new address and answers with `mfa_state` next to `setup_token`; confirm takes the code with both. This applies to the admin endpoints (`POST /api/v1/identity/mfa/email/setup` and `/email/confirm`) and to self-service (`POST /api/v1/identity/me/mfa/setup` and `/confirm` with `"method": "email"`). The code goes out through the e-mail channel: the SMTP channel when `Smtp.Enabled` is on, or an `IEmailNotificationChannel` the host registers. Without one, setup answers `501 no_channel`. A second code inside `OtpCooldown` answers `429 rate_limited`, a failed delivery `502 delivery_failed`. Before: ```csharp var setup = await client.SetupUserEmailAsync(userId, username, address); await client.ConfirmUserEmailAsync(userId, code, mfaState); ``` After: ```csharp var setup = await client.SetupUserEmailAsync(userId, username, address); // the code is now e-mailed to address await client.ConfirmUserEmailAsync(userId, code, setup.GetProperty("mfa_state").GetString()!, setup.GetProperty("setup_token").GetString()!); ``` Action: pass `mfa_state` and `setup_token` of the setup answer to `ConfirmUserEmailAsync`, or add `"mfaState"` and `"setupToken"` to the body of `POST /api/v1/identity/mfa/email/confirm` (self-service: `mfa_state` and `setup_token`). A confirm without the setup token is refused with `400` (`setupToken is required.`). Make sure the e-mail channel is configured where e-mail MFA is offered. ### The client needs the authority `redb.Identity.Client` used to build every protocol address from `BaseUrl`: `/connect/token`, `/connect/introspect`, `/connect/revocation`, `/connect/userinfo`, `/.well-known/openid-configuration` and `/.well-known/jwks`. With the management API on a port of its own (`IdentityTransport:Http:ManagementPort`) none of them is there, and each answered `404`. The client now follows one rule: `BaseUrl` is the address of the management API, `Authority` is the issuer, and every protocol address comes from the discovery document at `{Authority}/.well-known/openid-configuration`. The two may be the same address. This covers `AddIdentityClient` (`IdentityClientOptions`: `ClientCredentialsAccessTokenProvider`, `RequestTokenAsync`, `IntrospectTokenAsync`, `RevokeOAuthTokenAsync`, `GetUserInfoAsync`, `GetDiscoveryDocumentAsync`, `GetJwksAsync`) and `AddBackchannelIdentityClient` (`BackchannelIdentityClientOptions`). `Authority` has no default. A host that does not set it fails at start with an `OptionsValidationException`: `IdentityClientOptions.Authority is required: set it to the issuer of the Identity server ...` (or `BackchannelIdentityClientOptions.Authority ...`). The discovery document is read at the first use, not at start, and kept for the life of the client. If the server cannot be reached then, that call fails as a call to an unreachable server did before, and the next one reads the document again; the host keeps running. Action: set `Authority` to the issuer, the value of the server's `Identity:Issuer`. ```csharp services.AddIdentityClient(o => { o.BaseUrl = new Uri("https://id.example.org"); o.Authority = new Uri("https://id.example.org"); // new, required o.ClientId = "my-service"; o.ClientSecret = secret; o.Scopes = ["identity:manage"]; }); services.AddClientCredentialsTokenProvider(); services.AddBackchannelIdentityClient(o => { o.BaseUrl = new Uri("https://id.example.org"); o.Authority = new Uri("https://id.example.org"); // new, required o.ClientId = "identity-backchannel"; o.ClientSecret = secret; }); ``` The console of the `full` and `web` images sets both from `Identity:Authority`, which it already requires; nothing to do there. ### The client asks for identity:manage by default `IdentityClientOptions.Scopes` defaulted to `identity.admin`. The server has no such scope: a client credentials request that kept the default was answered `400 invalid_scope`, so no working setup relied on it. The default is now `identity:manage`, the scope `BackchannelIdentityClientOptions` already asks for. `identity:manage` is the master management scope: a token that holds it passes every management endpoint, reads and changes alike. A client that sets no scopes now receives such a token when its service account is allowed to request `identity:manage`, and still gets `invalid_scope` when it is not. Action: none for a client that sets `Scopes`. A client that relied on the default and needs less sets a narrower scope, for example `o.Scopes = ["identity:read"]` for read-only access or a resource scope such as `identity:users:read`; the full list is `IdentityScopes` in `redb.Identity.Contracts` and the server's `scopes_supported`. ### Back-channel logout addresses must be public https Not affected: relying parties whose `backchannel_logout_uri` is an `https` address on the public internet, and clients without a back-channel logout URI. Affected: a relying party reached on an internal network (a container network name, a private subnet, `localhost`) or over plain HTTP. From 4.8.0 the server checks every `backchannel_logout_uri` by default, with the same outbound rules as client keys and request objects: when it is registered through the management API or dynamic registration (refused with `validation_error` or `invalid_client_metadata`), and before every logout notification, also for clients registered by an earlier version. A refused notification is skipped and logged once per relying party and logout as `Backchannel logout to {client_id} refused: {reason}.`; the user's logout completes as before. Action, when such relying parties are expected: set the options for the cases you have, on every node. ```json "Identity": { "BackchannelLogout": { "AllowPrivateNetworkTargets": true, "RequireHttps": false } } ``` With dynamic registration open (no `Identity:DynamicRegistrationInitialAccessToken`), allowing private targets lets any registrant choose such an address; set an initial access token in that case. 4.7.8 has the same two options with open defaults (`RequireHttps=false`, `AllowPrivateNetworkTargets=true`); a deployment that set them there keeps its behaviour, and 4.8.0 makes the strict values the defaults. ### request_uri needs registered addresses Not affected: a server with JAR off (`Features.EnableJar=false`, the default), clients that send the request object inline as `request`, and PAR (`urn:ietf:params:oauth:request_uri:` values). Nothing changes for them. Affected: a server with JAR on whose clients pass the request object by reference, as `request_uri`. From 4.8.0 the address is fetched only when it equals one of the client's registered `request_uris` (OIDC Dynamic Client Registration 1.0 ยง2), compared exactly: the whole value, query and fragment included. Any other address is answered `invalid_request_uri` and is never contacted. Discovery publishes `require_request_uri_registration: true`. Action, either of the two: 1. Register each client's addresses before or right after the upgrade, through the management API, the console (application, Protocol tab, "Request URIs") or, for a client that registered itself, its RFC 7592 update: ```http PUT /api/v1/identity/applications/{id} Content-Type: application/json { "requestUris": ["https://client.example.com/requests/authorize.jwt"] } ``` 2. Or move with `Identity:Jar:RequireRequestUriRegistration=false`. A client without registered addresses then keeps working as before, and every such request is logged as a warning naming its `client_id`. Register the clients the log names, then remove the setting. A client that has registered addresses is held to them either way. ### Webhook deliveries go through the outbox Webhook deliveries are no longer sent from memory but written to `identity_delivery_outbox` (created at start) and sent by the delivery worker, so they survive a restart. No setting has to change; the `Identity:Delivery` section tunes the worker, and its defaults are listed in the README, "Webhook delivery". What a receiver sees: 1. A delivery may arrive more than once: every attempt of one delivery carries the same `X-RedbIdentity-Delivery` id, and the body carries the event's `eventId`. Deduplicate by either. 2. Two events may arrive in either order. Order by the event's `timestamp`, not by arrival. 3. Events arrive up to `Identity:Delivery:PollInterval` (default 2 s) later than before. 4. At most `Identity:Delivery:MaxParallelPerDestination` (default 2) deliveries to one subscriber are in flight at once, and a delivery to a subscription that was deleted or disabled in the meantime is not sent. ### Bounded client key cache The fetched key sets of `jwks_uri` addresses are now kept for at most `Identity:ClientKeys:MaxCachedKeySets` addresses (default 256; before, there was no bound). An address dropped from the cache is fetched again when it is needed next. Raise the value only when more than 256 clients authenticate with keys at their `jwks_uri`. ### A jwks_uri registered through dynamic registration before 4.8.0 Before 4.8.0, dynamic registration did not store a `jwks_uri`: 4.7.7 and earlier echoed it in the answer, 4.7.8 leaves it out. From 4.8.0 it is stored and used: the keys at a `private_key_jwt` client's `jwks_uri` verify its client assertions. Action: a client that registered a `jwks_uri` before 4.8.0 and wants to use it sends it again in a registration update (`PUT /connect/register/{client_id}` with its registration access token). A request that carries both `jwks` and `jwks_uri` is refused with `invalid_client_metadata`. ## 4.7.5 ### Idempotency records keep no secrets An answer that carries a secret shown once is no longer kept in the `Idempotency-Key` cache: webhook create and rotate-secret, client secret rotation, MFA enrollment and recovery codes. A repeat with the same key is not carried out again and answers `{"replayed":true,"secretWithheld":true,...}` with the status of the first answer. A client that lost the first answer rotates the secret again. Dynamic client registration (`/connect/register`) no longer takes part in the cache: a repeated registration registers another client. Records stored by an earlier version keep the full answer, secret included, and earlier versions never deleted expired records. After the upgrade the cleanup (`identity-idempotency-cleanup`, hourly) deletes every expired record at its first run. A record still inside its time to live (`Identity:Idempotency:Ttl`, 24 hours by default) that was stored with a secret replays it to a repeat with its key until it expires, and goes at the next run after. Action: none is required. To have the records of these operations gone at once, delete them right after the upgrade; a repeat of such a request in the following 24 hours then runs the operation again. The same statements work on PostgreSQL, SQL Server and SQLite (in `sqlcmd`, run `SET QUOTED_IDENTIFIER ON;` first): ```sql DELETE FROM _values WHERE _id_object IN ( SELECT o._id FROM _objects o JOIN _schemes s ON s._id = o._id_scheme WHERE s._name = 'redb.Identity.Core.Models.IdempotencyRecordProps' AND (o._name LIKE 'idem:manage-webhooks:%' OR o._name LIKE 'idem:manage-apps:%' OR o._name LIKE 'idem:mfa-manage:%' OR o._name LIKE 'idem:dynamic-register:%')); DELETE FROM _objects WHERE _id_scheme = (SELECT _id FROM _schemes WHERE _name = 'redb.Identity.Core.Models.IdempotencyRecordProps') AND (_name LIKE 'idem:manage-webhooks:%' OR _name LIKE 'idem:manage-apps:%' OR _name LIKE 'idem:mfa-manage:%' OR _name LIKE 'idem:dynamic-register:%'); ``` Nothing else changes: the other records keep replaying whole. ## 4.7.4 ### Dynamic client registration: check the initial access token A `DynamicRegistrationInitialAccessToken` that is empty or whitespace now counts as not configured: registration is open and an anonymous registrant is refused the administrative scopes. Decide which of the two you want and set it explicitly. With the images, environment variables do it without rebuilding: - registration off: Tsak__Contexts__identity.core__Override__Identity__Features__EnableDynamicRegistration=false Tsak__Contexts__identity.http__Override__IdentityTransport__Features__EnableDynamicRegistration=false - registration only with a token the deployment issued (a long random value): Tsak__Contexts__identity.core__Override__Identity__DynamicRegistrationInitialAccessToken= Then review the registered applications for `client_credentials` clients nobody created on purpose. ### Image defaults from 4.7.4 The images and archives start with dynamic client registration off. To turn it on, set both switches and give it an initial access token (a long random value), so that registration is not open: Tsak__Contexts__identity.core__Override__Identity__Features__EnableDynamicRegistration=true Tsak__Contexts__identity.http__Override__IdentityTransport__Features__EnableDynamicRegistration=true Tsak__Contexts__identity.core__Override__Identity__DynamicRegistrationInitialAccessToken= A JAR `request_uri` is fetched only over https and not from private network addresses. For a client that hosts its request objects over http or on a private address: Tsak__Contexts__identity.core__Override__Identity__Jar__RequestUriAllowPrivateNetworkTargets=true Tsak__Contexts__identity.core__Override__Identity__Jar__RequestUriRequireHttps=false ## 4.6.2 ### DPoP-bound access tokens at userinfo and the management API This applies only when DPoP is enabled (`Dpop.Enabled = true`; it is off by default). Security fix, see [GHSA-vmj2-8phj-mfxf](https://github.com/redbase-app/redb-identity/security/advisories/GHSA-vmj2-8phj-mfxf). An access token bound to a DPoP key (its `cnf` claim holds `jkt`, RFC 9449) is now accepted at `/connect/userinfo` and at the management and self-service API (`/api/v1/identity/...`, SCIM) only when the request carries: - `Authorization: DPoP `, not `Bearer`; - a `DPoP` header with a fresh proof signed by the bound key, whose `htm` and `htu` match the request and whose `ath` is the base64url SHA-256 of the access token, inside the `Dpop.IatToleranceSeconds` window, never reused. Otherwise the answer is 401 `invalid_token` with `WWW-Authenticate: DPoP error="invalid_token", ...`. An access token without `jkt` sent under the `DPoP` scheme is refused the same way. Plain Bearer tokens and certificate-bound tokens (`x5t#S256`) work as before. What to do: 1. Clients that obtain DPoP-bound tokens and call userinfo or the management API: send the `DPoP` scheme and a proof with `ath` on every such call. Clients that already do this need no change. 2. The gRPC and SOAP management surfaces cannot carry a DPoP proof, so a DPoP-bound token is refused there. Use a Bearer token (a token request without a `DPoP` header) for those calls, or call the HTTP management API. 3. `Dpop.RequireNonce` still applies to the token endpoint only. ## 4.5.0 ### Role scopes only when the client asks for them A scope attached to a role is no longer added to the user's tokens on its own. A token carries the scopes the client requested, which OpenIddict checks against the client's `scp:` permissions; for a scope that `AdminScopeEntitlement` gates (`identity:*`, `scim`, and whatever `GatedScopes` lists) the user's roles then decide whether it stays. The role is the entitlement, the request is still needed. Up to 4.4.2 every scope of the user's roles went into every token of that user, for any client and without the client's permission being checked. An administrator signing in to any application handed it a token with `identity:manage` and Identity's own audience, which the management API accepted. Who notices: a client that relied on receiving a role's scope without asking for it. Add the scope to the client's request (`scope=` of the authorization or token request) and make sure the client has the `scp:` permission for it. The Identity Web console, the `redb-identity-app` template and the Tsak dashboard are not affected: the first two request their scopes explicitly, the dashboard does not sign in through Identity. Tokens issued before the upgrade keep their scopes until they expire; a refresh issues the new set. A scope that only a role should open, for example an application's administrative scope, must be listed in `Identity:AdminScopeEntitlement:GatedScopes`; otherwise the client's permission alone decides, for every user. ## 4.4 ### OpenIddict 7 redb.Identity runs on OpenIddict 7.7 (was 6.3), with Microsoft.Extensions and ASP.NET Core 10.0.13, Microsoft.IdentityModel 8.23.0 and DataProtection 10.0.13 on every target framework. **Existing sessions survive the upgrade.** Access and refresh tokens issued by 6.3 keep validating: their JWT `typ` header is unchanged, and stored token rows keep their short type (`refresh_token`), which OpenIddict 7 maps on read. New rows store the URI form (`urn:ietf:params:oauth:token-type:refresh_token`); the token management API filter accepts either spelling and matches both. A tool of your own that reads the token store directly has to accept both. **Token exchange (RFC 8693)** runs on OpenIddict's built-in grant. Subject, actor and requested token types stay limited to access tokens. When the subject (or actor) token is bound to both audiences and a presenter, the calling client must be one of them: a token minted for client A can no longer be exchanged by an unrelated client B. A subject or actor token of a disabled or deleted user is rejected with `invalid_grant`. The response carries `issued_token_type`. An `audience` parameter is validated by OpenIddict and rejected unless registered. Check that the clients which exchange tokens are the ones the tokens were issued to. ### Client assertions (private_key_jwt, client_secret_jwt) OpenIddict 7 implements the client assertion rules of draft-ietf-oauth-rfc7523bis, which close a vulnerability of `private_key_jwt`, and offers no way back. A client that authenticates with a JWT assertion must now send: - `typ` header `client-authentication+jwt` (a plain `JWT` is rejected with `invalid_client`, "The specified token is not of the expected type"); - `aud` equal to the issuer (`issuer` of the discovery document), for every endpoint: the token endpoint URL, or the URL of the introspection or revocation endpoint, is no longer accepted. Clients built on OpenIddict 7 do this already. Update the others before upgrading the server; clients that use `client_secret_basic` or `client_secret_post` are not affected. ### DPoP-bound access tokens at third-party resource servers DPoP-bound access tokens carry `cnf.jkt` (RFC 9449). OpenIddict 7's own validation checks `cnf` and knows only the certificate-bound form (`x5t#S256`, RFC 8705): it fails with an internal error (ID2196) on a `jkt`. Identity itself handles this; a resource server of your own that validates Identity's tokens with OpenIddict.Validation 7 needs the same treatment (set `DisableProofOfPossessionValidation` for tokens whose `cnf` holds only `jkt`, and check the DPoP proof itself, for example with `redb.Identity.Resource.Dpop`). ### resource parameter `resource` (RFC 8707) is validated on `/connect/authorize`, `/connect/par` and token exchange; OpenIddict 6 ignored it. A `resource` must be an absolute URI without a fragment, must be listed in the `Resources` of at least one scope (`invalid_target` otherwise), and the client needs the `rsrc:` permission. Before upgrading, list in the scopes every resource your clients send, and grant those clients the matching `rsrc:` permission; a client that sends no `resource` is not affected. ### DataProtection key ring **What was wrong.** Up to 4.3 the server's DataProtection key ring was meant to live in redb (`DataProtectionKeyProps`) but did not: the repository was registered in DI only, and ASP.NET Core ignored it and kept the ring in the default directory of the process user (`/root/.aspnet/DataProtection-Keys` in the Docker images, `%LOCALAPPDATA%\ASP.NET\DataProtection-Keys` on Windows). Everything Identity protects with that ring, the signing and encryption keys of tokens in redb, TOTP secrets, client secrets of federation providers, session and federation state cookies, depended on that directory. A container recreated without it could not decrypt its signing keys and the server did not start (`failed to decrypt signing key`, then `At least one encryption key must be registered`). Each node of a cluster had a ring of its own. **What 4.4 does.** The ring lives in redb. The first start of 4.4 on a database records the moment the ring moved (redb scheme `identity.dp_key_import`). On every start, before the first request, Identity imports into redb the keys of the old file ring that were created before that moment and that redb does not hold yet: the default directory above, plus `Identity:DataProtection:ImportKeysFromPath` when the old ring was somewhere else. The log shows a warning with the number of keys and the directory. Keys already in redb are skipped, so the next start imports nothing; the files are left in place and are no longer read or written. Encrypted keys are copied as they are and stay encrypted. The import reads only a ring that still exists when 4.4 starts. If the 4.3 ring lived only inside the container (no volume on `/root/.aspnet/DataProtection-Keys`), copy it out before the container is replaced (`docker cp :/root/.aspnet/DataProtection-Keys ./dp-keys-4.3`), mount the copy into the 4.4 container and point `Identity:DataProtection:ImportKeysFromPath` at it for the first start. After the move the Identity server needs no file ring; the `managed` and `full` compose files keep a named volume `dp_keys` there for the Tsak worker and dashboard. Keys of those programs present before the move are imported too and are unused; later ones are not. **Clusters.** Nodes that each kept their own file ring each add theirs on their first start of 4.4 (their keys predate the move): the ring in redb becomes the union, every node reads every node's data, and new keys are shared from then on. Two nodes importing the same key at once leave two rows for it, which is handled (one key per id is loaded). Data a node protected before 4.4 stays readable only if that node starts 4.4 with its old ring present. **If a container was already recreated without the old ring.** The keys are gone and the data protected with them cannot be decrypted. Recover as follows: 1. Stop the server. Delete the objects of the redb scheme `redb.Identity.Core.Models.SigningKeyProps` (alias `identity.signing_key`). On the next start Identity creates new signing and encryption keys. Every issued token becomes invalid: users sign in again, clients request new tokens. (With the server running, `POST /api/v1/identity/signing-keys/rotate` replaces keys, but a server that cannot decrypt any key does not start.) 2. Users with TOTP cannot pass the TOTP check: an administrator removes it with `DELETE /api/v1/identity/mfa/totp/{userId}` and the user enrols again. Recovery codes, WebAuthn and SMS or e-mail codes are not affected. 3. Enter the client secrets of federation providers again (management API, federation providers).