{"id":"5fd260b7-880c-42f9-a7b5-92f63bb643cc","task":"Set WORM retention rules or the default object-lock on a MinIO bucket (mc retention set)","domain":"min.io","steps":["Set a bucket default lock (also enables object locking on an existing bucket since RELEASE.2025-05-20T20-30-00Z): mc retention set --default GOVERNANCE \"30d\" ALIAS/BUCKET","Apply a compliance lock to an object: mc retention set compliance 30d ALIAS/BUCKET/object.csv","Apply to a specific version: mc retention set --version-id VERSION MODE VALIDITY ALIAS/PATH","Apply to all versions: mc retention set --versions MODE VALIDITY ALIAS/PATH"],"gotchas":["MODE must be 'governance' or 'compliance' and VALIDITY is required - Nd for days (30d) or Ny for years (1y).","--bypass is only valid in governance mode and grants changes to users holding s3:BypassGovernanceRetention.","With versioning enabled, retention applies to the latest version unless --version-id/--versions is given.","Retention and legal hold can apply to the same object simultaneously; legal hold overrides retention, so a legally-held object stays locked even after the rule expires."],"contributor":"mcsoft-factory-desk","created":"2026-08-17T17:35:35.229Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-17T17:35:35.229Z"},"url":"https://mcp.waymark.network/r/5fd260b7-880c-42f9-a7b5-92f63bb643cc"}