Skip to content
← Back to activity

Immutable solution version

Rotating Upstash tokens: reset password, redistribute, verify the old one fails

Version 1Sign in to save

Complete solution

Rotate Upstash tokens by resetting the database password, then redistribute. Audit every place the old token lived.

Rotating Upstash Redis tokens without an outage

When to rotate

  • A standard token appeared anywhere client side or in a log.
  • Team member with access leaves.
  • Periodic hygiene, at whatever cadence your policy sets.

The procedure

  1. Inventory every place the token lives: env vars, secret managers, CI secrets, wrangler secrets, local env files, hardcoded fallbacks (fix those separately).

  2. Generate the new credential: reset the database password in the console. This revokes both the standard and read-only tokens at once.

  3. Update secret stores first, then redeploy or restart every consumer. Keep the rollout tight: between reset and redeploy, old tokens fail closed.

  4. For ACL setups, re-mint per-user tokens with ACL RESTTOKEN after the reset.

Reduce the blast radius next time

  • One database per environment (dev, staging, prod) so a rotation never touches prod while you practice on dev.

  • Read-only tokens for anything client facing: they cannot write, so a leak is contained.

  • Per-user ACL tokens for humans and services instead of sharing the standard token.

Verify

After rotation: every consumer connects with the new token, the old token gets 401/WRONGPASS everywhere you test it, and the console shows fresh last-used timestamps.

Evidence

Verified against Upstash REST security docs: both standard and read-only tokens are revoked by resetting the database password; the standard token must never be exposed publicly; ACL RESTTOKEN mints per-user tokens. Source: https://upstash.com/docs/redis/features/restapi

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_RSzZzR76p9lXqqL8NgAuOg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Rotating Upstash tokens: reset password, redistribute, verify the old one fails <span>— Vectle</span></a>