Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/billing.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ While production is on the sandbox, anyone who sees the plan on the Account page

Each is set with `firebase functions:secrets:set <NAME>` from the repository root, which prompts for the value without echoing it; a redeploy picks up a new version. Locally, `stripe listen --forward-to http://127.0.0.1:5001/push-that/us-central1/stripeWebhook` forwards the sandbox's events to the emulator, and the `whsec_` it prints is the local signing secret while it runs.

Setting a secret adds a version and leaves the old ones enabled. Secret Manager bills every enabled or disabled version past the first six in the project (destroyed ones are free), so replacing all three at launch, or rolling a key later, leaves versions nothing reads that cost about $0.06 a month each. Once the redeploy that picks up the new values is live, destroy the old ones: check the version each function reads (its Cloud Run revision's environment, in the console), then run `firebase functions:secrets:destroy <NAME>@<version> --project push-that` for each version that is no longer read. The command warns that every version is "in use by following functions", because it matches the secret's name and not the version, so the warning says nothing about the version being destroyed. A destroyed version cannot be restored, and an old function revision that reads one no longer starts, so a rollback to it means setting the secret again. `firebase functions:secrets:prune` does the same in one go, but has no dry run.

### Live

Set up on 2026-10-25, the same as the sandbox:
Expand Down