Skip to content

Say in the billing doc to destroy old secret versions after replacing the Stripe secrets - #36

Merged
cdeutsch merged 1 commit into
mainfrom
claude/secret-manager-charges-1e1d08
Dec 3, 2026
Merged

cdeutsch merged 1 commit into
mainfrom
claude/secret-manager-charges-1e1d08

Conversation

@cdeutsch

@cdeutsch cdeutsch commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Setting a secret with firebase functions:secrets:set adds a version and leaves the old ones enabled. Secret Manager bills every version past the first six in the project, so the repeated sets while billing was set up on 2026-10-25 left nine versions and a small monthly charge. The six unused versions have since been destroyed by hand. The same would happen again at launch, when all three Stripe secrets are replaced at once, and at any later key roll.

docs/billing.md now says, right after how the secrets are set:

  • once the redeploy that picks up new values is live, destroy the versions no function reads;
  • how to tell which those are (the version in each function's Cloud Run revision);
  • that functions:secrets:destroy warns every version is "in use", because it matches the secret's name and not the version;
  • that a destroyed version cannot be restored, so a rollback to an old revision means setting the secret again.

Docs only: nothing under functions/ or apps/web/ changes, so merging deploys nothing.

For a reviewer: the doc's table still lists the sandbox values as "before launch", while the paragraph under "Live" says the switch happened on 2026-10-25. This PR doesn't touch that; it is worth checking which is current.

🤖 Generated with Claude Code

… the Stripe secrets

Setting a secret leaves its earlier versions enabled, and Secret Manager bills each version past the first six, so the repeated sets while billing was set up on 2026-10-25 left nine versions and a monthly charge for the three over the limit. The same will happen at launch, when all three secrets are replaced at once, and at any later key roll.

The doc now says to destroy the versions no function reads once the redeploy is live, how to tell which those are, and that the destroy command's "in use" warning matches the secret's name rather than the version, so it shows up for every version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cdeutsch
cdeutsch merged commit cb4cab9 into main Dec 3, 2026
10 checks passed
@cdeutsch
cdeutsch deleted the claude/secret-manager-charges-1e1d08 branch December 3, 2026 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant