You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(infra): olf infra backup for the local provider (#531) #910
olf infra backup --output DIR. The provider comes from the profile; local only for now.
Plan from the applied provider contract:
the databases: dagster_<stage>, superset_<stage> per analytics stage, openmetadata_db with governance, dex with Dex, and polaris (environments/local/main.tf:111-148);
the buckets: lakehouse-<stage>-{bronze,silver,gold} plus openlakeforge-ops;
the data-bound Secrets plus local-ca: openmetadata-fernet-key, superset-credentials per stage, polaris-bootstrap-credentials, the Polaris principal Secrets, the OpenMetadata admin/bot Secrets, the GitHub OAuth Secret, and local-ca.
Pause the Dagster daemon in each stage, and refuse if runs are in flight (DagsterClient). Resume it in a finally.
Dump polarisfirst, then the other databases (pg_dump -Fc --no-owner --no-acl, streamed from postgresql-0 via kubectl exec).
Copy the objects through infra/s3.port_forward_client, and write a key + size inventory.
Encrypt the Secrets bundle with a passphrase envelope using cryptography. The passphrase comes from a prompt or an environment variable, never from argv.
Write manifest.json:
release, profile sha256, provider and stages;
databases, with each file's sha256 and size;
buckets;
Secret names only.
Also write SHA256SUMS.
Tests that must fail first
A Full DEV+PROD contract fixture plans exactly the seven databases and 6+1 buckets.
The polaris dump precedes the first object copy.
The daemon is resumed when a step fails.
No plaintext Secret value appears in DIR or in the log (find_exposures).
Split
If this exceeds 15 files / 600 lines, split it: (a) the plan, manifest and encrypted Secrets bundle; (b) the data copy.
Activity
feat(infra): olf infra backup for the local provider (#910)
fix(infra): refuse a non-local deployment in the backup plan (#910)
fix(infra): refuse object keys that resolve to the same backup file (#…
test(infra): read the backup --help output without Rich styling (#910)
fix(infra): plan local-ca only when the local root deploys cert-manag…
test(infra): a Slim fixture carries no Trino CA, as a Slim deployment…
fix(infra): address backup review findings (#910)
refactor(k8s): helpers for backup and restore (#531)
feat(infra): olf infra backup for the local provider (#910)
fix(infra): refuse object keys that resolve to the same backup file (#…
test(infra): read the backup --help output without Rich styling (#910)
fix(infra): address backup review findings (#910)
feat(infra): olf infra backup for the local provider (#910)
fix(infra): refuse object keys that resolve to the same backup file (#…
test(infra): read the backup --help output without Rich styling (#910)
fix(infra): address backup review findings (#910)