Skip to content

Permissions

Every permission Orbee needs is a read. The list is the contract, short enough for a security team to review:

Permission Lets Orbee
resourcemanager.projects.get list the projects under the parent
resourcemanager.folders.get list the folders, read the folders above a project
logging.logEntries.list read audit and workload logs
monitoring.timeSeries.list count the 5xx of the Cloud Run services, exact where the logs are cut
cloudasset.assets.searchAllIamPolicies list the IAM bindings of everything under the parent

Granted on the organization or a folder, they are inherited by every project below it. Reading every project’s logs is the sensitive part: grant it on a folder, or project by project, when the whole organization is too wide.

The five permissions make one custom role, Orbee Reader. Two ways to create and grant it:

  • orbee doctor --member group:platform-team@example.com prints the gcloud commands;
  • the org-setup Terraform module creates it and grants it in one apply:
module "orbee" {
source = "git::https://github.com/tosun-si/orbee.git//terraform/modules/org-setup?ref=v0.4.0"
project_id = "my-platform-tools"
parent_type = "organization"
parent_id = "123456789012"
reader_members = ["group:platform-team@example.com"]
}

Prefer predefined roles? parent_reader_access = "predefined_roles" grants roles/browser, roles/logging.viewer, roles/monitoring.viewer and roles/cloudasset.viewer instead.

Without monitoring.timeSeries.list on a project, Orbee still answers from its logs and says that the project’s 5xx were not counted.

Granting is the one step that writes, done once by an administrator. Orbee itself never grants anything.