deps: Update Terraform minio to v3.47.0 #13

Open
renovate-bot wants to merge 1 commit from renovate/minio-3.x-lockfile into main
Collaborator

This PR contains the following updates:

Package Type Update Change
minio (source) required_provider minor 3.46.3 → 3.47.0

⚠️ Warning

Some dependencies could not be looked up. Check the warning logs for more information.


Release Notes

aminueza/terraform-provider-minio (minio)

v3.47.0

Compare Source

Added
  • minio_notify_amqp and its data source expose publisher_confirms. With
    it on, MinIO waits for the broker to confirm each published message and
    treats a rejected publish as an error; pair it with queue_dir for
    guaranteed delivery
    (#​1371).
  • minio_server_config_api exposes the remaining keys of the api subsystem as
    optional attributes: delete_cleanup_interval, gzip_objects,
    list_quorum, object_max_versions, odirect, replication_max_lrg_workers,
    replication_max_workers and replication_priority. Setting
    odirect = false also writes disable_odirect=on, because MinIO keeps
    O_DIRECT on while that key is unset
    (#​1327).
  • minio_server_config_policy_plugin: manages the policy_plugin subsystem,
    which routes every authorization decision to an external service such as
    Open Policy Agent. The fields map the subsystem's keys: url,
    auth_token, enable_http2 and comment
    (#​1326).
  • minio_server_config_site: manages the site subsystem, MinIO's
    replacement for the legacy region subsystem. The fields map the
    subsystem's keys: name, region and comment; when both the site
    region and the legacy region subsystem are set, the site region takes
    precedence for the region MinIO reports
    (#​1323).
  • minio_server_config_browser: manages the browser subsystem, which sets
    the security headers of the embedded console. The fields map the
    subsystem's keys: csp_policy, hsts_seconds, hsts_include_subdomains,
    hsts_preload and referrer_policy
    (#​1325).
  • minio_server_config_compression: manages the compression subsystem,
    which controls transparent object compression. The fields map the
    subsystem's keys: enable, extensions, mime_types, allow_encryption
    and comment (#​1324).
Changed
  • minio_notify_webhook, minio_notify_nats, minio_notify_kafka,
    minio_logger_webhook, minio_audit_webhook, minio_audit_kafka, and
    minio_server_config_etcd now require the private key path (client_key,
    client_tls_key, client_cert_key) whenever the matching certificate path
    is set: MinIO only accepts the pair together, and a certificate-only
    configuration would plan to clear the key the server holds. Configurations
    that manage an imported target holding both and declare only the certificate
    now fail at plan time, so declare the key path next to the certificate
    (#​1355).
  • minio_iam_group, minio_iam_policy, minio_iam_group_policy, and
    minio_s3_bucket now fail to create when an object with that name already
    exists instead of taking over or overwriting the existing object. Import
    existing objects with terraform import (or an import block) to manage
    them. Create now looks up IAM groups and policies first, so provider
    credentials must also allow reading them (GetGroupDescription,
    InfoCannedPolicy). minio_iam_group must be referenced by attribute from
    membership resources (minio_iam_group_membership,
    minio_iam_group_user_attachment, minio_iam_user_group_membership): a
    membership resource with a literal group name that applies first creates the
    group implicitly, and the group resource then fails to create
    (#​1393).
  • minio_notify_kafka, minio_audit_kafka, and data.minio_notify_kafka now
    expose sasl as a boolean defaulting to false, sent to MinIO as
    sasl=on/sasl=off. Configurations that set sasl_username or
    sasl_password without sasl = true now fail at plan time instead of the
    credentials being silently ignored by MinIO, so add sasl = true where SASL
    authentication is intended. Setups that worked around the missing attribute
    by setting sasl=on outside Terraform will now see their plan fail until
    sasl = true is added
    (#​1358).
  • minio_iam_user_policy_attachment, minio_iam_group_policy_attachment and
    minio_iam_group_user_attachment now store their import format as id
    (<user_name>/<policy_name>, <group_name>/<policy_name> and
    <group_name>/<user_name>) instead of a random id.PrefixedUniqueId, so
    stored IDs can be fed directly back into terraform import and import
    blocks. Existing states migrate to the new ID in place on the next refresh
    with an empty plan and no replacement. The attachment's own plan stays empty,
    but anything that reads the attachment's .id (outputs, null_resource
    triggers, tags built from it) will see the new value after the first refresh
    (#​1359).
  • minio_iam_group_policy now validates group against the static group name
    pattern only (LDAP Distinguished Names, which can contain :, are rejected
    at plan time) and actually attaches its canned policy to group on create
    and detaches it before deleting the policy. Existing configurations whose
    group contained : must update group, and configurations that relied on
    minio_iam_group_policy only to create an unattached canned policy must
    migrate to minio_iam_policy. On the first refresh after upgrading, a
    previously unattached minio_iam_group_policy is dropped from state so the
    next apply recreates it attached, unless its name was generated by the
    provider (name_prefix or no name): dropping a generated-name resource
    would leak the canned policy, so it stays in state with a warning to run
    terraform apply -replace to reattach. Setups that combined
    minio_iam_group_policy with minio_iam_group_policy_attachment to attach
    the same policy should remove the attachment from the configuration and from
    state (terraform state rm or a removed block) instead of destroying it,
    because destroying the attachment detaches the policy that
    minio_iam_group_policy now manages
    (#​1386).
  • minio_s3_bucket: object_locking changes on an existing bucket (false to
    true or true to false) are now rejected during plan instead of being
    silently ignored in Update or forcing destructive replacement via
    ForceNew. Because Read now refreshes object_locking from the server
    instead of keeping stale state, states that previously recorded
    object_locking = true on a bucket created without Object Lock will refresh
    to object_locking = false and fail to plan until the configuration sets
    object_locking = false (matching the live bucket) or the bucket is
    recreated with object_locking = true
    (#​1387).
  • minio_iam_ldap_user_policy_attachment and
    minio_iam_ldap_group_policy_attachment: resource id now stores
    <dn>/<policy> instead of <policy>/<dn> to match their documented import
    format. Existing states migrate to the new ID on the next refresh with an
    empty plan and no replacement
    (#​1354).
  • minio_iam_users data source now returns users sorted by name and
    derives a deterministic id from status and name_prefix instead of
    generating a new Unix timestamp on every read
    (#​1367).
  • minio_iam_group_membership: id now stores the group name instead of
    the Terraform-only name label, and name is no longer ForceNew. Existing
    states created before this change migrate id from name to group on the
    next refresh with an empty plan and no replacement
    (#​1373).
  • minio_s3_object now sets id to <bucket_name>/<object_name> (matching its
    import format) instead of <object_name> alone, so stored IDs can be
    imported directly and no longer collide across buckets. Existing states
    migrate on the next refresh without replacement
    (#​1368).
  • minio_iam_group_user_attachment: group_name now uses
    validateMinioIamGroupName instead of the policy name validator, allowing
    group names longer than 96 characters while rejecting : and / to match
    minio_iam_group. Configurations attaching users to groups created outside
    Terraform whose names contain : or / are rejected at plan time
    (#​1392).
  • minio_s3_bucket_replication: rule is now required with at least one
    block, so configurations with no rule blocks are rejected at plan time
    (Insufficient rule blocks) instead of applying with an empty replication
    configuration; remove the resource or keep at least one rule. This is a
    breaking change for configurations that had no rule blocks
    (#​1380).
Fixed
  • minio_notify_webhook, minio_logger_webhook, minio_notify_nats,
    minio_notify_kafka, minio_audit_kafka, minio_audit_webhook,
    minio_server_config_etcd, and the minio_notify_webhook,
    minio_notify_kafka, and minio_notify_nats data sources now read
    client_key, client_tls_key, and client_cert_key back from MinIO when
    the server returns them, populating them on terraform import and detecting
    out-of-band key path drift while keeping those attributes sensitive
    (#​1355).

  • minio_s3_bucket_replication no longer crashes the provider when a rule
    carries an invalid health_check_period or bandwidth_limt: both fields
    are now validated at plan time, the duration check uses Go duration syntax
    instead of a regex that accepted values like 5|, and invalid values found
    in state are reported as diagnostics instead of panicking refresh or
    destroy
    (#​1372).

  • minio_s3_bucket_replication warns once, not twice, when a target sets
    secure = false. The schema validation and the configuration parsing each
    emitted the same unsafe-HTTP warning
    (#​1398).

  • minio_audit_webhook refresh now treats the server's "there is no target"
    answer as the target having been removed outside Terraform, dropping the
    resource from state instead of failing the refresh.

  • Removing optional notification fields now clears them on the server:
    minio_notify_webhook, minio_logger_webhook, minio_notify_nats,
    minio_notify_kafka, minio_audit_kafka, minio_notify_mqtt,
    minio_notify_elasticsearch, minio_notify_redis and minio_notify_amqp
    send explicit empty values for removed credentials, certificates and plain
    options instead of leaving the old server value in place; removing the
    readable half of a certificate or credential pair also clears the paired
    secret, including after import when the secret is not in state; and values
    cleared outside Terraform are now picked up by refresh
    (#​1353).

  • minio_iam_group_policy now attaches the created canned policy to group,
    detaches it on delete without disturbing other policies attached to the
    group, drops state when the policy is detached outside Terraform so the next
    plan shows a create, rejects malformed import IDs such as "developer" with
    unexpected format of ID ("developer"), expected <group-name>:<policy-name>
    instead of panicking, and documents the <group-name>:<policy-name> import
    format (#​1386).

  • minio_s3_bucket: Read (and therefore terraform import) now refreshes
    object_locking via GetObjectLockConfig instead of silently leaving stale
    state or swallowing non-not-found errors during import, and removes the
    stale claim that Object Lock can be added to existing buckets on
    RELEASE.2025-05-20T20-30-00Z+
    (#​1387).

  • minio_iam_ldap_user_policy_attachment and
    minio_iam_ldap_group_policy_attachment: importer format errors now name
    <dn>/<policy-name>, IDs still in the old <policy>/<dn> order are
    rejected with that message instead of importing into a resource that Read
    immediately drops, and the LDAP group read error no longer mentions a user
    (#​1354).

  • minio_iam_users data source now populates policy_names and
    member_of_groups from ListUsers, and documents that service accounts
    are omitted and LDAP policy-mapped users appear under their DN
    (#​1367).

  • data.minio_s3_object now formats last_modified and non-zero expires as
    RFC 3339 strings instead of passing time.Time values into string schema
    attributes (which dropped both fields and panicked under TF_ACC), and
    returns d.Set errors through NewResourceError
    (#​1356).

  • minio_iam_group_membership: terraform import (by group name) now
    populates state instead of querying an empty group name, fails cleanly when
    the group does not exist, and lets the first apply after import set name
    in state in place without recreating the membership
    (#​1373).

  • minio_s3_bucket_replication Read and delete treat NoSuchBucket as
    already removed, so deleting the source bucket outside Terraform plans a
    recreation instead of failing every plan and destroy, and
    minioPutBucketReplication returns an error if called with no rules
    (#​1380).

  • minio_iam_policy and minio_iam_group_policy now mark name_prefix as
    Computed and recover it from generated policy names ending with Terraform's
    26-character unique ID suffix on read/import ("" for plain name
    policies), so importing either resource preserves name_prefix without
    forcing replacement on the next plan
    (#​1384).

  • minio_iam_group_user_attachment, minio_iam_group_policy_attachment and
    minio_iam_user_group_membership drop the attachment or membership from state
    when their group or user is deleted outside Terraform
    (#​1377).

  • minio_s3_object_legal_hold and minio_s3_object_retention now import
    objects whose key contains #: the stored ID keeps the key intact by ending
    with # when there is no version, minio_s3_object_legal_hold reads an
    object that never had a legal hold as status = "OFF" instead of failing,
    minio_s3_object_retention drops the resource for a deleted version or
    bucket as the legal hold resource already did, and an import ID with no key
    is rejected before any API call
    (#​1378).

  • minio_iam_policy, minio_iam_group_policy, and the policy attachment
    resources (minio_iam_group_policy_attachment,
    minio_iam_user_policy_attachment, minio_iam_ldap_group_policy_attachment,
    minio_iam_ldap_user_policy_attachment) now accept policy names up to 255
    characters and reject commas, while name_prefix allows up to 229 characters
    (255 minus the 26-character generated suffix)
    (#​1392).

  • minio_prometheus_bearer_token validates limit (1 to 2562047 hours) and
    expires_in (a whole number of hours above zero) at plan time, instead of
    wrapping into a token that is already expired or failing at apply. Read now
    plans a new token once token_expiry has passed, and the docs say that a
    new token or a destroy does not revoke the old one
    (#​1388).

  • minio_iam_group_membership no longer deletes the group when removed with no
    users in state, and userToADD/userToRemove return group lookup errors
    instead of panicking
    (#​1376).

  • minio_iam_user now fails to create when a user with that name already exists,
    instead of replacing its secret and status. Import the existing user with
    terraform import (or an import block) to manage it. Create now reads the
    user first, so the provider credential must also be allowed to read user info
    (admin:GetUser).

  • minio_s3_bucket_object_lock_configuration now requires days or years on
    rule.default_retention at plan time (ExactlyOneOf), and both
    minio_s3_bucket_object_lock_configuration and minio_s3_bucket_retention
    check object lock before versioning so buckets created without object lock
    report the object lock error directly instead of asking for versioning first
    (#​1391).

  • The minio_s3_bucket_quota, minio_s3_bucket_policy,
    minio_s3_bucket_tags, minio_s3_bucket_cors_config,
    minio_s3_bucket_replication, minio_s3_bucket_replication_status,
    minio_s3_bucket_replication_metrics, minio_s3_bucket_notification_config,
    minio_iam_groups and minio_iam_user_policies data sources return API
    errors instead of empty or zero values, so a missing bucket, a server that is
    down or missing permissions fail the read. A bucket with nothing configured
    still reads as empty, and a backend without the feature under
    s3_compat_mode gives a warning
    (#​1375).

  • minio_iam_group no longer attaches the built-in readonly policy during
    delete. Check groups whose destroy failed before this fix with
    mc admin group info and detach readonly if it was not intentionally
    assigned
    (#​1385).

  • minio_iam_ldap_user_policy_attachment and
    minio_iam_ldap_group_policy_attachment read the policies of their own
    user or group. They used to check whether any LDAP user or group had the
    policy, so a policy detached outside Terraform stayed in the state as long
    as some other entity still had it, and the next apply did not attach it
    again.

  • Removing auth_token, client_cert or client_key from a
    minio_audit_webhook clears it on the server. MinIO merges a config update
    into the target's current settings, so the old value stayed: audit events
    kept going out with the old token or certificate, and a removed
    client_cert came back on every plan. Removing client_cert also clears a
    client_key that is not in the configuration, such as an imported one,
    since MinIO only accepts the two as a pair. Read also picks up a client
    certificate cleared outside Terraform.

  • minio_notify_amqp and minio_notify_elasticsearch read url back from
    the server, and minio_notify_postgres reads connection_string, so a
    change made outside Terraform shows up in the plan and the next apply puts
    the configured value back. The matching data sources now return these
    values too, so they are stored in the state in clear text (they stay
    marked sensitive, which only hides them in the CLI output). A target
    whose stored value already differs from the configuration shows one diff
    on the first plan after upgrading
    (#​1328).

  • minio_iam_idp_ldap sends lookup_bind_dn, user_dn_search_base_dn,
    user_dn_search_filter, group_search_base_dn and group_search_filter
    empty when they are removed from the configuration. The provider skipped
    empty values and MinIO keeps a key a write leaves out, so the old value
    stayed on the server and the read loaded it back into state. With LDAP
    enabled, MinIO accepts removing the two group search keys together; it
    rejects removing the bind DN, a user search key or one group key alone,
    so that apply now fails with MinIO's error instead of doing nothing. With
    enable = false every one of them can be removed. lookup_bind_password
    is still sent only when set, because the server never returns it
    (#​1348).

  • minio_iam_idp_ldap keeps its planned values in state while MinIO needs a
    restart to apply a change. The read right after a write loaded the
    pre-restart config back, so server_addr ended up empty in the state and
    server_insecure, tls_skip_verify and starttls false, while enable
    was not affected, and the plan that followed a successful apply showed
    the same change again. restart_required now clears on its own once the
    server reports the configured values
    (#​1318).

  • minio_s3_bucket reads the bucket quota back from the server, so a quota
    changed or cleared outside Terraform shows up in the plan and the next
    apply puts the configured value back. A bucket whose quota is managed by
    minio_s3_bucket_quota shows no diff
    (#​1334).

  • minio_s3_bucket reads the bucket policy back and derives acl from it,
    so removing or changing the policy outside Terraform shows up in the plan
    and the next apply puts the configured ACL back. A bucket whose acl is
    private leaves the bucket policy to the resources that manage it
    (minio_s3_bucket_policy, minio_s3_bucket_anonymous_access), so a public
    policy added outside Terraform to such a bucket is not detected. A public
    acl whose policy was replaced by a custom minio_s3_bucket_policy keeps
    that policy, because the read cannot tell it apart from one another resource
    manages. Credentials without s3:GetBucketPolicy keep refreshing: the read
    keeps acl as it is and logs a warning. When upgrading, check for a
    non-private acl paired with another resource that writes a different canned
    shape (for example acl = "public" plus minio_s3_bucket_anonymous_access
    with access_type = "public-read"): the two now rewrite each other's policy
    on every apply, where the previous read left it silently in place. The fix is
    to drop acl from the bucket
    (#​1333).

  • minio_s3_bucket_anonymous_access with access_type now shows a diff when
    the bucket policy is removed outside Terraform, or replaced with one that
    matches no canned shape. The read kept the state's access_type when the
    server's policy no longer matched it, so the plan stayed empty and the next
    apply never restored the anonymous access. The read now drops access_type in
    that case, so the drift shows up in the plan and the next apply puts the
    configured access back
    (#​1332).

  • minio_s3_object detects the object being overwritten outside Terraform.
    The configured content, content_base64 or source is MD5-hashed at plan
    time and compared against the stored etag, so overwriting the object shows
    a diff and the next apply re-uploads the configured content. An overwrite
    whose ETag is not a bare MD5 (a multipart or streamed upload) is not detected
    (#​1330).

  • minio_iam_user reads disable_user from the server, so enabling or
    disabling a user outside Terraform (for example with
    mc admin user enable/disable) shows up in the plan and the next apply
    restores the configured value. The read only wrote the server status to the
    computed status and never touched disable_user, so the change was
    silently carried in state with no diff. A user whose status already drifted
    shows one disable_user diff on the first plan after upgrading, and the
    next apply restores the configured status
    (#​1329).

  • minio_audit_kafka with tls = false or tls_skip_verify = false
    writes tls=off / tls_skip_verify=off on the server. The provider only
    wrote the two fields when they were true, so turning them off sent nothing
    and the server kept its old on value
    (#​1331).

  • minio_server_config_scanner stores excess_versions and excess_folders
    as alert_excess_versions and alert_excess_folders. MinIO's scanner
    subsystem has no excess_* keys and glued the unknown key onto the value
    written before it, which corrupted cycle and left the configured
    thresholds at the server defaults. The Terraform attributes keep their
    names. The old provider's unknown excess keys were glued onto the value
    written before them, usually cycle, so a scanner configuration an older
    provider wrote shows one diff on that attribute, and the next apply
    rewrites it
    (#​1322).

  • minio_logger_webhook and minio_audit_kafka no longer corrupt their
    configuration when queue_limit is set. Those MinIO subsystems size their
    queue with queue_size and have no queue_limit key, and MinIO glued the
    unknown key onto the value written before it, so the comment, queue_dir
    or the Kafka topic was stored with queue_limit=N appended. Both
    resources now have a queue_size attribute; queue_limit is deprecated
    and sent as queue_size when queue_size is not set, and the two cannot
    be set together. A target an older provider wrote with queue_limit shows
    one queue_limit diff (the server still holds the default queue size), and
    the next apply writes every key again, which also repairs the value
    queue_limit was glued onto.

  • minio_notify_nats no longer sends user_credentials. MinIO's
    notify_nats has no such key and glued it onto the value written before
    it, which corrupted the subject, the password or the token. The
    attribute is deprecated and ignored; use username and password, or
    token.

  • minio_notify_mysql writes the connection string to the server. The
    provider sent it as connection_string, a key notify_mysql does not have,
    so MinIO dropped it and every MySQL target was stored without a DSN. It is
    now written and read as dsn_string, the key MinIO uses. Existing MySQL
    targets show one connection_string diff, and the next apply stores the DSN.

  • The minio_notify_* data sources keep the Sensitive flag of the
    resource attributes they copy, so a secret the server returns in clear,
    such as the MySQL DSN with its password, is hidden in plan output. An
    output that references one of those attributes now needs
    sensitive = true.

  • minio_notify_kafka, minio_notify_mqtt and minio_notify_nats no longer
    show a permanent diff for a value MinIO fills in on its own:
    sasl_mechanism (kafka), keep_alive_interval and reconnect_interval
    (mqtt), and ping_interval (nats). After a restart the server returns its
    default for these fields even when the configuration doesn't set them, and
    every plan proposed to remove it. They now accept the server's value when
    the configuration leaves them out
    (#​1307).

  • minio_audit_webhook reads enable from the server, so turning the webhook
    on or off outside Terraform shows up in the plan and the next apply puts the
    configured value back. Import now sets enable too. A webhook that an older
    provider wrote as enabled while the configuration says enable = false
    shows one enable diff, and the next apply disables it
    (#​1317).

  • minio_ilm_tier no longer drops a tier from state right after it was
    created. The tier list appears to lag behind AddTier, so the read after
    create missed the new tier and the apply failed with "Provider produced
    inconsistent result after apply". The read right after create now polls for
    the tier instead of treating it as removed
    (#​1309).

  • minio_iam_idp_ldap, minio_iam_idp_openid and minio_audit_webhook with
    enable = false are written as enable=off on the server. The field was
    read from the configuration through a helper that treated false as unset
    and substituted the default true, so the server kept them enabled
    (#​1305).

  • A minio_notify_*, minio_logger_webhook or minio_audit_kafka target that
    was deleted outside Terraform (for example with mc admin config reset) is
    removed from the state and recreated by the next apply. The read treated the
    there is no target answer as a restart still pending, so the plan never
    noticed the target was gone. Now that answer is only kept while
    restart_required says the server has not applied this target's config yet
    (#​1306).

  • A minio_notify_*, minio_logger_webhook or minio_audit_kafka target keeps
    its planned values in state while MinIO needs a restart to apply a change.
    The read right after a write loaded the pre-restart config back, so the plan
    that followed a successful apply showed the same change again.
    restart_required now clears on its own once the server reports the new
    values. A target with enable = false is also written as enable=off; it
    used to be written enabled, so state and server never agreed after a
    restart. Such existing targets show one enable diff and get corrected on
    the next apply. The minio_notify_* data sources now report enable too,
    instead of leaving it empty.

  • Config values containing backslashes, for example a Windows path like
    C:\path to\dir, are stored as written instead of with doubled
    backslashes, so the plan stops showing the same change over and over.
    Values MinIO cannot represent, one starting or ending with a double
    or single quote, containing a double quote together with whitespace,
    or containing a line break, are rejected at plan time with a clear error
    instead of never converging. That rejection also applies when the
    field is a secret that MinIO never returns (auth_token,
    client_secret, lookup_bind_password, client_key), where the old
    config applied cleanly but kept a mangled value on the server.
    Affected resources are minio_notify_*, minio_logger_webhook,
    minio_audit_kafka, minio_audit_webhook, minio_iam_idp_ldap,
    minio_iam_idp_openid, minio_server_config_region and
    minio_server_config_etcd
    (#​1300).

Removed
  • minio_s3_incomplete_upload_cleanup no longer advertises Terraform import,
    because it is a stateless cleanup action whose triggers map is not stored
    by MinIO; importing could re-run cleanup on Update or plan changes on the
    next apply. Use moved blocks or terraform state mv to move existing
    resources between configurations
    (#​1408).
  • minio_service_action and minio_prometheus_bearer_token no longer
    advertise Terraform import, because MinIO stores neither past service
    actions nor locally signed Prometheus bearer tokens. Importing either
    resource forced replacement on the next plan (minio_service_action) or
    re-ran the action on the next apply; use moved blocks or terraform state mv
    to move existing resources between configurations
    (#​1379).
  • minio_bucket_metadata_import no longer advertises Terraform import, because
    every import failed with Bucket name cannot be empty and MinIO does not
    retain the applied metadata zip. Applying the resource sends the zip again
    (#​1374).

v3.46.4

Compare Source

Fixed
  • Config values that MinIO prints in double quotes because they contain a
    space, such as comment = "primary webhook", are read back whole. The
    minio_notify_*, minio_audit_webhook, minio_iam_idp_ldap and
    minio_server_config_* resources stored only "primary and showed the
    same change on every plan.
  • Removing comment or queue_dir from a minio_notify_* resource clears it
    on the server. MinIO merges a config update into the target's current
    settings, so the old value stayed and every plan showed the removal again.
    Read also picks up a comment or queue directory cleared outside Terraform.
  • minio_s3_bucket_object_lock_configuration clears rule from the state when
    the bucket's default retention was removed outside Terraform. The old rule
    stayed in the state, so the plan showed no change and the retention was never
    put back.
  • The minio_ilm_policy data source reports errors from reading the bucket
    lifecycle (missing bucket, permissions, server error) instead of returning an
    empty rules list, which read as "this bucket has no lifecycle rules". A
    bucket without lifecycle rules still reads as empty. A key without
    s3:GetLifecycleConfiguration now fails the read. With s3_compat_mode, a
    backend that does not implement bucket lifecycle gives a warning.
    (#​1282).
  • minio_ilm_policy removes the bucket's lifecycle configuration when an
    update leaves only abort-only rules (abort_incomplete_multipart_upload
    without another action). The old rules, for example an expiration, stayed
    on the bucket and every plan showed the same change again
    (#​1286).
Security
  • Bumped the Go toolchain from go1.26.10 to go1.26.11, which fixes
    GO-2026-6859: an HTTP/1 server
    using MaxBytesReader could crash on a header race in net/http. The
    provider only makes HTTP client calls, so it was not exposed, but release
    binaries are built with this toolchain and the security scan blocks every
    pull request until it moves.

Configuration

📅 Schedule: (in timezone Europe/Helsinki)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [minio](https://search.opentofu.org/provider/aminueza/minio) ([source](https://github.com/aminueza/terraform-provider-minio)) | required_provider | minor | `3.46.3` → `3.47.0` | --- > ⚠️ **Warning** > > Some dependencies could not be looked up. Check the warning logs for more information. --- ### Release Notes <details> <summary>aminueza/terraform-provider-minio (minio)</summary> ### [`v3.47.0`](https://github.com/aminueza/terraform-provider-minio/blob/HEAD/CHANGELOG.md#3470---2026-11-24) [Compare Source](https://github.com/aminueza/terraform-provider-minio/compare/v3.46.4...v3.47.0) ##### Added - `minio_notify_amqp` and its data source expose `publisher_confirms`. With it on, MinIO waits for the broker to confirm each published message and treats a rejected publish as an error; pair it with `queue_dir` for guaranteed delivery ([#&#8203;1371](https://github.com/aminueza/terraform-provider-minio/issues/1371)). - `minio_server_config_api` exposes the remaining keys of the `api` subsystem as optional attributes: `delete_cleanup_interval`, `gzip_objects`, `list_quorum`, `object_max_versions`, `odirect`, `replication_max_lrg_workers`, `replication_max_workers` and `replication_priority`. Setting `odirect = false` also writes `disable_odirect=on`, because MinIO keeps O_DIRECT on while that key is unset ([#&#8203;1327](https://github.com/aminueza/terraform-provider-minio/issues/1327)). - `minio_server_config_policy_plugin`: manages the `policy_plugin` subsystem, which routes every authorization decision to an external service such as Open Policy Agent. The fields map the subsystem's keys: `url`, `auth_token`, `enable_http2` and `comment` ([#&#8203;1326](https://github.com/aminueza/terraform-provider-minio/issues/1326)). - `minio_server_config_site`: manages the `site` subsystem, MinIO's replacement for the legacy `region` subsystem. The fields map the subsystem's keys: `name`, `region` and `comment`; when both the site region and the legacy `region` subsystem are set, the site region takes precedence for the region MinIO reports ([#&#8203;1323](https://github.com/aminueza/terraform-provider-minio/issues/1323)). - `minio_server_config_browser`: manages the `browser` subsystem, which sets the security headers of the embedded console. The fields map the subsystem's keys: `csp_policy`, `hsts_seconds`, `hsts_include_subdomains`, `hsts_preload` and `referrer_policy` ([#&#8203;1325](https://github.com/aminueza/terraform-provider-minio/issues/1325)). - `minio_server_config_compression`: manages the `compression` subsystem, which controls transparent object compression. The fields map the subsystem's keys: `enable`, `extensions`, `mime_types`, `allow_encryption` and `comment` ([#&#8203;1324](https://github.com/aminueza/terraform-provider-minio/issues/1324)). ##### Changed - `minio_notify_webhook`, `minio_notify_nats`, `minio_notify_kafka`, `minio_logger_webhook`, `minio_audit_webhook`, `minio_audit_kafka`, and `minio_server_config_etcd` now require the private key path (`client_key`, `client_tls_key`, `client_cert_key`) whenever the matching certificate path is set: MinIO only accepts the pair together, and a certificate-only configuration would plan to clear the key the server holds. Configurations that manage an imported target holding both and declare only the certificate now fail at plan time, so declare the key path next to the certificate ([#&#8203;1355](https://github.com/aminueza/terraform-provider-minio/issues/1355)). - `minio_iam_group`, `minio_iam_policy`, `minio_iam_group_policy`, and `minio_s3_bucket` now fail to create when an object with that name already exists instead of taking over or overwriting the existing object. Import existing objects with `terraform import` (or an `import` block) to manage them. Create now looks up IAM groups and policies first, so provider credentials must also allow reading them (`GetGroupDescription`, `InfoCannedPolicy`). `minio_iam_group` must be referenced by attribute from membership resources (`minio_iam_group_membership`, `minio_iam_group_user_attachment`, `minio_iam_user_group_membership`): a membership resource with a literal group name that applies first creates the group implicitly, and the group resource then fails to create ([#&#8203;1393](https://github.com/aminueza/terraform-provider-minio/issues/1393)). - `minio_notify_kafka`, `minio_audit_kafka`, and `data.minio_notify_kafka` now expose `sasl` as a boolean defaulting to `false`, sent to MinIO as `sasl=on`/`sasl=off`. Configurations that set `sasl_username` or `sasl_password` without `sasl = true` now fail at plan time instead of the credentials being silently ignored by MinIO, so add `sasl = true` where SASL authentication is intended. Setups that worked around the missing attribute by setting `sasl=on` outside Terraform will now see their plan fail until `sasl = true` is added ([#&#8203;1358](https://github.com/aminueza/terraform-provider-minio/issues/1358)). - `minio_iam_user_policy_attachment`, `minio_iam_group_policy_attachment` and `minio_iam_group_user_attachment` now store their import format as `id` (`<user_name>/<policy_name>`, `<group_name>/<policy_name>` and `<group_name>/<user_name>`) instead of a random `id.PrefixedUniqueId`, so stored IDs can be fed directly back into `terraform import` and `import` blocks. Existing states migrate to the new ID in place on the next refresh with an empty plan and no replacement. The attachment's own plan stays empty, but anything that reads the attachment's `.id` (outputs, `null_resource` triggers, tags built from it) will see the new value after the first refresh ([#&#8203;1359](https://github.com/aminueza/terraform-provider-minio/issues/1359)). - `minio_iam_group_policy` now validates `group` against the static group name pattern only (LDAP Distinguished Names, which can contain `:`, are rejected at plan time) and actually attaches its canned policy to `group` on create and detaches it before deleting the policy. Existing configurations whose `group` contained `:` must update `group`, and configurations that relied on `minio_iam_group_policy` only to create an unattached canned policy must migrate to `minio_iam_policy`. On the first refresh after upgrading, a previously unattached `minio_iam_group_policy` is dropped from state so the next apply recreates it attached, unless its name was generated by the provider (`name_prefix` or no `name`): dropping a generated-name resource would leak the canned policy, so it stays in state with a warning to run `terraform apply -replace` to reattach. Setups that combined `minio_iam_group_policy` with `minio_iam_group_policy_attachment` to attach the same policy should remove the attachment from the configuration and from state (`terraform state rm` or a `removed` block) instead of destroying it, because destroying the attachment detaches the policy that `minio_iam_group_policy` now manages ([#&#8203;1386](https://github.com/aminueza/terraform-provider-minio/issues/1386)). - `minio_s3_bucket`: `object_locking` changes on an existing bucket (`false` to `true` or `true` to `false`) are now rejected during plan instead of being silently ignored in `Update` or forcing destructive replacement via `ForceNew`. Because `Read` now refreshes `object_locking` from the server instead of keeping stale state, states that previously recorded `object_locking = true` on a bucket created without Object Lock will refresh to `object_locking = false` and fail to plan until the configuration sets `object_locking = false` (matching the live bucket) or the bucket is recreated with `object_locking = true` ([#&#8203;1387](https://github.com/aminueza/terraform-provider-minio/issues/1387)). - `minio_iam_ldap_user_policy_attachment` and `minio_iam_ldap_group_policy_attachment`: resource `id` now stores `<dn>/<policy>` instead of `<policy>/<dn>` to match their documented import format. Existing states migrate to the new ID on the next refresh with an empty plan and no replacement ([#&#8203;1354](https://github.com/aminueza/terraform-provider-minio/issues/1354)). - `minio_iam_users` data source now returns `users` sorted by `name` and derives a deterministic `id` from `status` and `name_prefix` instead of generating a new Unix timestamp on every read ([#&#8203;1367](https://github.com/aminueza/terraform-provider-minio/issues/1367)). - `minio_iam_group_membership`: `id` now stores the `group` name instead of the Terraform-only `name` label, and `name` is no longer `ForceNew`. Existing states created before this change migrate `id` from `name` to `group` on the next refresh with an empty plan and no replacement ([#&#8203;1373](https://github.com/aminueza/terraform-provider-minio/issues/1373)). - `minio_s3_object` now sets `id` to `<bucket_name>/<object_name>` (matching its import format) instead of `<object_name>` alone, so stored IDs can be imported directly and no longer collide across buckets. Existing states migrate on the next refresh without replacement ([#&#8203;1368](https://github.com/aminueza/terraform-provider-minio/issues/1368)). - `minio_iam_group_user_attachment`: `group_name` now uses `validateMinioIamGroupName` instead of the policy name validator, allowing group names longer than 96 characters while rejecting `:` and `/` to match `minio_iam_group`. Configurations attaching users to groups created outside Terraform whose names contain `:` or `/` are rejected at plan time ([#&#8203;1392](https://github.com/aminueza/terraform-provider-minio/issues/1392)). - `minio_s3_bucket_replication`: `rule` is now required with at least one block, so configurations with no `rule` blocks are rejected at plan time (`Insufficient rule blocks`) instead of applying with an empty replication configuration; remove the resource or keep at least one rule. This is a breaking change for configurations that had no `rule` blocks ([#&#8203;1380](https://github.com/aminueza/terraform-provider-minio/issues/1380)). ##### Fixed - `minio_notify_webhook`, `minio_logger_webhook`, `minio_notify_nats`, `minio_notify_kafka`, `minio_audit_kafka`, `minio_audit_webhook`, `minio_server_config_etcd`, and the `minio_notify_webhook`, `minio_notify_kafka`, and `minio_notify_nats` data sources now read `client_key`, `client_tls_key`, and `client_cert_key` back from MinIO when the server returns them, populating them on `terraform import` and detecting out-of-band key path drift while keeping those attributes sensitive ([#&#8203;1355](https://github.com/aminueza/terraform-provider-minio/issues/1355)). - `minio_s3_bucket_replication` no longer crashes the provider when a rule carries an invalid `health_check_period` or `bandwidth_limt`: both fields are now validated at plan time, the duration check uses Go duration syntax instead of a regex that accepted values like `5|`, and invalid values found in state are reported as diagnostics instead of panicking refresh or destroy ([#&#8203;1372](https://github.com/aminueza/terraform-provider-minio/issues/1372)). - `minio_s3_bucket_replication` warns once, not twice, when a target sets `secure = false`. The schema validation and the configuration parsing each emitted the same unsafe-HTTP warning ([#&#8203;1398](https://github.com/aminueza/terraform-provider-minio/pull/1398)). - `minio_audit_webhook` refresh now treats the server's "there is no target" answer as the target having been removed outside Terraform, dropping the resource from state instead of failing the refresh. - Removing optional notification fields now clears them on the server: `minio_notify_webhook`, `minio_logger_webhook`, `minio_notify_nats`, `minio_notify_kafka`, `minio_audit_kafka`, `minio_notify_mqtt`, `minio_notify_elasticsearch`, `minio_notify_redis` and `minio_notify_amqp` send explicit empty values for removed credentials, certificates and plain options instead of leaving the old server value in place; removing the readable half of a certificate or credential pair also clears the paired secret, including after import when the secret is not in state; and values cleared outside Terraform are now picked up by refresh ([#&#8203;1353](https://github.com/aminueza/terraform-provider-minio/issues/1353)). - `minio_iam_group_policy` now attaches the created canned policy to `group`, detaches it on delete without disturbing other policies attached to the group, drops state when the policy is detached outside Terraform so the next plan shows a create, rejects malformed import IDs such as `"developer"` with `unexpected format of ID ("developer"), expected <group-name>:<policy-name>` instead of panicking, and documents the `<group-name>:<policy-name>` import format ([#&#8203;1386](https://github.com/aminueza/terraform-provider-minio/issues/1386)). - `minio_s3_bucket`: `Read` (and therefore `terraform import`) now refreshes `object_locking` via `GetObjectLockConfig` instead of silently leaving stale state or swallowing non-not-found errors during import, and removes the stale claim that Object Lock can be added to existing buckets on `RELEASE.2025-05-20T20-30-00Z+` ([#&#8203;1387](https://github.com/aminueza/terraform-provider-minio/issues/1387)). - `minio_iam_ldap_user_policy_attachment` and `minio_iam_ldap_group_policy_attachment`: importer format errors now name `<dn>/<policy-name>`, IDs still in the old `<policy>/<dn>` order are rejected with that message instead of importing into a resource that Read immediately drops, and the LDAP group read error no longer mentions a user ([#&#8203;1354](https://github.com/aminueza/terraform-provider-minio/issues/1354)). - `minio_iam_users` data source now populates `policy_names` and `member_of_groups` from `ListUsers`, and documents that service accounts are omitted and LDAP policy-mapped users appear under their DN ([#&#8203;1367](https://github.com/aminueza/terraform-provider-minio/issues/1367)). - `data.minio_s3_object` now formats `last_modified` and non-zero `expires` as RFC 3339 strings instead of passing `time.Time` values into string schema attributes (which dropped both fields and panicked under `TF_ACC`), and returns `d.Set` errors through `NewResourceError` ([#&#8203;1356](https://github.com/aminueza/terraform-provider-minio/issues/1356)). - `minio_iam_group_membership`: `terraform import` (by `group` name) now populates state instead of querying an empty group name, fails cleanly when the group does not exist, and lets the first apply after import set `name` in state in place without recreating the membership ([#&#8203;1373](https://github.com/aminueza/terraform-provider-minio/issues/1373)). - `minio_s3_bucket_replication` Read and delete treat `NoSuchBucket` as already removed, so deleting the source bucket outside Terraform plans a recreation instead of failing every plan and destroy, and `minioPutBucketReplication` returns an error if called with no rules ([#&#8203;1380](https://github.com/aminueza/terraform-provider-minio/issues/1380)). - `minio_iam_policy` and `minio_iam_group_policy` now mark `name_prefix` as `Computed` and recover it from generated policy names ending with Terraform's 26-character unique ID suffix on read/import (`""` for plain `name` policies), so importing either resource preserves `name_prefix` without forcing replacement on the next plan ([#&#8203;1384](https://github.com/aminueza/terraform-provider-minio/issues/1384)). - `minio_iam_group_user_attachment`, `minio_iam_group_policy_attachment` and `minio_iam_user_group_membership` drop the attachment or membership from state when their group or user is deleted outside Terraform ([#&#8203;1377](https://github.com/aminueza/terraform-provider-minio/issues/1377)). - `minio_s3_object_legal_hold` and `minio_s3_object_retention` now import objects whose key contains `#`: the stored ID keeps the key intact by ending with `#` when there is no version, `minio_s3_object_legal_hold` reads an object that never had a legal hold as `status = "OFF"` instead of failing, `minio_s3_object_retention` drops the resource for a deleted version or bucket as the legal hold resource already did, and an import ID with no key is rejected before any API call ([#&#8203;1378](https://github.com/aminueza/terraform-provider-minio/issues/1378)). - `minio_iam_policy`, `minio_iam_group_policy`, and the policy attachment resources (`minio_iam_group_policy_attachment`, `minio_iam_user_policy_attachment`, `minio_iam_ldap_group_policy_attachment`, `minio_iam_ldap_user_policy_attachment`) now accept policy names up to 255 characters and reject commas, while `name_prefix` allows up to 229 characters (255 minus the 26-character generated suffix) ([#&#8203;1392](https://github.com/aminueza/terraform-provider-minio/issues/1392)). - `minio_prometheus_bearer_token` validates `limit` (1 to [`2562047`](https://github.com/aminueza/terraform-provider-minio/commit/2562047) hours) and `expires_in` (a whole number of hours above zero) at plan time, instead of wrapping into a token that is already expired or failing at apply. Read now plans a new token once `token_expiry` has passed, and the docs say that a new token or a destroy does not revoke the old one ([#&#8203;1388](https://github.com/aminueza/terraform-provider-minio/issues/1388)). - `minio_iam_group_membership` no longer deletes the group when removed with no users in state, and `userToADD`/`userToRemove` return group lookup errors instead of panicking ([#&#8203;1376](https://github.com/aminueza/terraform-provider-minio/issues/1376)). - `minio_iam_user` now fails to create when a user with that name already exists, instead of replacing its secret and status. Import the existing user with `terraform import` (or an `import` block) to manage it. Create now reads the user first, so the provider credential must also be allowed to read user info (`admin:GetUser`). - `minio_s3_bucket_object_lock_configuration` now requires `days` or `years` on `rule.default_retention` at plan time (`ExactlyOneOf`), and both `minio_s3_bucket_object_lock_configuration` and `minio_s3_bucket_retention` check object lock before versioning so buckets created without object lock report the object lock error directly instead of asking for versioning first ([#&#8203;1391](https://github.com/aminueza/terraform-provider-minio/issues/1391)). - The `minio_s3_bucket_quota`, `minio_s3_bucket_policy`, `minio_s3_bucket_tags`, `minio_s3_bucket_cors_config`, `minio_s3_bucket_replication`, `minio_s3_bucket_replication_status`, `minio_s3_bucket_replication_metrics`, `minio_s3_bucket_notification_config`, `minio_iam_groups` and `minio_iam_user_policies` data sources return API errors instead of empty or zero values, so a missing bucket, a server that is down or missing permissions fail the read. A bucket with nothing configured still reads as empty, and a backend without the feature under `s3_compat_mode` gives a warning ([#&#8203;1375](https://github.com/aminueza/terraform-provider-minio/issues/1375)). - `minio_iam_group` no longer attaches the built-in `readonly` policy during delete. Check groups whose destroy failed before this fix with `mc admin group info` and detach `readonly` if it was not intentionally assigned ([#&#8203;1385](https://github.com/aminueza/terraform-provider-minio/issues/1385)). - `minio_iam_ldap_user_policy_attachment` and `minio_iam_ldap_group_policy_attachment` read the policies of their own user or group. They used to check whether any LDAP user or group had the policy, so a policy detached outside Terraform stayed in the state as long as some other entity still had it, and the next apply did not attach it again. - Removing `auth_token`, `client_cert` or `client_key` from a `minio_audit_webhook` clears it on the server. MinIO merges a config update into the target's current settings, so the old value stayed: audit events kept going out with the old token or certificate, and a removed `client_cert` came back on every plan. Removing `client_cert` also clears a `client_key` that is not in the configuration, such as an imported one, since MinIO only accepts the two as a pair. Read also picks up a client certificate cleared outside Terraform. - `minio_notify_amqp` and `minio_notify_elasticsearch` read `url` back from the server, and `minio_notify_postgres` reads `connection_string`, so a change made outside Terraform shows up in the plan and the next apply puts the configured value back. The matching data sources now return these values too, so they are stored in the state in clear text (they stay marked sensitive, which only hides them in the CLI output). A target whose stored value already differs from the configuration shows one diff on the first plan after upgrading ([#&#8203;1328](https://github.com/aminueza/terraform-provider-minio/issues/1328)). - `minio_iam_idp_ldap` sends `lookup_bind_dn`, `user_dn_search_base_dn`, `user_dn_search_filter`, `group_search_base_dn` and `group_search_filter` empty when they are removed from the configuration. The provider skipped empty values and MinIO keeps a key a write leaves out, so the old value stayed on the server and the read loaded it back into state. With LDAP enabled, MinIO accepts removing the two group search keys together; it rejects removing the bind DN, a user search key or one group key alone, so that apply now fails with MinIO's error instead of doing nothing. With `enable = false` every one of them can be removed. `lookup_bind_password` is still sent only when set, because the server never returns it ([#&#8203;1348](https://github.com/aminueza/terraform-provider-minio/issues/1348)). - `minio_iam_idp_ldap` keeps its planned values in state while MinIO needs a restart to apply a change. The read right after a write loaded the pre-restart config back, so `server_addr` ended up empty in the state and `server_insecure`, `tls_skip_verify` and `starttls` false, while `enable` was not affected, and the plan that followed a successful apply showed the same change again. `restart_required` now clears on its own once the server reports the configured values ([#&#8203;1318](https://github.com/aminueza/terraform-provider-minio/issues/1318)). - `minio_s3_bucket` reads the bucket quota back from the server, so a quota changed or cleared outside Terraform shows up in the plan and the next apply puts the configured value back. A bucket whose quota is managed by `minio_s3_bucket_quota` shows no diff ([#&#8203;1334](https://github.com/aminueza/terraform-provider-minio/issues/1334)). - `minio_s3_bucket` reads the bucket policy back and derives `acl` from it, so removing or changing the policy outside Terraform shows up in the plan and the next apply puts the configured ACL back. A bucket whose `acl` is `private` leaves the bucket policy to the resources that manage it (`minio_s3_bucket_policy`, `minio_s3_bucket_anonymous_access`), so a public policy added outside Terraform to such a bucket is not detected. A public `acl` whose policy was replaced by a custom `minio_s3_bucket_policy` keeps that policy, because the read cannot tell it apart from one another resource manages. Credentials without `s3:GetBucketPolicy` keep refreshing: the read keeps `acl` as it is and logs a warning. When upgrading, check for a non-private `acl` paired with another resource that writes a different canned shape (for example `acl = "public"` plus `minio_s3_bucket_anonymous_access` with `access_type = "public-read"`): the two now rewrite each other's policy on every apply, where the previous read left it silently in place. The fix is to drop `acl` from the bucket ([#&#8203;1333](https://github.com/aminueza/terraform-provider-minio/issues/1333)). - `minio_s3_bucket_anonymous_access` with `access_type` now shows a diff when the bucket policy is removed outside Terraform, or replaced with one that matches no canned shape. The read kept the state's `access_type` when the server's policy no longer matched it, so the plan stayed empty and the next apply never restored the anonymous access. The read now drops `access_type` in that case, so the drift shows up in the plan and the next apply puts the configured access back ([#&#8203;1332](https://github.com/aminueza/terraform-provider-minio/issues/1332)). - `minio_s3_object` detects the object being overwritten outside Terraform. The configured `content`, `content_base64` or `source` is MD5-hashed at plan time and compared against the stored `etag`, so overwriting the object shows a diff and the next apply re-uploads the configured content. An overwrite whose ETag is not a bare MD5 (a multipart or streamed upload) is not detected ([#&#8203;1330](https://github.com/aminueza/terraform-provider-minio/issues/1330)). - `minio_iam_user` reads `disable_user` from the server, so enabling or disabling a user outside Terraform (for example with `mc admin user enable`/`disable`) shows up in the plan and the next apply restores the configured value. The read only wrote the server status to the computed `status` and never touched `disable_user`, so the change was silently carried in state with no diff. A user whose status already drifted shows one `disable_user` diff on the first plan after upgrading, and the next apply restores the configured status ([#&#8203;1329](https://github.com/aminueza/terraform-provider-minio/issues/1329)). - `minio_audit_kafka` with `tls = false` or `tls_skip_verify = false` writes `tls=off` / `tls_skip_verify=off` on the server. The provider only wrote the two fields when they were true, so turning them off sent nothing and the server kept its old `on` value ([#&#8203;1331](https://github.com/aminueza/terraform-provider-minio/issues/1331)). - `minio_server_config_scanner` stores `excess_versions` and `excess_folders` as `alert_excess_versions` and `alert_excess_folders`. MinIO's `scanner` subsystem has no `excess_*` keys and glued the unknown key onto the value written before it, which corrupted `cycle` and left the configured thresholds at the server defaults. The Terraform attributes keep their names. The old provider's unknown excess keys were glued onto the value written before them, usually `cycle`, so a scanner configuration an older provider wrote shows one diff on that attribute, and the next apply rewrites it ([#&#8203;1322](https://github.com/aminueza/terraform-provider-minio/issues/1322)). - `minio_logger_webhook` and `minio_audit_kafka` no longer corrupt their configuration when `queue_limit` is set. Those MinIO subsystems size their queue with `queue_size` and have no `queue_limit` key, and MinIO glued the unknown key onto the value written before it, so the `comment`, `queue_dir` or the Kafka `topic` was stored with ` queue_limit=N` appended. Both resources now have a `queue_size` attribute; `queue_limit` is deprecated and sent as `queue_size` when `queue_size` is not set, and the two cannot be set together. A target an older provider wrote with `queue_limit` shows one `queue_limit` diff (the server still holds the default queue size), and the next apply writes every key again, which also repairs the value `queue_limit` was glued onto. - `minio_notify_nats` no longer sends `user_credentials`. MinIO's `notify_nats` has no such key and glued it onto the value written before it, which corrupted the `subject`, the password or the token. The attribute is deprecated and ignored; use `username` and `password`, or `token`. - `minio_notify_mysql` writes the connection string to the server. The provider sent it as `connection_string`, a key `notify_mysql` does not have, so MinIO dropped it and every MySQL target was stored without a DSN. It is now written and read as `dsn_string`, the key MinIO uses. Existing MySQL targets show one `connection_string` diff, and the next apply stores the DSN. - The `minio_notify_*` data sources keep the `Sensitive` flag of the resource attributes they copy, so a secret the server returns in clear, such as the MySQL DSN with its password, is hidden in plan output. An `output` that references one of those attributes now needs `sensitive = true`. - `minio_notify_kafka`, `minio_notify_mqtt` and `minio_notify_nats` no longer show a permanent diff for a value MinIO fills in on its own: `sasl_mechanism` (kafka), `keep_alive_interval` and `reconnect_interval` (mqtt), and `ping_interval` (nats). After a restart the server returns its default for these fields even when the configuration doesn't set them, and every plan proposed to remove it. They now accept the server's value when the configuration leaves them out ([#&#8203;1307](https://github.com/aminueza/terraform-provider-minio/issues/1307)). - `minio_audit_webhook` reads `enable` from the server, so turning the webhook on or off outside Terraform shows up in the plan and the next apply puts the configured value back. Import now sets `enable` too. A webhook that an older provider wrote as enabled while the configuration says `enable = false` shows one `enable` diff, and the next apply disables it ([#&#8203;1317](https://github.com/aminueza/terraform-provider-minio/issues/1317)). - `minio_ilm_tier` no longer drops a tier from state right after it was created. The tier list appears to lag behind `AddTier`, so the read after create missed the new tier and the apply failed with "Provider produced inconsistent result after apply". The read right after create now polls for the tier instead of treating it as removed ([#&#8203;1309](https://github.com/aminueza/terraform-provider-minio/issues/1309)). - `minio_iam_idp_ldap`, `minio_iam_idp_openid` and `minio_audit_webhook` with `enable = false` are written as `enable=off` on the server. The field was read from the configuration through a helper that treated `false` as unset and substituted the default `true`, so the server kept them enabled ([#&#8203;1305](https://github.com/aminueza/terraform-provider-minio/issues/1305)). - A `minio_notify_*`, `minio_logger_webhook` or `minio_audit_kafka` target that was deleted outside Terraform (for example with `mc admin config reset`) is removed from the state and recreated by the next apply. The read treated the `there is no target` answer as a restart still pending, so the plan never noticed the target was gone. Now that answer is only kept while `restart_required` says the server has not applied this target's config yet ([#&#8203;1306](https://github.com/aminueza/terraform-provider-minio/issues/1306)). - A `minio_notify_*`, `minio_logger_webhook` or `minio_audit_kafka` target keeps its planned values in state while MinIO needs a restart to apply a change. The read right after a write loaded the pre-restart config back, so the plan that followed a successful apply showed the same change again. `restart_required` now clears on its own once the server reports the new values. A target with `enable = false` is also written as `enable=off`; it used to be written enabled, so state and server never agreed after a restart. Such existing targets show one `enable` diff and get corrected on the next apply. The `minio_notify_*` data sources now report `enable` too, instead of leaving it empty. - Config values containing backslashes, for example a Windows path like `C:\path to\dir`, are stored as written instead of with doubled backslashes, so the plan stops showing the same change over and over. Values MinIO cannot represent, one starting or ending with a double or single quote, containing a double quote together with whitespace, or containing a line break, are rejected at plan time with a clear error instead of never converging. That rejection also applies when the field is a secret that MinIO never returns (auth_token, client_secret, lookup_bind_password, client_key), where the old config applied cleanly but kept a mangled value on the server. Affected resources are `minio_notify_*`, `minio_logger_webhook`, `minio_audit_kafka`, `minio_audit_webhook`, `minio_iam_idp_ldap`, `minio_iam_idp_openid`, `minio_server_config_region` and `minio_server_config_etcd` ([#&#8203;1300](https://github.com/aminueza/terraform-provider-minio/issues/1300)). ##### Removed - `minio_s3_incomplete_upload_cleanup` no longer advertises Terraform import, because it is a stateless cleanup action whose `triggers` map is not stored by MinIO; importing could re-run cleanup on Update or plan changes on the next apply. Use `moved` blocks or `terraform state mv` to move existing resources between configurations ([#&#8203;1408](https://github.com/aminueza/terraform-provider-minio/issues/1408)). - `minio_service_action` and `minio_prometheus_bearer_token` no longer advertise Terraform import, because MinIO stores neither past service actions nor locally signed Prometheus bearer tokens. Importing either resource forced replacement on the next plan (`minio_service_action`) or re-ran the action on the next apply; use `moved` blocks or `terraform state mv` to move existing resources between configurations ([#&#8203;1379](https://github.com/aminueza/terraform-provider-minio/issues/1379)). - `minio_bucket_metadata_import` no longer advertises Terraform import, because every import failed with `Bucket name cannot be empty` and MinIO does not retain the applied metadata zip. Applying the resource sends the zip again ([#&#8203;1374](https://github.com/aminueza/terraform-provider-minio/issues/1374)). ### [`v3.46.4`](https://github.com/aminueza/terraform-provider-minio/blob/HEAD/CHANGELOG.md#3464---2026-11-17) [Compare Source](https://github.com/aminueza/terraform-provider-minio/compare/v3.46.3...v3.46.4) ##### Fixed - Config values that MinIO prints in double quotes because they contain a space, such as `comment = "primary webhook"`, are read back whole. The `minio_notify_*`, `minio_audit_webhook`, `minio_iam_idp_ldap` and `minio_server_config_*` resources stored only `"primary` and showed the same change on every plan. - Removing `comment` or `queue_dir` from a `minio_notify_*` resource clears it on the server. MinIO merges a config update into the target's current settings, so the old value stayed and every plan showed the removal again. Read also picks up a comment or queue directory cleared outside Terraform. - `minio_s3_bucket_object_lock_configuration` clears `rule` from the state when the bucket's default retention was removed outside Terraform. The old rule stayed in the state, so the plan showed no change and the retention was never put back. - The `minio_ilm_policy` data source reports errors from reading the bucket lifecycle (missing bucket, permissions, server error) instead of returning an empty `rules` list, which read as "this bucket has no lifecycle rules". A bucket without lifecycle rules still reads as empty. A key without `s3:GetLifecycleConfiguration` now fails the read. With `s3_compat_mode`, a backend that does not implement bucket lifecycle gives a warning. ([#&#8203;1282](https://github.com/aminueza/terraform-provider-minio/issues/1282)). - `minio_ilm_policy` removes the bucket's lifecycle configuration when an update leaves only abort-only rules (`abort_incomplete_multipart_upload` without another action). The old rules, for example an `expiration`, stayed on the bucket and every plan showed the same change again ([#&#8203;1286](https://github.com/aminueza/terraform-provider-minio/issues/1286)). ##### Security - Bumped the Go toolchain from go1.26.10 to go1.26.11, which fixes [GO-2026-6859](https://pkg.go.dev/vuln/GO-2026-6859): an HTTP/1 server using `MaxBytesReader` could crash on a header race in `net/http`. The provider only makes HTTP client calls, so it was not exposed, but release binaries are built with this toolchain and the security scan blocks every pull request until it moves. </details> --- ### Configuration 📅 **Schedule**: (in timezone Europe/Helsinki) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMzYuMiIsInVwZGF0ZWRJblZlciI6IjQ0LjIzNi4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->
renovate-bot force-pushed renovate/minio-3.x-lockfile from 099a9c4250 to 9b67ab2e8a
All checks were successful
nixos / nixos (push) Successful in 24s
2026-11-18 08:53:01 +00:00
Compare
renovate-bot force-pushed renovate/minio-3.x-lockfile from 9b67ab2e8a
All checks were successful
nixos / nixos (push) Successful in 24s
to 3706ee2662 2026-11-19 05:53:07 +00:00
Compare
renovate-bot force-pushed renovate/minio-3.x-lockfile from 3706ee2662 to 3923936ae9 2026-11-24 13:53:09 +00:00 Compare
renovate-bot changed title from deps: Update Terraform minio to v3.46.4 to deps: Update Terraform minio to v3.47.0 2026-11-24 13:53:13 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'renovate/minio-3.x-lockfile:renovate/minio-3.x-lockfile'
git switch 'renovate/minio-3.x-lockfile'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'renovate/minio-3.x-lockfile'
git switch 'renovate/minio-3.x-lockfile'
git rebase 'main'
git switch 'main'
git merge --ff-only 'renovate/minio-3.x-lockfile'
git switch 'renovate/minio-3.x-lockfile'
git rebase 'main'
git switch 'main'
git merge --no-ff 'renovate/minio-3.x-lockfile'
git switch 'main'
git merge --squash 'renovate/minio-3.x-lockfile'
git switch 'main'
git merge --ff-only 'renovate/minio-3.x-lockfile'
git switch 'main'
git merge 'renovate/minio-3.x-lockfile'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
asxpi/iac!13
No description provided.