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

[bitnami/minio] When minio adds the buckets created, it sets the public read permission for buckets, hope add in the provisioning-job.yaml #25437

Closed
liuxin638507 opened this issue Apr 28, 2024 · 4 comments
Assignees
Labels
feature-request minio solved stale 15 days without activity triage Triage is needed

Comments

@liuxin638507
Copy link

liuxin638507 commented Apr 28, 2024

Name and Version

bitnami/minio

What is the problem this feature will solve?

When minio adds the buckets created, it sets the public read permission for buckets

What is the feature you are proposing to solve the problem?

When minio adds the buckets created, it sets the public read permission for buckets
this is my job

            - "/bin/bash"
            - "-c"
            - |
              set -e
              ############################################
              # MinIO 
              MINIO_HOST="http://minio:9000"
              MINIO_ACCESS_KEY={{ .Values.auth.rootUser }}
              MINIO_SECRET_KEY={{ .Values.auth.rootPassword }}

              # BUCKET_LIST
              BUCKET_LIST=("test1" "test2" "test3")
              ############################################

              while true; do
                if curl --output /dev/null --silent --head --fail $MINIO_HOST/minio/health/live; then
                  echo "$MINIO_HOST 检测成功"
                  break
                  else
                    echo "$MINIO_HOST 检测失败"
                    sleep 5
                  fi
                done
              mc config host add myminio $MINIO_HOST $MINIO_ACCESS_KEY $MINIO_SECRET_KEY

              for bucket in ${BUCKET_LIST[@]}; do
                if ! mc ls myminio/$bucket >/dev/null 2>&1; then
                  mc mb myminio/$bucket
                  echo "Bucket $bucket created."
                  mc anonymous set download myminio/$bucket
                else
                  echo "Bucket $bucket already exists."
                  if mc anonymous get myminio/$bucket | grep 'download' >/dev/null 2>&1; then
                    echo Access permission for $bucket is set true
                  else
                    mc anonymous set download myminio/$bucket
                  fi
                fi
              done
@github-actions github-actions bot added the triage Triage is needed label Apr 28, 2024
@liuxin638507 liuxin638507 changed the title [bitnami/minio] When minio adds the buckets created, it sets the public read permission for buckets,hope add the provisioning-job.yaml [bitnami/minio] When minio adds the buckets created, it sets the public read permission for buckets,hope add in the provisioning-job.yaml Apr 28, 2024
@carrodher carrodher changed the title [bitnami/minio] When minio adds the buckets created, it sets the public read permission for buckets,hope add in the provisioning-job.yaml [bitnami/minio] When minio adds the buckets created, it sets the public read permission for buckets, hope add in the provisioning-job.yaml Apr 29, 2024
@carrodher
Copy link
Member

Thank you for bringing this issue to our attention. We appreciate your involvement! If you're interested in contributing a solution, we welcome you to create a pull request. The Bitnami team is excited to review your submission and offer feedback. You can find the contributing guidelines here.

Your contribution will greatly benefit the community. Feel free to reach out if you have any questions or need assistance.

Copy link

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

@github-actions github-actions bot added the stale 15 days without activity label May 15, 2024
@liuxin638507
Copy link
Author

liuxin638507 commented May 15, 2024

感谢您提请我们注意此问题。感谢您的参与!如果您有兴趣提供解决方案,我们欢迎您创建拉取请求。Bitnami 团队很高兴审查您的提交并提供反馈。您可以在此处找到贡献指南。

您的贡献将极大地造福社区。如果您有任何问题或需要帮助,请随时与我们联系。

thank you ,I added a new line in provisioning-job.yaml to set permissions, which can also be set as variables
vim templates/provisioning-job.yaml
183 mc mb {{ $target }} --ignore-existing {{ $region }} {{ $withLock }};
184 mc anonymous set download {{ $target }};

Copy link

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

@bitnami-bot bitnami-bot closed this as not planned Won't fix, can't repro, duplicate, stale May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request minio solved stale 15 days without activity triage Triage is needed
Projects
None yet
Development

No branches or pull requests

3 participants