Configuring S3 after an update
29.09.2023 a major S3 update was released. Previously created users, calls to Swift API (old) and Object Storage API (old), etc., will stop working on 05.10.2027 at 11:00 (UTC+3). Some features will no longer be supported; see the Unavailable functionality section for more details.
We recommend using S3 API. Update your storage settings in advance.
If you had buckets created before the S3 update, migrate them to a project to continue working with S3 in the Control panel.
The most significant changes in storage operation are:
- new authentication for all storage APIs and new access endpoints;
- a new public bucket domain (a domain like
<uuid>.selstorage.ru). This domain replaces the personal account domain (a domain like* ****.selcdn.ru); - moving S3 to projects;
- a new access management model: full support for the role-based model and the introduction of bucket access policies;
- unavailability of some legacy features.
Migrate buckets to a project
Without migrating to a project, you will not be able to work with the storage in the Control panel.
You can migrate your storage only once and as a whole (to one project). It is not possible to distribute old buckets across different projects. You will be able to create new buckets in different projects.
If you already have a project, you can migrate the buckets to it or create a new one.
To an existing project
To a new project
- In the Control panel, in the top menu, click Products and select S3. The first time you navigate to this section after 29.09.2023, a page for migrating buckets will open.
- Select Use existing project.
- Select the project you want to migrate your buckets to and click Migrate.
Configure S3
- Configure storage access for users.
- Configure the bucket policy.
- If you use API or FTP, update your access keys and URLs.
- If you use a CDN, change the CDN resource.
- Verify that you have replaced the domains with the new ones.
- Delete legacy storage users.
1. Configure storage access for users
S3 now supports user types and roles:
- S3 access via the control panel will be available to panel users whose role allows access to the entire account or project to which the buckets were moved;
- API access is provided via service users instead of storage users (created in the S3 → Users section). Legacy users will continue to work and will be disabled later. It is no longer possible to create new users of this type.
Add new users in the Panel Users and Service Users sections.
For users with object_storage_user, s3.user, and s3.bucket.user roles, access is determined solely by the access policy — if it is not configured, the user will not have access to the bucket. Learn more about how different storage roles work in the Managing Access in S3 guide.
2. Configure a bucket policy
You can create a bucket policy via the Control panel. To create a bucket policy via API, use the AWS S3 documentation.
When configuring a policy, consider access within the role-based model; for more details, see the Managing Access in S3.
Read more about bucket policies in the Bucket policy section.
3. Update access keys and URL
S3 API
Swift API
FTP
Read more about authentication in the S3 API documentation.
-
Issue an S3 key to a service user. You can also issue a key via the IAM API.
-
In your requests, replace the URL and use the key to authenticate using the new scheme:
4. Change the CDN resource
If you use S3 as a content source for CDN, change the CDN resource.
- In the control panel, on the top menu, click Products and select CDN.
- In the CDN Resources section, open the CDN resource page → Origin tab.
- In the Domain field, replace the specified domain with the public bucket domain in the format
<uuid>.selstorage.ru. - In the Hostname block, in the Hostname when requesting origin field, specify the public bucket domain without the protocol and port. By default, port 80 is used.
5. Check domains
Make sure you are using the new domains everywhere.
Learn more about domains in the Domains in S3 guide.
6. Delete legacy storage users
- In the control panel, on the top menu, click Products and select S3.
- Go to the Panel Users section.
- In the user card, click → Delete.
Unavailable features
Calls to Swift API (old) and Object Storage API (old) methods will stop working on 05.10.2027 at 11:00 (UTC+3). Use alternative options in S3 API, Object Storage API, or the control panel.
Swift API (old)
Object Storage API (old)