Skip to content

Purge on the deployed platform: dispatcher profile + lake S3 delete grant, proven on er-dev #1380

Backlog

Description

@athvin

Follow-up from #544. Dataset delete and org purge are built and proven in local provisioning mode (pg_purge). The postgres-mode path is written but unexercised: it drops the dataset's DuckLake metadata schema, deletes the S3 data prefix, and for an org drops the catalog database.

On the deployed platform it cannot run yet:

  • ER_PROVISION_MODE is not set by the er-platform chart, so the purge job fails with "a purge needs the provisioning profile", a clear config refusal rather than a wrong deletion.
  • The dispatcher's Pod Identity role has no s3:ListBucket/s3:DeleteObject on the lake bucket's tenant prefixes.

Done when er-dev runs a dataset purge end to end: a provisioned dataset, DELETE with a short grace, the job succeeds, the schema is gone from the catalog database and the S3 prefix lists empty. That needs the Terraform IAM grant (operator approval for IAM changes applies) and the profile env in the chart.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions