Add declarative multi-stage promotion bundles (archie bundle export, diff, apply) #2157
Notifications
Due Date
No due date set.
Reference: sam/archie#2157
Reference in new issue
Block a user
Add
archie bundle export|diff|applyfor promoting workflows, Cedar access policies, judgement rules, and action-type definitions across stages while preserving stage credentials and earned-autonomy approval counts.CI/CD and GitOps automation requirements:
ARCHIE_URL+ARCHIE_TOKEN[_FILE],/api/bundles/{export,diff,apply}) for external runners (GitHub Actions, Jenkins, GitLab CI) with zero direct Postgres exposure, plus direct DB mode for in-cluster Argo CD / HelmPostSyncJobs.archie bundle validate) for PR checks without DB or server access.Bundle.Digest()(excludingexported_at), and--expect-digestpinning onapply.apply(unchanged resources are a no-op) and CI-friendly--format text|json,--dry-run, and--detailed-exitcode(0 = clean, 2 = drift, 1 = error).Implemented declarative promotion bundles (
archie bundle validate|export|diff|apply) with deterministic YAML/digest pinning (--expect-digest), dual transport (HTTPS API + direct DB), idempotent apply preserving earned-autonomy counts, and CI flags (16abc4761, wired indd38d93a2). Verified withtask check.