aminueza / terraform-provider-minio

Terraform provider for managing MinIO S3 buckets and IAM Users.
https://registry.terraform.io/providers/aminueza/minio
GNU Affero General Public License v3.0
233 stars 69 forks source link

Returned bucket_domain_name is wrong #548

Open Routhinator opened 10 months ago

Routhinator commented 10 months ago

Description

The returned endpoint URL in the bucket_domain_name property is wrong. It contains an extra /minio/ path which is not returned when getting a presigned URL from the GUI.

Steps to Reproduce

  1. Deploy MiniO behind a proxy, in my case behind traefik on truenas
  2. Create a bucket using this provider
  3. Returned url contains an extra /minio/ in the path.

Expected behavior:

I expect that the URL returned by the resource would be the same as the URL minio gives from the UI for a presigned URL.

In this case:

https://s3.home.routh.io/loki-logs

Actual behavior:

UI returns https://s3.home.routh.io/loki-logs/******* for presigned urls

This provider is returning https://s3.home.routh.io/minio/loki-logs/

Reproduces how often:

100%

Versions

Not required yet

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.

Routhinator commented 10 months ago

FWIW I think this may be a config thing on the minio side - however since it only seems to affect the output from this provider I need some idea of what to look for. This may end up being a ticket that adds to the documentation.