Skip to main content
Version: Next

AuthzClusterRole

An AuthzClusterRole defines a cluster-scoped authorization role containing a set of permitted actions. Cluster roles are available across all namespaces and can be referenced by both AuthzClusterRoleBinding and AuthzRoleBinding resources.

API Version​

openchoreo.dev/v1alpha1

Resource Definition​

Metadata​

AuthzClusterRoles are cluster-scoped resources.

apiVersion: openchoreo.dev/v1alpha1
kind: AuthzClusterRole
metadata:
name: <role-name>

Spec Fields​

FieldTypeRequiredDefaultDescription
actions[]stringYes-List of actions this role permits. Supports wildcards (*, component:*). Minimum 1 item
descriptionstringNo""Human-readable description of the role's purpose

Actions Format​

Actions follow the resource:verb format. Supported patterns:

PatternMeaning
component:viewA specific action
component:*All actions for a resource type
*All actions on all resources

Examples​

Platform Admin (Full Access)​

apiVersion: openchoreo.dev/v1alpha1
kind: AuthzClusterRole
metadata:
name: platform-admin
spec:
actions:
- "*"
description: "Platform administrator with full access to all resources"

Read-Only Viewer​

apiVersion: openchoreo.dev/v1alpha1
kind: AuthzClusterRole
metadata:
name: viewer
spec:
actions:
- "namespace:view"
- "project:view"
- "component:view"
- "environment:view"
- "workflow:view"
- "dataplane:view"
description: "Read-only access to core resources"