Authentication methods in Selectel products
Authentication is required when working with Selectel products:
- via the control panel;
- using API and tools.
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:
- S3 key (EC2 key) — a pair of Access Key and Secret Key values, used to sign requests when working with AWS-based products: S3 and the Logs service. S3 keys can be issued to panel users and service users. Panel users can also add S3 keys for themselves;
- or a service user name and password – used to manage OpenStack and Terraform resources. To create them, follow the Add service user guide.