From b48100ba3206221fdbe43021c6ebce3235a90396 Mon Sep 17 00:00:00 2001 From: Beardo Moore Date: Thu, 12 Nov 2026 15:22:10 -0700 Subject: [PATCH] Add project-scoped custom roles and release v0.27.0 - CustomRoleSpec.project_id: scope a custom role to a project - ProjectAccess.custom_roles: assign project-scoped custom roles to a principal in a project - GetCustomRolesRequest.project_id: list the custom roles scoped to a project Co-Authored-By: Claude Opus 5.5 --- README.md | 2 +- VERSION | 2 +- .../api/cloud/cloudservice/v1/request_response.proto | 3 +++ temporal/api/cloud/identity/v1/message.proto | 12 ++++++++++++ 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cb8cd3a..9c81b90 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ To use the Cloud Ops API in your project, preform the following 4 steps: The client is expected to pass in a `temporal-cloud-api-version` header with the api version identifier with every request it makes to the apis. The backend will use the version to safely mutate resources. The `temporal:versioning:min_version` label specifies the minimum version of the API that supports the field. -Current Version `v0.26.0` +Current Version `v0.27.0` ### URL diff --git a/VERSION b/VERSION index eaf8bae..0a8bf80 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v0.26.0 +v0.27.0 diff --git a/temporal/api/cloud/cloudservice/v1/request_response.proto b/temporal/api/cloud/cloudservice/v1/request_response.proto index df6bd45..0d6ced1 100644 --- a/temporal/api/cloud/cloudservice/v1/request_response.proto +++ b/temporal/api/cloud/cloudservice/v1/request_response.proto @@ -1285,6 +1285,9 @@ message GetCustomRolesRequest { int32 page_size = 1; // The page token if this is continuing from another response. string page_token = 2; + // Filter to only the custom roles scoped to this project - optional. + // If unset, only account-scoped custom roles are returned. + string project_id = 3; } message GetCustomRolesResponse { diff --git a/temporal/api/cloud/identity/v1/message.proto b/temporal/api/cloud/identity/v1/message.proto index 9a0ee03..4a020ab 100644 --- a/temporal/api/cloud/identity/v1/message.proto +++ b/temporal/api/cloud/identity/v1/message.proto @@ -84,6 +84,10 @@ message ProjectAccess { PROJECT_ROLE_MEMBER = 6; // Basic membership; grants read-only access to the project. PROJECT_ROLE_DEVELOPER = 7; // Inherited from the account developer role; cannot be assigned directly. } + + // List of project-scoped custom role IDs assigned to the principal for this project. + // temporal:versioning:min_version=v0.27.0 + repeated string custom_roles = 2; } message Access { @@ -343,6 +347,14 @@ message CustomRoleSpec { string description = 2; // The permissions assigned to the custom role. repeated Permission permissions = 3; + // The id of the project this custom role is scoped to - optional. + // If unset, the custom role is scoped to the account: it can reference resources anywhere in the + // account and can be assigned to principals at the account level. + // If set, the custom role is scoped to the project: its resources must belong to that project, it + // is not shared across projects, and it can only be assigned to principals within that project. + // Immutable once the custom role is created - it cannot be changed via UpdateCustomRole. + // temporal:versioning:min_version=v0.27.0 + string project_id = 4; message Resources { // The resource type the permission applies to.