Manage access keys
Access keys allow you to securely identify a user when working with Selectel products.
Different keys are used depending on the task:
- IAM tokens — for authenticating test requests to most Selectel APIs;
- SSH keys — for encrypted connection to servers;
- API keys — for authenticating requests to certain Selectel APIs;
- S3 keys — for accessing buckets in S3 and the Logs service;
- ADB keys — for connecting to devices in the Mobile Farm;
- Proxy keys — for proxying traffic of devices in the Mobile Farm.
Control panel users can manage their access keys: add new ones or delete those that are no longer needed.
Manage IAM tokens
We recommend using control panel user IAM tokens for testing purposes only. For use in production tools, create a service user and issue an IAM token to them. For more information, see the Get account-scoped IAM token and Get project-scoped IAM token subsections of the Request authentication API documentation guide
An IAM token (X-Auth-Token) for an account or project is used to manage Selectel products via API. For more information, see the Request authentication API documentation guide. The IAM token lifetime is 24 hours.
When a user authenticates in the control panel, IAM tokens are automatically issued for them in all scopes, and for the Project scope, in each project of the control panel user. A control panel user's IAM token can be copied or reissued.
Copy IAM token
- In the control panel, in the upper-right corner, open the menu (account number) and select Profile.
- Go to Access → IAM token tab.
- Click Copy.
- Select an access scope.
- If you selected the Projects scope, select a project.
- Click Copy.
- Optional: to copy the token in another access scope or project, repeat steps 4-6.
Reissue IAM token
After the token is reissued, the old token stops working immediately.
- In the control panel, in the top right corner, open the menu (account number) and select Profile.
- Go to Access → IAM token tab.
- Select a scope.
- If you selected the Projects scope, select a project.
- Click Reissue token → Reissue token.
- Click Copy.
Manage SSH keys
To securely connect to a server via encrypted SSH protocol, you can add and delete SSH keys in your profile.
The Account Owner and users with the iam.admin role can manage SSH keys of other users, including service users. For more information, see the Manage user SSH keys subsection of the Edit user details or permissions guide.
Add SSH key
If you created an SSH key, you can add its public part to your profile. The added SSH key can then be placed on a cloud server.
The key will be available in all projects to which you have been added.
- In the control panel, in the top right corner, open the menu (account number) and select Profile.
- Go to Access → SSH keys tab.
- Click Add key.
- Enter the key name.
- Paste the public SSH key in OpenSSH format.
- Click Add.
Delete SSH key
- In the control panel, in the top right corner, open the menu (account number) and select Profile.
- Go to Access → SSH keys tab.
- In the key menu, select Delete.
- Click Delete.
Manage API keys
An API key (static token, X-Token) is used to manage certain Selectel products via API. For more information, see the Static token (X-Token) subsection of the Request authentication API documentation guide. The token lifetime is unlimited.
Add API key
Use the Get static token subsection of the Request authentication API documentation guide.
Disable API key
- In the control panel, in the top right corner, open the menu (account number) and select Profile.
- Go to Access → API keys tab.
- In the key row, turn off the toggle switch.
Delete API key
- In the control panel, in the top right corner, open the menu (account number) and select Profile.
- Go to Access → API keys tab.
- In the key menu, select Delete.
- Enter the key name to confirm.
- Click Delete.
Manage S3 keys
Control panel users can issue S3 keys to themselves, but we recommend creating service users and issuing S3 keys to them.
To issue an S3 key to another user, including a service user, use the Issue S3 key to user subsection of the Edit user details or permissions guide.
Add S3 key
- In the control panel, in the top right corner, open the menu (account number) and select Profile.
- Go to Access → S3 keys tab.
- Click Add key.
- Enter the key name.
- Select the project for which the key will work.
- Click Add.
Delete S3 key
- In the control panel, in the top right corner, open the menu (account number) and select Profile.
- Go to Access → S3 keys tab.
- In the key row, click .
- Click Delete.
Manage ADB keys
To connect to Mobile Farm devices via ADB, you can add a public key to your profile.
The Account Owner and users with the iam.admin role can manage ADB keys of other users, including service users. For more information, see the Manage user ADB keys subsection of the Edit user details or permissions guide.
Add ADB key
If you have created an ADB key pair, you can add the public key to your profile. The added public ADB key can be used to connect to Mobile Farm devices via ADB.
The key will be available in all projects to which you have been added.
- In the control panel, in the top right corner, open the menu (account number) and select Profile.
- Go to Access → ADB keys tab.
- Click Add key.
- Enter the key name.
- Paste the public ADB key.
- Click Add.
Delete ADB key
- In the control panel, in the top right corner, open the menu (account number) and select Profile.
- Go to Access → ADB keys tab.
- In the key row, click .
- Click Delete.
Manage Proxy keys
To proxy traffic from Mobile Farm devices, control panel users can add Proxy keys to themselves, but we recommend creating service users and issuing Proxy keys to them.
The Account Owner or a user with the iam.admin role can manage Proxy keys of other users, including service users. For more information, see the Manage user Proxy keys section of the Edit user details or permissions guide.
The key will be available in all projects to which the user has been added.
Add Proxy key
- In the control panel, in the top right corner, open the menu (account number) and select Profile.
- Go to Access → Proxy keys tab.
- Click Add key.
- Enter the key name.
- Click Generate key.
- In the Key field, click and save the key in a safe place — once the window is closed, it cannot be viewed.
Delete Proxy key
- In the control panel, in the top right corner, open the menu (account number) and select Profile.
- Go to Access → Proxy keys tab.
- In the key row, click .
- Click Delete.