# Cryptographic agility for SaaS teams: how to change an algorithm without locking out customers

> Change a SaaS token-signing algorithm in stages. Map tenant verifiers, introduce versioned profiles, preserve valid sessions and retire old keys.

Published: 2026-12-03 · Topic: Software engineering · Canonical HTML: https://titanward.eu/blog/cryptographic-agility-for-saas-teams

Imagine moving a customer’s Monday-morning login traffic to a new signing algorithm. The customer’s web application accepts the new session. Five minutes later a scheduled invoice export fails because the customer’s reporting connector validates the same access tokens with an older library. Both systems appeared under a single “supports SSO” tick on the account record.

That missed connector tells you what to design for. A migration changes a particular algorithm. Cryptographic agility is the ability to make the *next* change using known owners, supported libraries, explicit policy and a rollout you have already exercised. NIST discusses that capability across software, protocols, hardware and operations. [NIST’s updated crypto-agility guidance](https://nvlpubs.nist.gov/nistpubs/CSWP/NIST.CSWP.39-upd1.pdf)

## Give each tenant a signing profile you can identify

Consider an illustrative SaaS platform moving its signed access tokens from RS256 to ES256. Both are conventional signature schemes that would be vulnerable to a sufficiently capable quantum computer. This rehearsal tests whether customers can change verifiers safely. A post-quantum rollout needs a signature scheme and token format supported by the issuer and every receiving system. Have your identity provider or maintained token library perform the cryptography. [NIST transition guidance](https://csrc.nist.gov/pubs/ir/8547/final)

Name the current policy `access-v1` and the replacement `access-v2` in your configuration. Give the new managed signing key its own key identifier. For each profile record the expected issuer, audience, allowed algorithm, key reference, token lifetime and tenants allowed to use it. A profile identifies application policy. A key identifier selects a candidate key within an already trusted issuer’s configured set.

Bind verification to the tenant and business operation first. A token’s claimed algorithm or key identifier cannot grant permission to use a different issuer, tenant or algorithm. Have the library enforce the approved algorithm for that key and validate the signature, issuer, audience and expiry. The IETF’s JWT best practices explain why the application needs to specify acceptable algorithms. [RFC 8725, sections 3.1 and 3.8–3.9](https://datatracker.ietf.org/doc/html/rfc8725#section-3.1)

## Teach the readers before changing the writer

Start with a willing tenant. List its front end, API gateway, reporting connector and background workers. Give each owner test tokens for both profiles and publish the new verification key through the established trusted channel. Confirm each verifier has refreshed its cache. A representative integration should accept valid tokens under each approved profile and reject expired tokens or tokens belonging to another tenant.

During this limited dual-read period the issuer keeps signing with the old profile. Once every reader in the pilot has passed, switch new issuance for that tenant to the new profile. Other tenants keep their own schedules. This order has a useful precedent in Google Tink’s rotation model, where readers receive a new key before the system makes it primary. [Google Tink keysets](https://developers.google.com/tink/design/keysets)

## Retire the old profile with evidence

Watch verification failures by tenant, connector and profile version. Keep raw tokens out of telemetry. If the invoice export fails, pause expansion, identify its verifier version and use the rehearsed issuance rollback while verifiers still accept both approved profiles. Record when the last old token was issued. Retire its verification path after the full validity window and permitted clock skew, with the connector owner’s confirmation. Suspected key compromise needs the incident revocation procedure immediately.

Keep that tenant’s compatibility record and retirement evidence as the template for the next change. For help scoping the customer dependencies in your own rollout, speak with [Titanward’s enterprise team](https://titanward.eu/enterprise).

---

Operated by Very - Fast Ltd. (Вери - Фаст ЕООД) (https://titanward.eu). Zero-secret inquiries: https://titanward.eu/contact
