Access management in Cloud Logging
Cloud Logging uses roles to manage access rights.
In this section, you will learn:
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.
Roles for a resource can be assigned by users who have the logging.admin
role or one of the following roles for that resource:
admin
resource-manager.admin
organization-manager.admin
resource-manager.clouds.owner
organization-manager.organizations.owner
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.
You can assign a role via the YC CLI or Yandex Cloud API for individual resources of the service:
Which roles exist in the service
The list below shows all roles that are considered when verifying access rights in the Cloud Logging service.
Service roles
logging.viewer
The logging.viewer
role enables viewing info on log groups and sinks and access bindings to them, as well as on the relevant cloud and folder.
Users with this role can:
- View info on log groups.
- View info on log sinks.
- View info on access bindings to Cloud Logging resources.
- View info on log exports.
- View info on the relevant cloud and folder.
logging.editor
The logging.editor
role enables viewing info on Cloud Logging resources and managing them.
Users with this role can:
- View info on log groups, as well as create, modify, delete, and use them.
- View info on log sinks, as well as create, modify, delete, and use them.
- View info on access bindings to Cloud Logging resources.
- View info on log exports, run export, and create, modify, and delete exported files.
- View information on the relevant cloud and folder.
This role includes the logging.viewer
permissions.
logging.reader
The logging.reader
role enables viewing log group entries and info on the Cloud Logging resources, as well as the cloud and folder metadata.
Users with this role can:
- View log group entries.
- View info on log groups.
- View info on log sinks.
- View info on access bindings to Cloud Logging resources.
- View info on log exports.
- View information on the relevant cloud and folder.
This role includes the logging.viewer
permissions.
logging.writer
The logging.writer
role enables adding entries to log groups and viewing info on the Cloud Logging resources, as well as on the relevant cloud and folder.
Users with this role can:
- Add entries to log groups.
- View info on log groups.
- View info on log sinks.
- View info on access bindings to Cloud Logging resources.
- View info on log exports.
- View information on the relevant cloud and folder.
This role includes the logging.viewer
permissions.
logging.admin
The logging.admin
role enables managing your Cloud Logging resources and access to them, as well as viewing and adding entries to log groups.
Users with this role can:
- View info on access bindings to Cloud Logging resources and modify such bindings.
- View info on log groups, as well as create, modify, delete, and use them.
- View info on log sinks, as well as create, modify, delete, and use them.
- View info on log exports, run export, and create, modify, and delete exported files.
- View and add entries to log groups.
- View info on Cloud Logging quotas.
- View information on the relevant cloud and folder.
This role includes the logging.editor
, logging.reader
, and logging.writer
permissions.
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 managing (creating, editing, and deleting) resources.
admin
Allows you to manage your resources and access to them.
For more information about primitive roles, see the Yandex Cloud role reference.