Appearance
Cloud authorization terminology
This reference supports the Draft ADR#3086429157. The first-party sources below were retrieved on 2026-11-30. Vendor facts and the proposed product vocabulary are distinguished explicitly.
Comparison
| Concept | GCP IAM | AWS IAM | Azure RBAC |
|---|---|---|---|
| Who receives access | Principal | Principal | Security principal |
| Governed thing | Resource | Resource | Resource |
| Allowed operation | Permission | Action in a policy | Action or data action |
| Permission collection | Role | Permission policy | Role definition |
| How access is assigned | Role binding | Policy attachment or resource policy | Role assignment |
| Grant extent | Resource and inheritance | Policy resources and evaluation | Scope |
| Context constraint | Condition | Condition | Condition |
These are comparisons of responsibilities, not interchangeable API types. AWS roles, GCP roles, and Azure role definitions are especially unsafe to treat as identical concepts.
GCP: recommended product vocabulary
Principals and resources
The IAM overview describes access as who can do what on which resources. It defines a role as a collection of permissions, granted to a principal on a resource. It also says principals represent “one or more identities” and notes that “In the past, principals were referred to as members.” Some APIs retain that spelling.
The principal identifiers reference includes individual accounts, groups, single federated identities, and sets of federated identities. principal:// and principalSet:// identify different selectors; their spelling is not a generic product identity format to copy indiscriminately.
Implication: retain principal and resource. Do not use user for every caller or introduce member as a competing generic identity noun. Our existing actor ADR is narrower than GCP: it uses principal for the authenticated actor. Use identity selector when a product binding selects a group or set, and retain SpiceDB's subject at the SDK boundary. The proposal does not silently redefine the approved actor taxonomy.
Permissions and roles
The roles overview states: “A role contains a set of permissions that allows you to perform specific actions on Google Cloud resources.” Its common permission format is SERVICE.RESOURCE.VERB, with examples compute.instances.list and compute.instances.stop. The IAM overview also documents a service-FQDN form; the dotted form is a deliberate product convention, not a claim that every Google permission has identical syntax.
Permissions usually, but not always, correspond one-to-one with REST methods. AIP-211 additionally allows an operation to require multiple permissions or preconditions.
The roles overview distinguishes role title from role name. Predefined role names use roles/SERVICE.IDENTIFIER; custom roles have organization or project-qualified names. The product must define its own namespaces rather than pretend its roles are registered Google IAM roles.
Implication: make permission the stable authorization term. Action describes the attempted application operation. Adopt dotted catalog names such as docs.documents.get; distinguish get from list, and map to SpiceDB's local names explicitly. Define roles as permission collections, not merely UI labels or identities. Preserve domain verbs when CRUD is insufficient. get and list are a proposed naming convention here; their exact response visibility remains a product contract.
Allow policies, role bindings, and conditions
The allow policies reference defines an allow policy as a collection of role bindings and metadata. Each binding associates one role with one or more principals and an optional condition. Allow policies attach to resources and can be inherited. In GCP, permissions in allow policies are granted through roles rather than directly to principals.
Implication: use allow policy, role binding, and condition for product access-management contracts. A binding has a resource, a role, identity selectors, and an optional condition. Keep grant as the act or result of conferring access. Use qualified names for deny or limit policy instead of treating every access rule as part of an allow policy.
This vocabulary choice does not make GCP's complete evaluation algorithm or its one-allow-policy-per-resource constraint automatic product rules. Existing hierarchy ADRs still govern grants and limits.
Service accounts and impersonation
The service account overview describes a service account as an account typically used by an application or compute workload rather than a person. Applications authenticate as that identity and receive access according to its permissions. Other principals, including humans and service accounts, can also authenticate as the account when authorized to do so.
The impersonation guide calls this service account impersonation. The caller gains the account's access using credentials for that account. GCP supports creating short-lived credentials through its Service Account Credentials API; impersonation does not require exporting a long-lived service-account key.
The service account permissions reference distinguishes authentication-related roles:
- Service Account Token Creator,
roles/iam.serviceAccountTokenCreator, includes permissions to create short-lived credentials, includingiam.serviceAccounts.getAccessToken. It is granted on the target account or inherited from an ancestor; its extent is a separate concern from the target account's access to other resources. - Service Account User,
roles/iam.serviceAccountUser, includesiam.serviceAccounts.actAsfor attaching an account to a resource. It does not by itself let a caller use the CLI impersonation flag or create short-lived credentials for the account. The workload resource can subsequently run as the attached service account.
These roles are permission collections; neither is the service account itself. Token Creator is broader than merely creating an access token, so it is not a generic recommendation to grant that entire role whenever only one credential operation is required.
Implication: the counterpart to an assumable AWS role identity is a GCP service account, with different delegation mechanics. The counterpart to a permission bundle is a GCP role. Create service accounts for identity boundaries and roles for permission collections; do not create an account for every role. Document permission to impersonate an account separately from permission to use application resources as that account.
For our product, SpiceDB can evaluate both kinds of authorization, but credential issuance and authentication belong to the identity or credential service. This ADR chooses terminology and enforcement boundaries, not a new token protocol or a running impersonation implementation.
AWS: useful shared nouns, different role semantics
The policies reference describes policies associated with identities or resources as defining permissions. Policies can allow or deny actions on resources under conditions. Identity-based and resource-based policies are distinct; AWS does not reduce all grants to GCP-style resource role bindings.
The Action element reference names operations with a service namespace and action, for example s3:GetObject and ec2:StartInstances. The prefix and action name are case-insensitive. “Action” here is an IAM policy element, not merely a transport method name.
The IAM roles guide defines an IAM role as an identity with permission policies. It can be assumed, producing temporary security credentials for a role session.
Implication: retain principal, resource, permission, and condition as familiar concepts, but do not adopt AWS's meaning of role. A product permission bundle is not an identity, an assumed session, or a credential. Do not copy service:Action when the selected catalog dialect is GCP's.
Azure: explicit assignment and scope
The Azure RBAC overview describes a role assignment as security principal, role definition, and scope. Security principals include users, groups, service principals, and managed identities. A role definition is a collection of permissions.
The role assignments reference describes scope as the resource or set of resources where the role is assigned. Assignment metadata is separate from the role definition.
The role definitions reference distinguishes control-plane Actions from data-plane DataActions. Operation strings use {Company}.{ProviderName}/{resourceType}/{action}. Common suffixes include read, write, delete, and custom action. NotActions subtracts operations from a role's allowed actions; it is not a deny rule that overrides another role's grant.
Implication: keep the distinction between a role definition and its assignment, expressed as GCP's role and role binding. Scope can describe the extent of a binding in prose; it is not a replacement for the approved resource position field parent. Do not adopt Azure's broad write operation or slash-separated operation strings by accident. Subtraction within a role is not the same as an ancestor's mandatory limit.
Mapping to SpiceDB
The SpiceDB schema reference distinguishes noun relations, stored relationships, and computed permissions. Permissions may be verbs or nouns. Local relation and permission identifiers use lowercase letters, numbers, and underscores within the documented identifier constraints; dotted GCP-style catalog names cannot be used directly as those identifiers.
| Product contract | SpiceDB representation |
|---|---|
docs.documents.get | Permission get on type document |
docs.documents.update | Permission update on type document |
| Document Writer role | Documented bundle of those permissions |
| Binding of that role | Relationship writes, such as a writer assignment |
| Group selector | Subject relation, such as group:finance#member |
| Binding condition | Caveat when its semantics fit the condition |
| Allow policy | Product contract mapped to graph data and schema |
A GCP binding and a SpiceDB relationship are not universally one-to-one. GCP's grouping, resource attachment, conditions, role definitions, and metadata require explicit product mappings. A static writer relation can implement a fixed role; arbitrary custom-role editing needs additional modeling and is not established by this terminology research.
The recommended product sentence is: Grant a role to selected identities on a resource through a role binding in its allow policy. Enforcement asks: Does the calling principal have the required permission on the target resource? SpiceDB answers that question from its schema, relationships, and applicable caveat context.