Access Using Keys
VK Object Storage uses two types of keys independent of each other to access buckets and objects:
- Access keys tied to the VK Object Storage account. They provide access to all account buckets.
- Access keys tied to a bucket. They provide access to one bucket or a subset of objects in that bucket.
In the VK Cloud management console, access keys are not used to work with the VK Object Storage service. However, if you want to work with buckets and objects via CLI, API or file managers, you need to create a VK Object Storage account and access keys tied to it in the project.
You can create multiple VK Object Storage accounts. Their number in a single project is limited by limits. An access key is created automatically along with the account. An account access key is a pair consisting of a public key identifier (Access Key ID) and a secret key (Secret Key). The secret key is available only when the pair is created; it cannot be recovered later, but you can create a new access key. Up to two keys can be tied to one account.
Managing VK Object Storage accounts and their tied keys is available only in the VK Cloud management console.
Bucket access keys are tied to a specific bucket, not to an account. They grant the user the right to work with objects only in that bucket or in one of its directories, but do not provide access to other buckets and objects in the project.
A bucket access key is a pair consisting of a public key identifier (Access Key ID) and a secret key (Secret Key). The secret key is available only when the pair is created; it cannot be recovered later, but you can create a new access key.
When adding an access key to a bucket, you can specify a prefix to the object name as a parameter, which VK Object Storage interprets as a directory name in the bucket. Such a key is called a prefix access key. A prefix key provides access only to objects in the bucket directory specified by the prefix. A key created without a prefix provides access to all objects in the bucket.
Like keys tied to an account, bucket access keys allow working with objects in the bucket via CLI, API or file managers. You can manage bucket access keys via the management console or using the API.