How to plan an Ory major version upgrade before you change anything
For a team running Ory Kratos or Ory Hydra in its own infrastructure, a major version upgrade comes down to three things the team owns: migration commands, schema and client changes, and a backup and test plan agreed before production is touched. The current Kratos and Hydra releases are v26.2.0, published on 20 March 2026, so that is the target version a plan should name and pin in the team's own deployment files. Before changing anything, list which of the two services you run, which database each one uses, and which applications call their APIs directly, because those three inventories decide how much of the work applies to you.
Start with the migration tooling and the schema. Ory Kratos v25.4.0 introduced the kratos migrate sql up, down and status commands, replacing the older migration CLI commands, so any runbook that still uses the older commands needs rewriting before the upgrade window. Kratos v26.2.0 adds an identity_id column to identity_credential_identifiers and session_devices and adds missing indices on identity_id, so plan for a schema change on those tables. Run the status command against a restored copy of your database and time it there, and read the Ory Kratos releases notes for every major step between your current version and the target. On the Hydra side, v2.3.0 requires OpenID Connect clients to include redirect_uri and makes deleting consents always return 204, so audit every client registration and any code that expects a different status code.
This section does not cover end-of-life dates or a documented rollback path for either service, so do not infer either one from the release dates above. Confirm both with Ory and on the Ory Hydra releases page before you set a change window. If you also run Ory Keto, Ory Oathkeeper or Ory Polis, confirm their current versions, migration steps and breaking changes separately, because the facts behind this page cover Kratos and Hydra only. DeployOpen plans, tests, backs up and upgrades self-hosted Ory inside the client's infrastructure, so the migration commands, schema checks and client audit above can be run against your own environment and recorded for your change board.
Ory major version upgrade: which releases matter and when they shipped
This table lists the Kratos and Hydra releases that change what an upgrade must address, with the date each shipped and its status as of December 2026. Read the change column as a checklist for your migration plan, and treat the status column as a prompt to check the current release before you commit to a target version. The main takeaway is that Kratos v26.2.0 changes database schema and indexes, and Hydra v2.3.0 tightens OpenID Connect client rules, so both need review.
| Release | Date | What it changes for an upgrade | Status |
|---|---|---|---|
| Kratos v26.2.0 | 20 March 2026 | Adds identity_id to identity_credential_identifiers and session_devices, and adds missing indices on identity_id. Plan a schema migration review. | Latest as of December 2026. End-of-life date not stated in this guide; confirm with Ory and check the Kratos releases page before planning. |
| Hydra v26.2.0 | 20 March 2026 | Changes to confirm in the release notes before you plan the upgrade path. | Latest as of December 2026. End-of-life date not stated in this guide; confirm with Ory. Check the Hydra releases page first. |
| Kratos v25.4.0 | Confirm on the Kratos releases page | Introduced kratos migrate sql up, down and status, replacing the older migration CLI commands. Check any scripts or runbooks that call the older commands. | Older line. End-of-life date not stated in this guide; confirm with Ory before relying on it. |
| Hydra v2.3.0 | 17 January, confirm year on the Hydra releases page | Requires redirect_uri on OpenID Connect clients. Deleting consents always returns 204, so check any code that expects a different response. | Older line. End-of-life date not stated in this guide; confirm with Ory before relying on it. |
Ory major version upgrade steps: migrate status, up and verify
This sequence takes a self-hosted Kratos and Hydra installation to a newer major version with a known migration state, a tested restore point and written checks on the client and consent changes that could break logins. The output is a saved migration status before and after the change, staging and production run logs, and sign-off from the teams that own each relying application. Confirm the upgrade order with Ory before you begin.
Record current versions and read release notes
The platform owner records the exact Kratos and Hydra versions in every environment, including staging, production and any copy kept for testing. The owner then reads every release note between the current version and the target on the Kratos releases page and the Hydra releases page. If the team is on an older line, this includes Hydra v2.3.0, which changes how OpenID Connect clients and consent deletion behave. The documented path does not say whether intermediate majors must be applied in order, so confirm that with Ory before starting. Done means a written version list and a release-note summary signed off by the platform owner and the identity lead.
Check pending migrations with migrate sql status
The Kratos database owner runs
kratos migrate sql statusagainst the production database connection and saves the output with the date and the Kratos version. Kratos moved to thekratos migrate sqlcommands in v25.4.0, which replaced the older migration CLI commands, so older runbooks may name commands that no longer apply. Note which migrations are listed as pending. Hydra's migration status should be checked with the method its release documentation names for the target version. Done means the team holds a saved status output that lists the Kratos migrations to apply.Take a full database backup
The database owner takes a full backup of the Kratos and Hydra databases immediately before the change and labels it as the restore point for this upgrade. The documented path does not describe a rollback procedure, so the team should plan to restore from this backup if the upgrade fails, and should not assume that a migration can be reversed by running the down command. Test the restore on a separate instance before the change window, and record the backup identifier in the change record. Done means the backup completes, a test restore succeeds and the identifier is written down.
Apply migrations to staging, then production
The Kratos database owner runs
kratos migrate sql upon a staging copy of the database first, then confirms that Kratos starts and that a test login succeeds against it. Hydra's migration step is run as its release notes describe for the target version. After staging passes, the same steps run on production during an agreed change window, with the backup from the previous step still in place. Done means the staging run and the production run each produce an output log, the logs are kept with the change record, and a test login works after each run.Confirm Hydra clients and consent handling before cutover
Before traffic moves to the upgraded services, the Hydra owner checks every OpenID Connect client registration and confirms that each one includes redirect_uri, which Hydra v2.3.0 requires. The integration owner also reviews any code that deletes consents, because from v2.3.0 deleting consents always returns a 204 response, so scripts that expect a different status need changes before cutover. Done means a checked list of clients, a tested consent deletion path and sign-off from the team that owns each relying application.
Verify pending migrations and identity_id columns
After the production run, the Kratos owner runs
kratos migrate sql statusagain and confirms that no migrations remain pending. If the upgrade crosses v26.2.0, the owner also checks that the identity_id column is present on identity_credential_identifiers and session_devices and that the indices on identity_id exist, because that release adds them. The new output is compared with the saved status from the second step. Done means the status output shows the expected state, the column and index checks are recorded, and the team signs off before the change record is closed.
Which Ory breaking changes affect existing clients and tooling
These four changes touch the parts of an Ory deployment that other systems depend on: migration scripts, database tables, OIDC client registrations and consent handling. Each one breaks in a different place, so inventory the callers, clients and queries that touch each item before cutover. Confirm the full change list for each version on the releases pages before you set the cutover plan.
Kratos migration commands changed
Kratos v25.4.0 introduced kratos migrate sql up, down and status, which replace the older migration CLI commands. Any CI job, runbook or script that still calls the older migration commands needs to change before the upgrade, or it may fail or apply the wrong step at the wrong time. Search your pipelines and operational docs for the old calls, update them, and rehearse the new sequence against a copy of your production database. Teams that run migrations by hand should write the new commands into their runbooks now.
Kratos adds identity_id columns
Kratos v26.2.0 adds an identity_id column to identity_credential_identifiers and session_devices and adds missing indices on identity_id. Custom SQL, reporting queries, data exports and admin tooling that read those tables need a review against the new column and indices. The index work on large tables is a cost and time driver: confirm with Ory and your DBA how long the change takes on your row counts, what it does to writes while it runs, and whether it fits a maintenance window. Rehearse on a restored copy so the timing reflects your own data.
Hydra clients need redirect_uri
Hydra v2.3.0 requires OpenID Connect clients to include redirect_uri. A client registration that omits it does not meet the new requirement, so a login flow that works today may fail after cutover. Export every client definition from your Hydra instance, flag each OpenID Connect client without a redirect URI, and fix those registrations before cutover. Include clients owned by other teams, scripts that create clients on demand and any test fixtures, since each one can break in the same way.
Hydra consent deletes return 204
In Hydra v2.3.0, deleting consents always returns 204 rather than a response body. Client code or scripts that expect a body after a consent delete will misread the result or fail when they parse it. Find every call to the consent delete endpoint in your admin tooling, user revocation flows and scheduled jobs, then update each one to check the status code instead of parsing a body. Test a revoke action end to end on the new version, including the path where a user withdraws access from an application.
What the identity_id schema change means for your database
Ory Kratos v26.2.0 adds an identity_id column to identity_credential_identifiers and session_devices, and it adds indices on identity_id where they were missing. That changes the shape of the database that holds your identity data, so the upgrade is a schema change to a production store, not only a binary swap. Credential identifiers and session devices sit close to login, so any team that reads these tables directly or restores them from backup has a stake in the change. Kratos supports SQLite, PostgreSQL, MySQL and CockroachDB, and since v25.4.0 schema migrations run through kratos migrate sql up, down and status. Confirm which engine you run first, because the migration command is the same across engines but how your engine handles the change under your own load is what you need to test.
Measure the migration on a copy of production with a representative identity volume before you commit to a change window. Table size is the main driver of how long the migration takes, so record row counts for both tables and run kratos migrate sql status on the copy to confirm the starting state. Then check for custom SQL, reporting jobs, data exports and backup scripts that assume the current table shape. A new column can break a SELECT * mapping, a bulk import or a restore that expects the old layout. Ask Ory whether the migration can run while the service is live or needs downtime, and get the answer in writing. Do not assume either. If the answer is downtime, that decides who must be on the change call and how long your users are affected.
Cost and effort come from three drivers: table size, the number of environments you migrate and rehearse in, and the amount of custom SQL your team owns. Each environment needs its own rehearsal and its own rollback check, so a team with development, staging and several production deployments carries that work several times over. Custom SQL adds review and test time because every query and job has to be checked against the new shape. The one-time work is the rehearsal, the query review and the rollback plan. Recurring work comes with each later upgrade. When you request a quote, ask who runs the rehearsal, who signs off the custom SQL review, what the rollback procedure covers and whether the scope includes a backup and restore test. DeployOpen scopes upgrade work in writing before it starts, so the quote should list each of these items explicitly.
How to plan your Ory major version upgrade by team
The platform team running Kratos and Hydra on its own servers, containers or Kubernetes owns the database, the staging copy and the rollback path. Kratos schema changes run through migrations, so a verified backup and a tested restore come before any production change. Confirm the migration commands for your release line first, because Kratos v25.4.0 replaced the older migration CLI commands with kratos migrate sql up, down and status.
- Database backup: Take a full backup of the Kratos and Hydra databases, record the time and the running versions, and confirm the backup can be read.
- Staging copy: Restore the backup into staging and run the migration there first. Kratos v26.2.0 adds an
identity_idcolumn toidentity_credential_identifiersandsession_devicesand adds indices, so time the migration on data close to production volume. - Migration window: Agree the window with business owners, since login and token issuance can be interrupted during restarts. Confirm downtime expectations for each release with Ory before setting the window.
- Configuration and image pinning: Pin image tags or digests for Kratos, Hydra and any Keto, Oathkeeper or Polis service in your Helm charts, Compose files or manifests, so a rebuild cannot pull a different version without notice.
- Restore procedure: Write the restore steps, run them in staging, and time them. A backup that has never been restored does not count as a rollback plan.
Confirm that the restore test ends with a working login and a successful token request before you approve the production window.
Application teams own the OpenID Connect clients that call Hydra, so they carry most of the code changes. Hydra v2.3.0, released on 17 January, requires clients to include redirect_uri, and deleting consents now always returns 204, so any logic that depends on a different response will break. Each team should work from a written client list that stays current for the whole upgrade.
- Inventory of every client: List each OpenID Connect client with its owner, environment, grant types, registered redirect URIs and whether it deletes consents. Include clients that have not been changed in a long time, since they are the most likely to be forgotten.
- Adding redirect_uri: Confirm each client sends
redirect_uriin its requests and that the value matches a registered redirect URI exactly. Add the parameter where it is missing and test it before cutover. - Consent deletion code: Search the codebase for calls to the consent deletion endpoint and for checks on its response. Update any code that expects a status other than 204 so it handles the new behavior.
- Test login per client: Run one login per client against the staging version, covering sign-in, token issuance and the post-login redirect back to the application.
Confirm that every client on the inventory has a recorded passing test login against the staging version before cutover.
Security and compliance reviewers shape what the upgrade can prove afterward. Their job is to make the change traceable: what changed, which versions ran, who approved the window and what the tests showed. DeployOpen prepares this evidence, but it does not issue audit reports or certifications, and independent auditors and certification bodies make those determinations.
- Change record: Open a change ticket listing each affected service, including any Keto, Oathkeeper or Polis instance, the source and target versions, the migration commands run and the rollback plan.
- Version and date evidence: Keep the release tag or chart version, the image digest and a timestamp for each deployed service in staging and production. Pinned images make this record much easier to produce.
- Test results: File the backup verification, the staging migration output, the restore test and the per-client login results. Record failures and how each one was fixed.
- Window approval: Record who approved the window, who signed off the test results and who holds rollback authority, using named roles and dated sign-off.
- Auditor requests: Ask your auditor which artifacts they expect, such as the change record, the backup logs and the approval trail. Agree that scope before the upgrade starts.
Confirm that every item in the change record has a named owner and an attached piece of evidence before cutover.
Ory rollback: what the documentation does not cover and how to plan it
This guidance does not include a documented rollback procedure for a major Ory upgrade, so the team must not assume one exists. Do not build a change plan around a revert that no source describes. Before the window, ask Ory in writing which rollback paths it supports for each component you run, including Kratos, Hydra, Keto, Oathkeeper and Polis, and for your exact source and target versions. Ask the same question about configuration changes and database state, since a rollback that restores the binary but not the data may not restore service. Record the answer in the change ticket so that the go or no-go decision rests on a written answer from Ory.
Kratos v25.4.0 introduced the kratos migrate sql up, down and status commands, and the down command is the one most teams will find first. Its presence does not establish that it is a safe rollback for your version. Confirm with Ory whether running down is supported from the version you are leaving and which tables it changes. Pay attention to schema changes in newer releases, such as the identity_id column that Kratos v26.2.0 added to identity_credential_identifiers and session_devices, because an older binary may not expect data written after that column existed. Check the Kratos releases on GitHub for the notes on each version you cross. Do not run down in production until Ory has answered in writing and the answer has been tested on a copy.
Your own rollback path is a restore from the pre-upgrade backup. Take a fresh backup of the Kratos and Hydra databases immediately before the production window, and confirm that the backup restores cleanly. Rehearse the full restore on a copy of the environment before the window, and time each step yourself, so the team knows its actual steps without relying on a published figure. Keep the previous service images or binaries in your registry or artifact store and pin them by version or digest, so they can run against the restored data. After the migration, and again after any restore, run the test set: login, multi-factor authentication, account recovery, OpenID Connect token issuance, and consent handling. Record the results in the change record.
The upgrade sequence and where the team can stop or restore
The sequence starts with an inventory of running Ory versions and their release notes, then a status check of pending migrations before anything changes. Restore point A is the database backup, taken before any migration runs. Migrations go up on staging, OpenID Connect clients are fixed (Ory Hydra v2.3.0 requires redirect_uri on every client), and tests run before the window is scheduled. Production gets the same up step, followed by a status check and tests. If tests fail, the team restores from that same backup at restore point B. The Ory documentation consulted for this path does not describe a rollback, so both restore points are the team's own practice and should be rehearsed before the window.
One-way upgrade path with two restore points tied to one backup.
What buyers ask before they hire help for an Ory major version upgrade
What drives the cost of an Ory major version upgrade?
The cost depends on how much of the Ory stack you run, how much data and how many clients it touches, and how much testing you need before cutover. DeployOpen quotes from a written scope and does not publish a price list, so the drivers below are what a quote is built from.
- Number of Ory services in use: Kratos, Hydra, Keto, Oathkeeper and Polis each have their own upgrade steps and configuration.
- Database size and index work: larger identity tables take longer to migrate, and index changes need planning.
- Count of OpenID Connect clients: each client needs its redirect URIs and settings checked against the new version.
- Custom login UI and integrations: your own login pages, webhooks and downstream applications must be retested.
- Number of environments and amount of testing: each environment and each test pass adds work.
Ask for a quote that lists each driver separately, so you can see which work is one-time and which would fall under an ongoing retainer.
How long does an Ory major version upgrade take?
No duration is given here, because timing depends on the same drivers that set cost: the number of services, database size, client count, custom login work, environments and testing. A single service with a staging copy and a clear plan will be scoped very differently from a multi-service production estate with custom integrations, and that difference shows up in the schedule. Ask for a timeline written into the scope, with its milestones, the change window your team needs to provide, and the points where your sign-off is required. A timeline without those dependencies is hard to check against what actually happens.
What does an Ory upgrade need from our own team?
Plan for several kinds of input from your side before any work starts.
- Database access: credentials and a route to the database for backup, migration and verification.
- A change window: an agreed period when the team can take downtime or accept a read-only period.
- Owners for each OpenID Connect client: a named person who confirms redirect URIs, scopes and token behavior.
- Decisions on downtime: whether users see an outage, and for how long your business accepts one.
- Sign-off: named approvers for the test results, the cutover and the rollback plan.
Name these owners in the written scope so the work does not stall while it waits for answers.
Can our own team run an Ory major version upgrade without a partner?
Yes, if your team already has database administration skills and Ory operating experience, because the upgrade steps are documented commands. Kratos v25.4.0 introduced the kratos migrate sql up, down and status commands, which replaced the older migration CLI commands, so the mechanics are rarely the hard part. What stays with your team is confirming end-of-life dates for the versions you run, designing the rollback, and testing every OpenID Connect client against the new behavior. Hydra v2.3.0, for example, requires clients to include redirect_uri, so a client that omits it will fail after the upgrade. Review the release notes for each version you cross before you decide to go alone, starting with the Ory Kratos releases page.
When should we bring in outside help for an Ory upgrade?
Bring in outside help when the risk or the evidence burden is higher than your team can absorb in its normal change process. Common triggers include:
- No staging environment: you have no safe place to rehearse the migration against a copy of production data.
- Custom schema dependencies: your own tables, views or queries depend on database structures the upgrade changes. Kratos v26.2.0, for example, adds an identity_id column to identity_credential_identifiers and session_devices.
- Compliance evidence needs: an assessor will ask for records of testing, change approval and rollback.
- A first major upgrade: nobody on the team has run one before.
DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports or certifications, so your auditor still makes that call.
Does an Ory upgrade scope cover Keto, Oathkeeper and Polis?
It can, but the specifics must be confirmed for each product before you rely on the scope. Keto, Oathkeeper and Polis each have their own release line, configuration and data, so their upgrade steps and breaking changes need checking against each project's release notes. Keto is a permission server based on Google's Zanzibar approach, Oathkeeper is an identity and access proxy, and Polis provides SAML and OIDC single sign-on with SCIM directory sync, so each one touches a different part of your estate. DeployOpen can scope these products in writing, and the scope should name the versions involved, the data stores each one uses and the tests for each.
How DeployOpen plans and runs Ory major version upgrades
DeployOpen plans Ory major version upgrades inside your own infrastructure, including your cloud accounts, data centers or air-gapped networks. Most engagements are fixed-scope, so the versions, breaking changes to review and deliverables are agreed in writing before work starts. Work covers testing, migration, rollback planning and documentation, with ongoing support available as a retainer.
How we scope
- The written scope lists the Ory components in use and the current and target versions.
- Breaking changes are mapped to your configuration, identity schemas and OAuth clients during scoping.
- Deliverables, timelines and exclusions are agreed in writing before work starts, with a quote following from that scope.
How we build
- Staging copies of the Kratos and Hydra databases are upgraded first, so migration steps run against your data.
- Kratos migrations use the
kratos migrate sql up,downandstatuscommands introduced in v25.4.0, so each step is checked before cutover. - Test cases cover login, MFA, OAuth2 redirects and consent, including the redirect_uri requirement added in Hydra v2.3.0.
How we hand over
- Documentation covers the target configuration, the migration runbook, the rollback procedure and the tests that were run.
- Rollback steps are rehearsed against a restored backup, so your team knows how to return to the prior version.
- Your team receives a walkthrough of the upgraded deployment, including SSO settings and access controls.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- Confirm with Ory which release lines and end-of-life dates apply to your version before you set the upgrade window.
- Ask Ory which patch and support terms apply to your edition before you commit to an upgrade window.

