# Application Developer Tool: Secrets Rotation Card

Secret rotation panel listing active secrets with age nudges, masked prefixes, and a rotate button that keeps the old secret valid for 24 hours.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/secrets-rotation-card
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [Developer Tools](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools)
- Created: 2026-06-15
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/secrets-rotation-card.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-developer-tools-secrets-rotation-card
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: badge, button
- Installs to: `@/components/blocks/application-pro/developer-tools/secrets-rotation-card`

## About this block

Secrets Rotation Card lists three active secrets, a
Webhook signing secret on Production at 102 days old, an
OAuth client secret at 113 days old, and a Preview
webhook secret at 40 days. The two over-90-day entries
carry an age badge and the honest nudge: rotating
periodically limits the blast radius of a leak. Each row
pairs a masked prefix like whsec_4f2k...c8e1 with its
created and last-rotated dates.

Secrets are one typed array; the 90-day threshold is a
named constant so the nudge condition reads as intent.
The footer note explains the 24-hour overlap window so
operators know nothing breaks mid-flight when they rotate.

## When to use

Reach for this block on the developer settings or
security page, wired to your secrets API and scoped to
the signed-in workspace. Wire the Rotate now button to
your key-rotation endpoint.

A natural flow around it on an Application Pro page:

**Before**

- [Developer tools](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools)
- [Settings pages](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages)

**After**

- [Webhook logs table](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools)
- [Activity](https://www.shadcn-ui-blocks.com/blocks/application-pro/activity)

## What you can display

One strong use is the webhook and OAuth secret panel.
Other rotation cards:

- **API keys list.** The same shape with a Copy key
  button instead of Rotate now.
- **Database credentials.** Connection string masked,
  rotation managed by your secrets manager.
- **Environment variables.** Per-environment rows with
  Production and Preview badges.

> Tip: the 24-hour drain window note belongs in the UI,
> not the changelog; operators read it at rotation time,
> not before.

## More in Application Developer Tools

- [Api Console](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/api-console)
- [Build Status List](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/build-status-list)
- [Cron Jobs Monitor](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/cron-jobs-monitor)
- [Dependency Audit](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/dependency-audit)
- [Deploy Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/deploy-panel)
- [Diff Viewer](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/diff-viewer)
- [Env Vars Manager](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/env-vars-manager)
- [Error Inbox](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/error-inbox)
- [Feature Flags Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/feature-flags-panel)
- [Log Viewer](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/log-viewer)
- [Migrations Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/migrations-panel)
- [SDK Quickstart](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/sdk-quickstart)
- [SQL Query Editor](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/sql-query-editor)
- [Terminal Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/terminal-panel)
- [Trace Waterfall](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/trace-waterfall)
- [Webhook Logs Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/webhook-logs-table)
