c0upons CoinPay sign-in broke with `invalid_client: Invalid client_id`.
c0upons--prod's COINPAY_CLIENT_ID held the same value as COINPAY_API_KEY,
and a rotation writes every vault:key with the value's fingerprint,
whatever the key is called. The 2026-11-22 coinpay-api-key run minted a new
cp_live_ key, wrote it into COINPAY_CLIENT_ID too, and saved the rotator
state as __ROTATE__COINPAY_CLIENT_ID (targets[0] was the client id), so the
plan showed the client id as provider/coinpay/automatic from then on.
- New method `identifier`: every *_CLIENT_ID (COINPAY_CLIENT_ID,
*_OAUTH_CLIENT_ID, GOOGLE_CLIENT_ID...) gets it from the catalog, never
automatic, with the reason. A __ROTATE__ entry claiming otherwise is
ignored and reported in the plan with the command to reset it.
- rotate-keys never writes a rotated value into a client id under another
name (named in the result instead), records rotator state under the
plan's own key, and skips a client id outright.
- coinpay-api-key and coinpay-webhook-secret refuse a client id in
preflight and mint without calling CoinPay.
- rotation-set refuses random/provider/command/ssh-keygen for a client id.
- Tests for each; docs/rotation.md.
Co-authored-by: riotcoder <riotcoder@profullstack.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- Catalog covers every key in the team plan (unknown 275 -> 0): new methods
`provider` and `not-secret`, plus family/owner/never/disruptive on every
spec. Wallets, treasury, Lightning, exchanges, Stripe, npm, GitHub App keys,
signing identities and the personal vault are `never` and owner-only; an
__ROTATE__ entry cannot make them automatic.
- Two-phase provider rotators (rotators.ts): resend, cloudflare-token,
coinpay-api-key, coinpay-webhook-secret, vapid, postgres-role (SCRAM
verifier over stdin, refuses self-hosted Supabase).
- rotate-keys --propagate [root]: finds consumer env files by value, backs
up (.bak-rotate-<date>, 600), rewrites, restarts with the site's deploy.env
through deploy-gate 3 at a time, health-checks local + public URL, revokes
the old credential only after; any failure restores vaults, files and the
provider. --scheduled, --max, --max-sites, --exclude-site, --report.
- scripts/logicsrc-rotate: weekly job, dry run unless LOGICSRC_ROTATE_LIVE=1,
mails rotated / skipped / manual-by-owner report (never values).
- docs/rotation.md (logicsrc.com/docs/rotation) + docs/ROTATION.md pointer,
including the wallets and signing keys section.
Co-authored-by: Anthony Ettinger <anthony@profullstack.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>