Skip to main content

Authentication methods in Selectel products

Authentication is required when working with Selectel products:

Authentication in the control panel

Two independent factors are used to log in to the control panel:

  • first factor — email address and password of the panel user;
  • second factor — two-step authentication code, which can be obtained from the list of backup codes, an authenticator app, or via email.

Two-step authentication is enabled by default for all users. If you are an Account Owner, you can disable two-step authentication for yourself and use only the first factor to log in. Other users cannot disable two-step authentication — they can only choose the method for receiving the second factor.

Authentication for API and tools

To authenticate requests to Selectel product APIs, depending on the API and user type, you can use:

  • IAM token (X-Auth-Token) for an account or project — generated upon request during authentication, has a limited lifetime, and is supported in the APIs of most Selectel products;
  • or a static token (X-Token, API key) — has no lifetime limitation and is intended for working with APIs that do not yet support IAM tokens.

You can check which tokens are supported for each API and how to issue a token in the Request authentication section of the API documentation. If an API supports both an IAM token and a static token, we recommend using the IAM token.

In specific cases, for authentication when accessing third-party APIs and using automation tools, you can use:

Comparison of authentication methods

Authentication methodAccess grantedWho can useLifetime
IAM token for accountAccount resource management
  • service user (recommended);
  • control panel user
24 hours
IAM token for the projectProject resource management
  • service user (recommended);
  • control panel user
24 hours
Static token (X-Token, API key)Account resource managementControl panel userUnlimited
S3 key (EC2 key)

Management:

  • service user (recommended);
  • control panel user
Unlimited
Username and password of the service user

Management:

Service userUnlimited