Skip to content

Commit 84a09ee

Browse files
committed
fix(vault): enforce idempotency parameter on MinIO local mc alias authentication to resolve bucket provisioning access denied error
1 parent ee733e7 commit 84a09ee

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

QuanuX-Infra/ansible/05-aleph-protocol.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,20 @@
7474
delay: 2
7575
timeout: 30
7676

77+
- name: Remove stale MinIO CLI alias (Idempotency)
78+
command: "mc alias rm myminio"
79+
failed_when: false
80+
changed_when: false
81+
7782
- name: Authenticate MinIO CLI (mc) to local daemon
78-
command: "mc alias set myminio http://127.0.0.1:9000 {{ minio_root_user }} {{ minio_root_password }}"
83+
command: "mc alias set myminio http://127.0.0.1:9000 {{ minio_root_user }} {{ minio_root_password }} --api s3v4"
7984
retries: 5
8085
delay: 5
8186
register: result
8287
until: result.rc == 0
8388

8489
- name: Provision the 'quanux-telemetry' bucket via API
85-
command: "mc mb myminio/quanux-telemetry"
90+
command: "mc mb myminio/quanux-telemetry --insecure"
8691
register: mb_result
8792
failed_when: mb_result.rc != 0 and 'Bucket already exists' not in mb_result.stderr and 'BucketAlreadyOwnedByYou' not in mb_result.stderr
8893
changed_when: "mb_result.rc == 0"

0 commit comments

Comments
 (0)