Table of Contents
A MinIO user consists of a unique access key (username) and corresponding secret key (password). Clients must authenticate their identity by specifying both a valid access key (username) and the corresponding secret key (password) of an existing MinIO user.
Each user can have one or more assigned policies that explicitly list the actions and resources to which that user has access. Users can also inherit policies from the groups in which they have membership.
MinIO by default denies access to all actions or resources not explicitly allowed by a user’s assigned or inherited policies. You must either explicitly assign a policy describing the user’s authorized actions and resources or assign the user to groups which have associated policies. See Access Management for more information.
This page documents user management for the MinIO internal IDentity Provider (IDP). MinIO also external management of identities using either an OpenID Connect (OIDC) or Active Directory/LDAP IDentity Provider (IDP). For more information, see:
Enabling external identity management disables the MinIO internal IDP, with the exception of creating service accounts.
MinIO service accounts are child identities of an authenticated MinIO user, including externally managed identities. Each service account inherits its privileges based on the policies attached to it’s parent user or those groups in which the parent user has membership. Service accounts also support an optional inline policy which further restricts access to a subset of actions and resources available to the parent user.
A MinIO user can generate any number of service accounts. This allows application owners to generate arbitrary service accounts for their applications without requiring action from the MinIO administrators. Since the generated service accounts have the same or fewer permissions as the parents, administrators can focus on managing the top-level parent users without micro-managing generated service accounts.
Service accounts creation and management is only available through the MinIO Console. After logging into the Console, click Account from the left navigation to view all service accounts associated to the authenticated user. Click Create Service Account to create new service accounts.
Service Accounts are for Programmatic Access
Service Accounts support programmatic access by applications. You cannot use a Service Account to log into the MinIO Console.
MinIO deployments have a
root user with access to all actions and resources
on the deployment, regardless of the configured identity manager. When a
minio server first
starts, it sets the
root user credentials by checking the value of the
following environment variables:
Rotating the root user credentials requires updating either or both variables
for all MinIO servers in the deployment. Specify long, unique, and random
strings for root credentials. Exercise all possible precautions in storing the
access key and secret key, such that only known and trusted individuals who
require superuser access to the deployment can retrieve the
MinIO strongly discourages using the
rootuser for regular client access regardless of the environment (development, staging, or production).
MinIO strongly recommends creating users such that each client has access to the minimal set of actions and resources required to perform their assigned workloads.
If these variables are unset,
minio defaults to
minioadmin as the access key and secret key respectively. MinIO strongly
discourages use of the default credentials regardless of deployment
Deprecation of Legacy Root User Environment Variables
MinIO RELEASE.2021-04-22T15-44-28Z and later deprecates the following variables used for setting or updating root user credentials:
mc admin user add command to create a new user on the
mc admin user add ALIAS ACCESSKEY SECRETKEY
SECRETKEYwith the secret key for the user. MinIO does not provide any method for retrieving the secret key once set.
Specify a unique, random, and long string for both the
SECRETKEY. Your organization may have specific internal or regulatory
requirements around generating values for use with access or secret keys.
mc admin policy set ALIAS readwrite user=USERNAME
USERNAME with the
ACCESSKEY created in the previous step.
mc admin user remove command to remove a user on a
mc admin user remove ALIAS USERNAME