Skip to content

Task: Add RBAC Logic for Templates and Instances #275

@n3rdc4ptn

Description

@n3rdc4ptn

Understand the Task

Description
This task defines and implements the Kubernetes Role-Based Access Control (RBAC) necessary to govern who can create and manage ManagedControlPlaneTemplate resources and their dynamically generated instances.

  • For Platform Administrators: Define ClusterRole and ClusterRoleBinding to allow full management of cluster-scoped ManagedControlPlaneTemplates.
  • For Platform Users: Define Role and RoleBinding within specific namespaces to allow creation and management of namespace-scoped ManagedControlPlaneTemplates and their corresponding generated CR instances. This ensures users can only create and manage resources within their designated project namespaces.

Any further valuable resources.

What is required to accept the Task as done.

Done Criteria

  • YAML manifests for ClusterRole, ClusterRoleBinding, Role, and RoleBinding that accurately define permissions for:
    • Platform Administrators to manage cluster-scoped ManagedControlPlaneTemplates.
    • Platform Users to manage namespace-scoped ManagedControlPlaneTemplates and their generated instances within allowed namespaces.
  • Verification that RBAC rules correctly enforce access policies for different personas and scopes.
  • Code has been reviewed by other team members
  • Internal technical Documentation created/updated
  • New / changed code is documented
  • Unit Tests created for new code or existing Unit Tests updated
  • Integration Test Suite updated
  • Enduser Documentation updated (if applicable)
  • Successful demonstration in Review

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/taskGeneral task that needs to be done.needs/validationVerify Issue and Prio with PO

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions