Access Keys

Access Keys

Recents version of MinIO removed the ability to manage and generate keys via the UI. The mc CLI tool must be used instead. See the CLI section for more information.

To create access keys, you have to set up a user, attach a policy to the user and generate access keys for the user.

1. Connect the CLI to your MinIO server
mc alias set myminio https://minio-api.yourdomain.com minioadmin minioadmin

2. Create a user
mc admin user add myminio selectnewusername EnterThePasswordHere

3. Create the bucket policy. Create a file named policy.json:
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "s3:*"
      ],
      "Resource": [
        "arn:aws:s3:::mybucket",
        "arn:aws:s3:::mybucket/*"
      ]
    }
  ]
}

4. Then, create the policy on the server:
mc admin policy create myminio mybucket-fullaccess ./policy.json

5. Attach the bucket with the user:
mc admin policy attach myminio mybucket-fullaccess --user selectnewusername

6. Finally, generate access keys for the user:
mc admin accesskey create myminio/ selectnewusername