File Store: support lifecycle policies (automatic expiration and cleanup), similar to AWS S3 Lifecycle
O
Old Haddock
Harness File Store has no way to automatically expire, archive, or clean up files. Files and folders stay until someone deletes them by hand or through the API. We'd like a lifecycle policy feature like S3 Lifecycle configuration, so teams can set retention rules once and have Harness enforce them.
Problem / Motivation
- File Store is used for things like manifests, values files, config templates, and scripts. Over time these pile up at the account, org, and project scopes.
- Pipelines often upload temporary or per-run artifacts, such as generated manifests, environment-specific overrides, and release-candidate files. Nothing cleans them up, so the store fills with stale, unused files.
- Today the only option is to build and maintain custom cleanup pipelines or scripts that list and delete files through the API. That's extra work, easy to forget, and inconsistent across teams.
- Stale files make it harder to find current ones. They can also hold outdated config or sensitive values that should have been remov