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 connections to servers;
- API keys — for authenticating requests to certain Selectel APIs;
- S3 keys — for access to 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.
Panel users can manage their access keys: add new ones or delete those that are no longer needed.
Manage IAM tokens
We recommend using 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 an IAM token for an account and Get an IAM token for a project subsections of the Request authentication API documentation
An account-scoped or project-scoped IAM token (X-Auth-Token) is used to manage Selectel products via API. For more information, see the Request authentication API documentation. 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 every project of the control panel user. You can copy or reissue a control panel user IAM token.
Copy IAM token
- In the control panel, in the top right corner, open the menu (account number) and select Profile.
- Go to Access → the 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 → the IAM token tab.
- Select an access scope.
- If you selected the Projects scope, select a project.
- Click Reissue token → Reissue token.
- Click Copy.
Manage SSH keys
For secure server connections via the 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:
- for other panel users, see the Manage user SSH keys subsection of the Manage panel user keys guide;
- for service users, see the Manage user SSH keys subsection of the Manage service user keys 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 you have been added to.
- In the control panel, in the upper 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 upper 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 the API. For more information, see the Static token (X-Token) subsection of the Request authentication API documentation. The token lifetime is unlimited.
Add API key
Use the Get a static token subsection of the Request authentication API documentation.
Disable API key
- In the control panel, in the upper right corner, open the menu (account number) and select Profile.
- Go to Access → API keys tab.
- Turn off the toggle switch in the key row.
Delete API key
- In the control panel, in the upper 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
Panel users can generate S3 keys for themselves, but we recommend creating service users and issuing S3 keys to them.
Account owner and users with the iam.admin role can manage S3 keys:
- for other panel users, see the Manage user S3 keys subsection of the Managing panel user keys guide;
- for service users, see the Manage user S3 keys subsection of the Managing service user keys guide;
Add S3 key
- In the control panel, in the upper right corner, open the menu (account number) and select Profile.
- Go to Access → S3 keys tab.
- Click Add key.
- Enter the key name.
- Select a project for which the key will work.
- Click Add.
Delete S3 key
- In the control panel, in the upper 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.
Account owner and users with the iam.admin role can manage ADB keys:
- for other panel users, for more information see the Manage user's ADB keys section of the Manage panel user keys guide;
- for service users, for more information see the Manage user's ADB keys section of the Manage service user keys 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 for connecting to mobile farm devices via ADB.
The key will be available in all projects you are added to.
- In the control panel, in the upper 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 upper 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 for mobile farm devices, panel users can add Proxy keys for 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:
- for other panel users, for more information see the Manage user's Proxy keys section of the Manage panel user keys guide;
- service users; for more information, see the Manage user proxy keys instruction Manage service user keys section.
Add proxy key
The key will be available in all projects the user has been added to.
- In the control panel, in the upper 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 secure location — it cannot be viewed after the window is closed.
Delete proxy key
- In the control panel, in the upper right corner, open the menu (account number) and select Profile.
- Go to Access → Proxy keys tab.
- In the key row, click .
- Click Delete.