---
title: "JSON Web Keys (JWK): Rotating Cryptographic Keys at Zalando"
description: "Zalando's OIDC identity provider rotates its JWT signing keys automatically on a schedule, using a phased process so clients are never disrupted."
url: "https://swe.quest/articles/json-web-keys-jwk-rotating-cryptographic-keys-at-zalando-70034281fe17c9eb"
canonical: "https://engineering.zalando.com/posts/2025/01/automated-json-web-key-rotation.html"
source: "Zalando Engineering"
published: "2025-01-20"
difficulty: "medium"
kind: "Deep dive"
reading_minutes: 4
tags: ["identity-auth","cryptography"]
---

# JSON Web Keys (JWK): Rotating Cryptographic Keys at Zalando

A post on [Zalando Engineering](https://swe.quest/sources/zalando.md), published 2025-01-20, 4 min read, Deep dive. Original: [https://engineering.zalando.com/posts/2025/01/automated-json-web-key-rotation.html](https://engineering.zalando.com/posts/2025/01/automated-json-web-key-rotation.html)

## Summary

Zalando's OIDC identity provider rotates its JWT signing keys automatically on a schedule, using a phased process so clients are never disrupted. A new key pair is generated and its public key is published on the JWK endpoint, with a grace period so clients can refresh cached key sets. The new key is then promoted to active signer, while the retired key stays published until every token it signed has expired. Removal time is computed as retirement time plus maximum token lifetime plus a safety margin, using the key ID embedded in each JWT.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)
- [Cryptography](https://swe.quest/tags/cryptography.md) (Security)

## Prerequisites

- JSON Web Tokens
- OpenID Connect basics
- public-key signatures

## Keywords

JWK, JWT, OpenID Connect, JOSE, RFC 7517, Zalando

## Related posts

- [Introducing JWT Signing Keys](https://swe.quest/articles/introducing-jwt-signing-keys-979b097fede857fb.md): Supabase · 2025-07-14 · Medium · 5 min read · Identity & auth, Cryptography, PostgreSQL
  Supabase Auth now supports asymmetric JWT signing keys (RSA or elliptic curve), letting apps verify tokens locally using public keys published at a JWKS endpoint instead of calling the Auth server or sharing a forgeable secret.
- [WTF Are JWTs?](https://swe.quest/articles/wtf-are-jwts-d314ec0dbdbc99c8.md): Neon · 2024-11-29 · Medium · 9 min read · Identity & auth, PostgreSQL, Cryptography, Multi-tenancy
  JSON Web Tokens are compact, signed, self-contained tokens made of three base64url segments (header, payload of registered and custom claims, and an HMAC or RSA signature).
- [Deploying key transparency at WhatsApp](https://swe.quest/articles/deploying-key-transparency-at-whatsapp-0e23deb403e7d86e.md): Meta Engineering · 2023-04-13 · Medium · 9 min read · Cryptography, Communications, Rust, Security
  WhatsApp now automatically verifies end-to-end encryption keys using key transparency: the server maintains an append-only Auditable Key Directory (AKD) mapping accounts to public keys, and every change emits a privacy-preserving audit proof to public storage that anyone can verify.
- [Key Transparency Comes to Messenger](https://swe.quest/articles/key-transparency-comes-to-messenger-708dc659c9b4f0af.md): Meta Engineering · 2025-11-20 · Easy · 3 min read · Cryptography, Communications, Security
  Messenger now supports key transparency verification for end-to-end encrypted one-on-one chats, letting users automatically confirm that contacts' public keys haven't been swapped by a compromised server instead of comparing per-device keys manually.
- [How we built Render OIDC](https://swe.quest/articles/how-we-built-render-oidc-6877047536231241.md): Render · 2026-11-06 · Medium · 9 min read · Identity & auth, Containers, Cloud platforms, Security
  Render issues per-service OIDC tokens so workloads can authenticate to AWS, GCP, OpenAI and Anthropic without long-lived API keys.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
