Skip to main content
Version: Next

AuthzRole

An AuthzRole defines a namespace-scoped authorization role containing a set of permitted actions. Namespace roles are scoped to a single namespace and can only be referenced by AuthzRoleBinding resources within the same namespace.

API Version​

openchoreo.dev/v1alpha1

Resource Definition​

Metadata​

AuthzRoles are namespace-scoped resources.

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

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​

Developer Role​

apiVersion: openchoreo.dev/v1alpha1
kind: AuthzRole
metadata:
name: developer
namespace: acme
spec:
actions:
- "component:*"
- "project:view"
- "workflow:view"
- "workload:view"
- "workload:create"
description: "Developer access for the acme namespace"

Namespace Viewer​

apiVersion: openchoreo.dev/v1alpha1
kind: AuthzRole
metadata:
name: namespace-viewer
namespace: acme
spec:
actions:
- "namespace:view"
- "project:view"
- "component:view"
description: "Read-only access within the acme namespace"