Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix implied policy in service account #584

Merged
merged 2 commits into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "3"
services:
minio:
image: minio/minio:RELEASE.2023-08-31T15-31-16Z
image: minio/minio:RELEASE.2024-10-02T17-50-41Z
ports:
- "9000:9000"
- "9001:9001"
Expand All @@ -13,7 +13,7 @@ services:
MINIO_NOTIFY_WEBHOOK_ENDPOINT_primary: https://webhook.example.com
command: server --console-address :9001 /data{0...3}
secondminio: # This is used to test bucket replication
image: minio/minio:RELEASE.2023-08-31T15-31-16Z
image: minio/minio:RELEASE.2024-10-02T17-50-41Z
ports:
- "9002:9000"
- "9003:9001"
Expand All @@ -25,7 +25,7 @@ services:
MINIO_NOTIFY_WEBHOOK_ENDPOINT_primary: https://webhook.example.com
command: server --console-address :9001 /data{0...3}
thirdminio: # This is used to test bucket replication
image: minio/minio:RELEASE.2023-08-31T15-31-16Z
image: minio/minio:RELEASE.2024-10-02T17-50-41Z
ports:
- "9004:9000"
- "9005:9001"
Expand All @@ -37,7 +37,7 @@ services:
MINIO_NOTIFY_WEBHOOK_ENDPOINT_primary: https://webhook.example.com
command: server --console-address :9001 /data{0...3}
fourthminio: # This is used to test bucket replication
image: minio/minio:RELEASE.2023-08-31T15-31-16Z
image: minio/minio:RELEASE.2024-10-02T17-50-41Z
ports:
- "9006:9000"
- "9007:9001"
Expand Down
5 changes: 3 additions & 2 deletions minio/resource_minio_service_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,9 @@ func minioReadServiceAccount(ctx context.Context, d *schema.ResourceData, meta i
return NewResourceError("reading service account failed", d.Id(), err)
}

_ = d.Set("policy", output.Policy)

if !output.ImpliedPolicy {
_ = d.Set("policy", output.Policy)
}
return nil
}

Expand Down
Loading