mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-12-04 02:29:06 +00:00
feat(rotation): provider rotators, consumer propagation, weekly job, runbook (CLI 0.14.0) (#265)
- 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>
This commit is contained in:
parent
b5f875837a
commit
3254b2706b
17 changed files with 2609 additions and 91 deletions
|
|
@ -38,8 +38,8 @@ describe("catalog", () => {
|
|||
expect(catalogSpec("SSH_ID_ED25519")?.method).toBe("ssh-keygen");
|
||||
expect(catalogSpec("SSH_ID_ED25519_DEPLOY")?.method).toBe("ssh-keygen");
|
||||
expect(catalogSpec("DEPLOY_KEY")?.method).toBe("ssh-keygen");
|
||||
expect(catalogSpec("SSH_ID_ED25519_PUB")).toBeNull();
|
||||
expect(catalogSpec("SSH_CONFIG")).toBeNull();
|
||||
expect(catalogSpec("SSH_ID_ED25519_PUB")?.method).toBe("not-secret");
|
||||
expect(catalogSpec("SSH_CONFIG")?.method).toBe("not-secret");
|
||||
expect(isNotSecret("SSH_KNOWN_HOSTS")).toBe(true);
|
||||
});
|
||||
|
||||
|
|
@ -52,7 +52,7 @@ describe("catalog", () => {
|
|||
});
|
||||
|
||||
it("knows nothing about plain config", () => {
|
||||
expect(catalogSpec("SOLANA_RPC_URL")).toBeNull();
|
||||
expect(catalogSpec("SOLANA_RPC_URL")?.method).toBe("not-secret");
|
||||
expect(catalogSpec("NODE_ENV")).toBeNull();
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue