Access management in Cloud CDN
Cloud CDN uses roles to manage access rights.
In this section, you will learn:
- Which resources you can assign a role for.
- Which roles exist in the service.
- Which roles are required for particular actions.
About access management
In Yandex Cloud, all transactions are checked in Yandex Identity and Access Management. If a subject does not have the required permission, the service returns an error.
To grant permission for a resource, assign roles for this resource to the subject that will perform operations. Roles can be assigned to a Yandex account, a service account, federated users, a user group, or a system group. For more information, see How access management works in Yandex Cloud.
Only users with the admin
, resource-manager.clouds.owner
, or organization-manager.organizations.owner
role for a resource can assign roles for this resource.
Which resources you can assign a role for
As with other services, you can assign roles for clouds, folder and service accounts. The roles assigned for clouds and folders also apply to nested resources.
Which roles exist in the service
The chart below shows which roles are available in the service and how they inherit each other's permissions. For example, the editor
role includes all the permissions of viewer
. You can find the description of each role under the chart.
Service roles
cdn.viewer
The cdn.viewer
role enables viewing info on the folder, origin groups, CDN resources, and Cloud CDN quotas.
cdn.editor
The cdn.editor
role enables managing Cloud CDN resources, as well as viewing the info on quotas and the relevant folder.
Users with this role can:
- View information on origin groups as well as create, modify, and delete them.
- View information on CDN resources as well as create, modify, and delete them.
- Manage log export for the requests to CDN servers.
- Manage origin shielding.
- View information on Cloud CDN quotas.
- View information on the relevant folder.
This role includes the permissions of the cdn.viewer
role.
cdn.admin
The cdn.admin
role enables managing Cloud CDN resources, as well as viewing the info on quotas and the relevant folder.
Users with this role can:
- View information on origin groups as well as create, modify, and delete them.
- View information on CDN resources as well as create, modify, and delete them.
- Manage log export for the requests to CDN servers.
- Manage origin shielding.
- View information on Cloud CDN quotas.
- View information on the relevant folder.
This role includes the permissions of the cdn.editor
role.
Moving forward, it will additionally include more features.
Primitive roles
auditor
Grants permission to view service configuration and metadata without access to data.
viewer
Enables you to view information about resources.
editor
Allows you to manage resources, e.g., create, edit, and delete them.
admin
Allows you to manage your resources and access to them.
For more information about primitive roles, see Roles.
What roles do I need
The table below lists the roles needed to perform a particular action. You can always assign a role granting more permissions than the role specified. For example, you can assign the editor
role instead of the viewer
one.
Action | Required roles |
---|---|
View data | |
View information about any resource | cdn.viewer for this resource |
Manage CDN resources | |
Create a resource | cdn.editor for the folder where the resources will be created |
Change a resource's basic settings | cdn.editor for the folder with CDN resources |
Disable a resource | cdn.editor for the folder with CDN resources |
Configure resource caching | cdn.editor for the folder with CDN resources |
Pre-fetch files to CDN servers | cdn.editor for the folder with CDN resources |
Clear a resource cache | cdn.editor for the folder with CDN resources |
Configure HTTP Request and Response headers | cdn.editor for the folder with CDN resources |
Configure CORS responses to clients | cdn.editor for the folder with CDN resources |
Configure HTTP methods | cdn.editor for the folder with CDN resources |
Enable file compression | cdn.editor for the folder with CDN resources |
Enable file segmentation | cdn.editor for the folder with CDN resources |
Manage origin groups | |
Create an origin group | cdn.editor for the folder with an origin group |
Change an origin group | cdn.editor for the folder with an origin group |
Connect an origin group to a resource | cdn.editor for the folder with the CDN resource |
Delete an origin group | cdn.editor for the folder with an origin group |
Manage paid features | |
Origin shielding | cdn.editor for the folder with CDN resources |
Exporting logs | cdn.editor for the folder with CDN resources |
Manage resource access | |
Grant a role, revoke a role, and view roles granted for the resource | admin for the resource |