---
type: "post"
id: "retiring-a-key-isn-t-destroying-it-b570d4"
slug: "retiring-a-key-isn-t-destroying-it-b570d4"
title: "Retiring a Key Isn't Destroying It"
description: "Permanent destruction is the step that makes key lifecycle design consequential."
retrieval_nugget: "Permanent destruction is the step that makes key lifecycle design consequential."
published_at: "2026-11-29"
updated_at: "2026-11-29"
record_date: "2026-11-29"
date_kind: "published_at"
topics: ["google"]
entities: ["Google Cloud KMS","OpenBao"]
related_patterns: ["agent-security-moves-to-runtime-boundaries"]
novelty_label: "new_fact"
what_changed: "The piece details a two-step HSM key lifecycle—reversible retirement followed by delayed permanent destruction—and explains when certificates make retirement safe."
prior_refs: []
source_url: "https://hacdias.com/2026/11/29/retiring-keys"
source_urls: ["https://hacdias.com/2026/11/29/retiring-keys"]
production: {"schema":"newruntime-production-v1","desk":"newsroom","first_seen_at":"2026-11-29T17:00:24.922Z","independent_sources":1,"notes_synthesized":null,"writer_model":"gpt-6-luna","critic":null,"checks":["primary_source_verified","source_fresh","one_story","copy_contract"],"novelty":{"label":"new_fact","confidence":"medium"},"editorial_value":"medium","human_review":"selective"}
citations: [{"claim":"","quotes":["Recently, I added support for keys stored in an HSM or a vault at work.","Before that, we only had software keys, encrypted at rest in our database."],"cite_url":"https://hacdias.com/2026/11/29/retiring-keys#:~:text=Recently%2C%20I%20added%20support%20for%20keys%20stored%20in%20an%20HSM%20or%20a%20vault%20at%20work.&text=Before%20that%2C%20we%20only%20had%20software%20keys%2C%20encrypted%20at%20rest%20in%20our%20database.","source_url":"https://hacdias.com/2026/11/29/retiring-keys","publisher":"hacdias.com"},{"claim":"But an imported certificate submitted through a CSR can only be revoked by its issuer, so the system also offers early release to mark a key as no longer needed even if that certificate may remain valid.","quotes":["The safe answer is once every certificate it backs is either revoked or expired."],"cite_url":"https://hacdias.com/2026/11/29/retiring-keys#:~:text=The%20safe%20answer%20is%20once%20every%20certificate%20it%20backs%20is%20either%20revoked%20or%20expired.","source_url":"https://hacdias.com/2026/11/29/retiring-keys","publisher":"hacdias.com"},{"claim":"Retirement immediately stops signing and expires other scheduled actions.","quotes":["There is still an edge case though: certificates you can’t revoke yourself. An imported certificate (via a CSR ) can only be revoked by its issuer, while the key backing the certificate’s request is ours.","In that case, we provide an explicit early release, which marks the key as no longer needed even though the certificate may still be valid."],"cite_url":"https://hacdias.com/2026/11/29/retiring-keys#:~:text=There%20is%20still%20an%20edge%20case%20though%3A%20certificates%20you%20can%E2%80%99t%20revoke%20yourself.%20An%20imported%20certificate%20%28via%20a%20CSR%20%29%20can%20only%20be%20revoked%20by%20its%20issuer%2C%20while%20the%20key%20backing%20the%20certificate%E2%80%99s%20request%20is%20ours.&text=In%20that%20case%2C%20we%20provide%20an%20explicit%20early%20release%2C%20which%20marks%20the%20key%20as%20no%20longer%20needed%20even%20though%20the%20certificate%20may%20still%20be%20valid.","source_url":"https://hacdias.com/2026/11/29/retiring-keys","publisher":"hacdias.com"},{"claim":"Material is destroyed only after a grace period—30 days is one example.","quotes":["A retired key stops signing immediately and any other action that it was scheduled to do expires immediately."],"cite_url":"https://hacdias.com/2026/11/29/retiring-keys#:~:text=A%20retired%20key%20stops%20signing%20immediately%20and%20any%20other%20action%20that%20it%20was%20scheduled%20to%20do%20expires%20immediately.","source_url":"https://hacdias.com/2026/11/29/retiring-keys","publisher":"hacdias.com"},{"claim":"Initially, Google Cloud KMS keys used Google's minimum 24-hour destroy window; the team now sets the backend destroy window to match the grace period where supported.","quotes":["The material of the key, however, is only destroyed after a grace period (e.g. 30 days), so that it can be undone, since mistakes happen."],"cite_url":"https://hacdias.com/2026/11/29/retiring-keys#:~:text=The%20material%20of%20the%20key%2C%20however%2C%20is%20only%20destroyed%20after%20a%20grace%20period%20%28e.g.%2030%20days%29%2C%20so%20that%20it%20can%20be%20undone%2C%20since%20mistakes%20happen.","source_url":"https://hacdias.com/2026/11/29/retiring-keys","publisher":"hacdias.com"},{"claim":"Before sending a destroy request, the system claims the key; once claimed, cancellation is refused.","quotes":["Initially, I had configured Google Cloud KMS keys to use Google’s 24-hour minimum destroy window.","Keys are now created with a destroy window equal to the grace period when the backend supports it."],"cite_url":"https://hacdias.com/2026/11/29/retiring-keys#:~:text=Initially%2C%20I%20had%20configured%20Google%20Cloud%20KMS%20keys%20to%20use%20Google%E2%80%99s%2024%2Dhour%20minimum%20destroy%20window.&text=Keys%20are%20now%20created%20with%20a%20destroy%20window%20equal%20to%20the%20grace%20period%20when%20the%20backend%20supports%20it.","source_url":"https://hacdias.com/2026/11/29/retiring-keys","publisher":"hacdias.com"},{"claim":"","quotes":["OpenBao, for example, has no backend-enforced limit, so, in that case, our check is the only protection in place.","The claim is taken before the request because some backends, like OpenBao, destroy on request, so there’s no window to undo it afterwards."],"cite_url":"https://hacdias.com/2026/11/29/retiring-keys#:~:text=OpenBao%2C%20for%20example%2C%20has%20no%20backend%2Denforced%20limit%2C%20so%2C%20in%20that%20case%2C%20our%20check%20is%20the%20only%20protection%20in%20place.&text=The%20claim%20is%20taken%20before%20the%20request%20because%20some%20backends%2C%20like%20OpenBao%2C%20destroy%20on%20request%2C%20so%20there%E2%80%99s%20no%20window%20to%20undo%20it%20afterwards.","source_url":"https://hacdias.com/2026/11/29/retiring-keys","publisher":"hacdias.com"}]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:retiring-a-key-isn-t-destroying-it-b570d4"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/retiring-a-key-isn-t-destroying-it-b570d4/","markdown":"https://newruntime.com/posts/retiring-a-key-isn-t-destroying-it-b570d4.md","json":"https://newruntime.com/posts/retiring-a-key-isn-t-destroying-it-b570d4.json"}
markdown_url: "https://newruntime.com/posts/retiring-a-key-isn-t-destroying-it-b570d4.md"
---

# Retiring a Key Isn't Destroying It

## Retrieval answer

Permanent destruction is the step that makes key lifecycle design consequential.

## Summary

Permanent destruction is the step that makes key lifecycle design consequential. After adding support for HSM- or vault-stored keys to a system that previously used database-encrypted software keys, the author describes separating immediate retirement from later destruction. ([hacdias.com](https://hacdias.com/2026/11/29/retiring-keys#:~:text=Recently%2C%20I%20added%20support%20for%20keys%20stored%20in%20an%20HSM%20or%20a%20vault%20at%20work.&text=Before%20that%2C%20we%20only%20had%20software%20keys%2C%20encrypted%20at%20rest%20in%20our%20database.))

## What happened

In the signing flow, the key stays in the backend while data is sent for signing and returned signed. A key is eligible for retirement once every certificate it backs is revoked or expired; credentials signed by a certificate do not outlast that certificate. ([hacdias.com](https://hacdias.com/2026/11/29/retiring-keys#:~:text=The%20safe%20answer%20is%20once%20every%20certificate%20it%20backs%20is%20either%20revoked%20or%20expired.)) But an imported certificate submitted through a CSR can only be revoked by its issuer, so the system also offers early release to mark a key as no longer needed even if that certificate may remain valid. ([hacdias.com](https://hacdias.com/2026/11/29/retiring-keys#:~:text=There%20is%20still%20an%20edge%20case%20though%3A%20certificates%20you%20can%E2%80%99t%20revoke%20yourself.%20An%20imported%20certificate%20%28via%20a%20CSR%20%29%20can%20only%20be%20revoked%20by%20its%20issuer%2C%20while%20the%20key%20backing%20the%20certificate%E2%80%99s%20request%20is%20ours.&text=In%20that%20case%2C%20we%20provide%20an%20explicit%20early%20release%2C%20which%20marks%20the%20key%20as%20no%20longer%20needed%20even%20though%20the%20certificate%20may%20still%20be%20valid.)) Retirement immediately stops signing and expires other scheduled actions. ([hacdias.com](https://hacdias.com/2026/11/29/retiring-keys#:~:text=A%20retired%20key%20stops%20signing%20immediately%20and%20any%20other%20action%20that%20it%20was%20scheduled%20to%20do%20expires%20immediately.)) Material is destroyed only after a grace period—30 days is one example. ([hacdias.com](https://hacdias.com/2026/11/29/retiring-keys#:~:text=The%20material%20of%20the%20key%2C%20however%2C%20is%20only%20destroyed%20after%20a%20grace%20period%20%28e.g.%2030%20days%29%2C%20so%20that%20it%20can%20be%20undone%2C%20since%20mistakes%20happen.)) Initially, Google Cloud KMS keys used Google's minimum 24-hour destroy window; the team now sets the backend destroy window to match the grace period where supported. ([hacdias.com](https://hacdias.com/2026/11/29/retiring-keys#:~:text=Initially%2C%20I%20had%20configured%20Google%20Cloud%20KMS%20keys%20to%20use%20Google%E2%80%99s%2024%2Dhour%20minimum%20destroy%20window.&text=Keys%20are%20now%20created%20with%20a%20destroy%20window%20equal%20to%20the%20grace%20period%20when%20the%20backend%20supports%20it.)) Before sending a destroy request, the system claims the key; once claimed, cancellation is refused.

With a 30-day grace period and the initial 24-hour backend window, the application's check alone prevented destruction for 29 of the 30 days. The author describes matching the backend window to the grace period as added protection against application bugs or changes made through the backend dashboard. The claim-and-refuse rule is intended to make the race resolve one way: cancellation wins without destruction, or destruction wins and cancellation is refused. These are described safeguards, not measured reliability outcomes.

## Why it matters

For a team lead, the design lesson is to place the waiting period in the backend where possible, then serialize cancellation against the destroy request. An application-only timer leaves the grace period dependent on application behavior; a backend that destroys immediately makes the cancellation race especially consequential.

## Limits and uncertainty

This is one practitioner's account. The author says OpenBao has no backend-enforced destroy limit, leaving the application check as the only protection in that case; some backends, including OpenBao, destroy on request without a later undo window. ([hacdias.com](https://hacdias.com/2026/11/29/retiring-keys#:~:text=OpenBao%2C%20for%20example%2C%20has%20no%20backend%2Denforced%20limit%2C%20so%2C%20in%20that%20case%2C%20our%20check%20is%20the%20only%20protection%20in%20place.&text=The%20claim%20is%20taken%20before%20the%20request%20because%20some%20backends%2C%20like%20OpenBao%2C%20destroy%20on%20request%2C%20so%20there%E2%80%99s%20no%20window%20to%20undo%20it%20afterwards.))

## Reader takeaway

Treat stopping a key from signing and destroying its material as separate operations. Enforce the waiting period in the key backend where possible, and make cancellation and destruction mutually exclusive before sending a destroy request. The account describes safeguards, not measured reliability gains, and one backend is said to lack a built-in delay.

## Open question

If the backend cannot enforce a delay, what independent control can prevent early destruction if the application check fails?

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Google](https://newruntime.com/topics/google.md): Explore the google topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
