Batch Key Rotation
Added: MinIO
RELEASE.2023-04-07T05-28-58Z
The MinIO Batch Framework allows you to create, manage, monitor, and execute jobs using a YAML-formatted job definition file (a “batch file”). The batch jobs run directly on the MinIO deployment to take advantage of the server-side processing power without constraints of the local machine where you run the MinIO Client.
The keyrotate batch job type cycles the sse-s3 or sse-kms keys for encrypted objects on a MinIO deployment.
The YAML configuration supports filters to restrict key rotation to a specific set of objects by creation date, tags, metadata, or kms key. You can also define retry attempts or set a notification endpoint and token.
SILO 20261109 lifecycle and multi-pool safety: Batch keyrotate enforces the authenticated submitter’s local data permissions throughout execution and preserves Object Lock retention and legal holds (#310, #311), scopes pool updates so object copies on other server pools remain readable (#312), pauses and retries on temporary IAM or authorization outages, incomplete bucket listings, or pool rebalance and decommission conflicts (#313), and reports skipped or refused work (versionsSkippedLocked, keysRefused, complete-with-skips) separately from clean completions. See SILO batch job lifecycle.
SILO 20261112 KMS Context Repair
In SILO 20261112 (RELEASE.2026-11-12T00-00-00Z) and later, encryption.context is decoded from the saved job configuration for execution, retry and restart. It accepts a base64-encoded JSON object of string keys and string values, such as the encoding of {"tenant":"acme"}. An omitted value or the base64 encoding of {} or JSON null means an empty context. A null member value inside the object decodes to an empty string; use explicit string values to avoid ambiguity. Malformed base64, invalid UTF-8, invalid JSON and values that cannot decode as strings (such as numbers or arrays) are rejected.
Rotation uses this context as KMS associated data and stores it with the object. Validation-probe fields are not added to the object’s context. Temporary KMS errors remain eligible for the job’s retry handling. This repair is not included in Server 20261109; see Server compatibility notes.
Key Rotate Batch Job Reference
Added: MinIO
RELEASE.2023-04-07T05-28-58Z
Use the keyrotate job type to create a batch job that cycles the sse-s3 or sse-kms keys for encrypted objects.
Required Fields
type:Either
sse-s3orsse-kms.
key:Only for use with the
sse-kmstype. The key to use to unseal the key vault.
Optional Fields
For flag based filters
|
A string representing a length of time in Keys rotate only for objects newer than the specified length of time.
For example, |
|
A string representing a length of time in Keys rotate only for objects older than the specified length of time. |
|
A date in Keys rotate only for objects created after the date. |
|
A date in Keys rotate only for objects created prior to the date. |
|
Only for use with the |
|
Rotate keys only for objects with tags that match the specified |
|
Rotate keys only for objects with metadata that match the specified |
|
Rotate keys only for objects with a KMS key-id that match the specified value.
This is only applicable for the |
For notifications
|
The predefined endpoint to send events for notifications. |
|
An optional JSON Web Token (JWT) to access the |
For retry attempts
If something interrupts the job, you can define a maximum number of retry attempts. For each retry, you can also define how long to wait between attempts.
|
Number of tries to complete the batch job before giving up. |
|
The amount of time to wait between each attempt. |
Sample YAML Description File for a keyrotate Job Type
Use mc batch generate to create a basic keyrotate batch job for further customization: