mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-12-01 09:24:46 +00:00
feat(rotation): 90-day policy, due runs wait for owner approval (CLI 0.16.0) (#270)
Every automatic secret older than the team's max age (90 days default) is queued as one run in awaiting-approval. An owner/admin approves it on the Rotation page or with `teams rotation-approve`; machine keys can queue but never approve. logicsrc-rotate --queue (*/5 cron) runs approved runs with propagate + health checks + rollback. rotation_auto_approve per team is the paid automatic rotation add-on (off by default). Co-authored-by: Anthony Ettinger <anthony@profullstack.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
87bbc50423
commit
0f237cb6e0
11 changed files with 407 additions and 24 deletions
11
apps/pwa/src/migrations/011_rotation_policy.sql
Normal file
11
apps/pwa/src/migrations/011_rotation_policy.sql
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
-- 90-day rotation policy (Anthony, 2026-10-29).
|
||||
--
|
||||
-- Every automatic secret older than the team's max age (NULL = 90 days) is
|
||||
-- queued as one run that waits for an owner or admin to approve it
|
||||
-- (status 'awaiting-approval'). rotation_auto_approve is the paid add-on:
|
||||
-- when 1, due runs are queued already approved and rotate without a click.
|
||||
-- approved_by / approved_at record who said yes. Additive only.
|
||||
ALTER TABLE credshare_teams ADD COLUMN rotation_max_age_days INTEGER;
|
||||
ALTER TABLE credshare_teams ADD COLUMN rotation_auto_approve INTEGER NOT NULL DEFAULT 0;
|
||||
ALTER TABLE credshare_rotation_runs ADD COLUMN approved_by TEXT;
|
||||
ALTER TABLE credshare_rotation_runs ADD COLUMN approved_at INTEGER;
|
||||
Loading…
Add table
Add a link
Reference in a new issue