authz

package
v0.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthorization

GetAuthorization returns authorization for user, cluster The RBAC model mapped to the existing role PROJECT_ADMIN:

  • Read/Write access to all cluster scoped resources
  • Read/Write access to all namespace scoped resources

PROJECT_READ:

  • Read access to all cluster scoped resources
  • Read access to all namespace scoped resources

INFRA_ADMIN:

  • Read/Write access to all cluster scoped resources
  • Read/Write access to all namespace scoped resources

INFRA_READ:

  • Read access to all cluster scoped resources
  • Read access to all namespace scoped resources

ENV_ADMIN

  • NO Access to cluster scoped resources
  • Read/Write Access to namespace scoped resources (only within the environment)

ENV_READ

  • NO Access to cluster scoped resources
  • Read Access to namespace scoped resources (only within the environment)

func GetDefaultClusterRole

func GetDefaultClusterRole() (*rbacv1.ClusterRole, error)

GetDefaultClusterRole returns default cluster role for relay user

func GetDefaultRole

func GetDefaultRole() (*rbacv1.Role, error)

GetDefaultRole return default role for relay user

func GetFullAccessClusterRole

func GetFullAccessClusterRole() (*rbacv1.ClusterRole, error)

GetFullAccessClusterRole gets cluster role with full access

func GetNamespace

func GetNamespace() (*corev1.Namespace, error)

GetNamespace gets namespace

func GetReadClusterScopeClusterRole

func GetReadClusterScopeClusterRole() (*rbacv1.ClusterRole, error)

GetReadClusterScopeClusterRole gets cluster role with read access

func GetReadNamespaceClusterRole

func GetReadNamespaceClusterRole() (*rbacv1.ClusterRole, error)

GetReadNamespaceClusterRole gets cluster role with read access

func GetReadNamespaceRole

func GetReadNamespaceRole() (*rbacv1.Role, error)

GetReadNamespaceRole gets cluster role with read access

func GetWriteClusterScopeClusterRole

func GetWriteClusterScopeClusterRole() (*rbacv1.ClusterRole, error)

GetWriteClusterScopeClusterRole gets cluster role with write access

func GetWriteNamespaceClusterRole

func GetWriteNamespaceClusterRole() (*rbacv1.ClusterRole, error)

GetWriteNamespaceClusterRole gets cluster role with write access

func GetWriteNamespaceRole

func GetWriteNamespaceRole() (*rbacv1.Role, error)

GetWriteNamespaceRole gets cluster role with write access

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL