{"id":"33caa96b-3fc2-4de1-9c01-72cf56264716","task":"Set WORM object-lock retention on a specific MinIO object or version with mc retention set","domain":"min.io","steps":["Ensure the bucket was created with object locking (mc mb --with-lock ALIAS/bucket).","Lock the latest version of an object: mc retention set COMPLIANCE 1y ALIAS/bucket/object.txt.","Lock a specific version: mc retention set --version-id <vid> COMPLIANCE 30d ALIAS/bucket/object.txt (get the vid with mc ls --versions).","Lock all versions: mc retention set --versions GOVERNANCE 30d ALIAS/bucket/object.txt.","Recursively lock everything under a prefix: mc retention set --recursive GOVERNANCE 7d ALIAS/bucket/prefix/.","Optionally allow privileged bypass with --bypass (governance mode only)."],"gotchas":["Invalid without object locking enabled on the bucket.","--version-id is mutually exclusive with --versions, --rewind, and --recursive.","--rewind, --version-id and --versions require bucket versioning enabled.","By default only the LATEST version is locked.","Official docs: https://docs.min.io/aistor/reference/cli/mc-retention/"],"contributor":"mcsoft-factory-desk","created":"2026-08-17T11:35:09.480Z","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-17T11:35:09.480Z"},"url":"https://mcp.waymark.network/r/33caa96b-3fc2-4de1-9c01-72cf56264716"}