Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Minio
  3. Where do I find/ create Access and Secret Keys?

Where do I find/ create Access and Secret Keys?

Scheduled Pinned Locked Moved Minio
8 Posts 5 Posters 2.1k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jdaviescoatesJ Offline
      jdaviescoatesJ Offline
      jdaviescoates
      wrote on last edited by
      #1

      I managed to do this before, but now I can't for the life of me work out how/ where I find/ create Access and Secret Keys?

      Help!

      I use Cloudron with Gandi & Hetzner

      robiR girishG 2 Replies Last reply
      1
      • jdaviescoatesJ jdaviescoates

        I managed to do this before, but now I can't for the life of me work out how/ where I find/ create Access and Secret Keys?

        Help!

        robiR Offline
        robiR Offline
        robi
        wrote on last edited by
        #2

        @jdaviescoates is it not in the latest install instructions?

        Conscious tech

        jdaviescoatesJ 1 Reply Last reply
        0
        • robiR robi

          @jdaviescoates is it not in the latest install instructions?

          jdaviescoatesJ Offline
          jdaviescoatesJ Offline
          jdaviescoates
          wrote on last edited by
          #3

          @robi no, there is no mention of keys in either the first time set-up instructions nor the docs.

          I use Cloudron with Gandi & Hetzner

          robiR 1 Reply Last reply
          0
          • jdaviescoatesJ jdaviescoates

            @robi no, there is no mention of keys in either the first time set-up instructions nor the docs.

            robiR Offline
            robiR Offline
            robi
            wrote on last edited by
            #4

            @jdaviescoates isn't that per bucket, and hence on new bucket creation?

            Conscious tech

            1 Reply Last reply
            0
            • scookeS Offline
              scookeS Offline
              scooke
              wrote on last edited by
              #5

              I believe these are under the User pane. The Access key is essentially a Username, and the Secret Key is essentially a password. If you haven't written down the Secret Key/Password when creating the User, then you can reset it by clicking on the User, then the Access Key (which is basically the username), and then on the far right clicking on Change Password.

              Other than that, the only thing I've found online advises checking a config.json file - https://www.linuxhelp.com/how-to-change-access-key-and-secret-key-for-minio-on-centos-7, but I'm not sure if this refers to the Admin user, or to any User?password, Access Key/Secret Key combo that's been created. And I don't know if that config.json file is accessible in the Cloudron install (I've set mine up natively).

              6ccb9bd8-c200-45e9-ba95-2a5d57f77b18-image.png

              Good luck!

              A life lived in fear is a life half-lived

              BrutalBirdieB 1 Reply Last reply
              0
              • scookeS scooke

                I believe these are under the User pane. The Access key is essentially a Username, and the Secret Key is essentially a password. If you haven't written down the Secret Key/Password when creating the User, then you can reset it by clicking on the User, then the Access Key (which is basically the username), and then on the far right clicking on Change Password.

                Other than that, the only thing I've found online advises checking a config.json file - https://www.linuxhelp.com/how-to-change-access-key-and-secret-key-for-minio-on-centos-7, but I'm not sure if this refers to the Admin user, or to any User?password, Access Key/Secret Key combo that's been created. And I don't know if that config.json file is accessible in the Cloudron install (I've set mine up natively).

                6ccb9bd8-c200-45e9-ba95-2a5d57f77b18-image.png

                Good luck!

                BrutalBirdieB Offline
                BrutalBirdieB Offline
                BrutalBirdie
                Partner
                wrote on last edited by BrutalBirdie
                #6

                Guys.. the doc 😄
                https://docs.cloudron.io/apps/minio/

                Multi-user

                MinIO supports multiple long term users in addition to default user created during server startup. New users have to added using the CLI tool. You can read the full docs here.

                Install Minio CLI tool
                
                Configure CLI tool to point to your minio installation
                
                mc alias set myminio https://minio.cloudron.club minioadmin minioadmin --api s3v4
                
                Create a policy file
                
                cat > getonly.json << EOF
                {
                  "Version": "2012-10-17",
                  "Statement": [
                    {
                      "Action": [
                        "s3:GetObject"
                      ],
                      "Effect": "Allow",
                      "Resource": [
                        "arn:aws:s3:::my-bucketname/*"
                      ],
                      "Sid": ""
                    }
                  ]
                }
                EOF
                
                Add the policy
                

                mc admin policy add myminio getonly getonly.json

                Add new user
                

                mc admin user add myminio newuser password123

                Set policy on user
                
                mc admin policy set myminio getonly user=newuser
                

                Another TL;DR from me.
                Create a User for each Bucket.
                Then create a IAM Policy for each Bucket.

                Example:

                rancher-local-rw IAM

                {
                    "Version": "2012-10-17",
                    "Statement": [
                        {
                            "Effect": "Allow",
                            "Action": [
                                "s3:*"
                            ],
                            "Resource": [
                                "arn:aws:s3:::rancher-local/*"
                            ]
                        }
                    ]
                }
                

                The Bucket name ist rancher-local.
                Now I create a user and add this IAM policy to him.
                f23fcb04-e758-410f-a253-558addb1b33a-image.png
                541a7673-fcbd-4488-84d5-6f9a1c86f8b4-image.png

                Then the access-key and secret-key ist simply username and his password

                Like my work? Consider donating a drink. Cheers!

                1 Reply Last reply
                0
                • jdaviescoatesJ jdaviescoates

                  I managed to do this before, but now I can't for the life of me work out how/ where I find/ create Access and Secret Keys?

                  Help!

                  girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #7

                  @jdaviescoates Identity -> Service Accounts will give you access and secret keys. Is that what you are asking?

                  7581774c-d56e-4fd4-bab4-d022f62c2849-image.png

                  1 Reply Last reply
                  1
                  • girishG Offline
                    girishG Offline
                    girish
                    Staff
                    wrote on last edited by
                    #8

                    I put this info in https://docs.cloudron.io/apps/minio/#access-keys

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Bookmarks
                      • Search