Kubernetes RBAC Permissions

All applications ship with Kubernetes RBAC definitions (ServiceAccount, Role, RoleBinding, ClusterRole, ClusterRoleBinding). This page lists the permissions SmartInstall and PAS-X MES need to install and run on Kubernetes.

A ClusterRole defines permissions in all namespaces and on cluster-wide resources. A Role defines permissions only in the namespace the application is installed in, which is the MES namespace unless a section says otherwise.

Most object names are derived from the Helm release name, so this page refers to them by component (for example, Argo CD application controller). Names that are fixed are shown in code format.

On OpenShift, the additional permissions are listed in OpenShift.

Overview of Cluster-Scoped Permissions

The following table lists every ClusterRole that SmartInstall and PAS-X MES create. The component sections further down list the detailed rules of each component, for both ClusterRoles and Roles.

Component Purpose of the ClusterRole

Argo CD

Deploys and synchronizes all MES resources. Has full access (*) to all resources, which is the Argo CD default.

Installation workflows

Read nodes to verify the cluster, and delete the cluster-scoped resources of SmartInstall during uninstallation.

MES Operator

Reads CustomResourceDefinitions.

RabbitMQ Cluster Operator

Manages RabbitmqCluster resources and their workloads.

The Argo CD permissions on this page apply only to the Körber-provided Argo CD setup considering a cross-namespace Argo CD setup.

With the customer-provided Argo CD setup, the customer manages the Argo CD permissions. Argo CD must be able to create, update and delete every resource SmartInstall manages in the MES namespace, plus the cluster-scoped resources SmartInstall installs (CRDs, ClusterRoles, ClusterRoleBindings).

SmartInstall

Argo CD

The following permissions apply when Argo CD is installed with the Körber-provided setup.

Sub-Component Kind API group Resources Verbs

Argo CD application controller

ClusterRole

-

*

*

Non-resource URLs *

*

Role

-

secrets
configmaps

get, list, watch

events

create, list

argoproj.io

applications
applicationsets
appprojects

create, delete, get, list, patch, update, watch

apps

deployments

get, list, watch

Argo CD server

ClusterRole

-

*

delete, get, patch

events

create, list

pods
pods/log

get

argoproj.io

applications
applicationsets

get, list, update, watch

applications

create, delete, patch, update

workflows

create

batch

jobs

create

Role

-

secrets
configmaps

create, delete, get, list, patch, update, watch

events

create, list

argoproj.io

applications
applicationsets
appprojects

create, delete, get, list, patch, update, watch

Argo CD ApplicationSet controller

ClusterRole

argoproj.io

applications
appprojects
applicationsets
applicationsets/status
applicationsets/finalizers

*

-

secrets

get, list, watch

Role

argoproj.io

applications
applicationsets
applicationsets/finalizers

create, delete, get, list, patch, update, watch

applicationsets/status

get, patch, update

appprojects

get, list, watch

-

events

create, get, list, patch, watch

configmaps

create, delete, get, list, patch, update, watch

secrets

get, list, watch

apps

deployments

get, list, watch

extensions

deployments

coordination.k8s.io

leases

create, get, update

Argo CD Redis secret init

Role

-

secrets

create, get

Argo CD repo server

Role

-

-

-

Argo Workflows

Argo Workflows runs the installation workflows.

Component Kind API group Resources Verbs

Argo Workflows controller

Role

coordination.k8s.io

leases

create, get, update

-

pods
pods/exec

create, delete, get, list, patch, update, watch

configmaps

get, list, watch

persistentvolumeclaims
persistentvolumeclaims/finalizers

create, delete, get, update

serviceaccounts

get, list

secrets

get

events

create, patch

argoproj.io

workflows
workflows/finalizers
workflowtasksets
workflowtasksets/finalizers
workflowartifactgctasks

create, delete, get, list, patch, update, watch

workflowtemplates
workflowtemplates/finalizers

get, list, watch

workflowtaskresults

deletecollection, list, watch

cronworkflows
cronworkflows/finalizers

delete, get, list, patch, update, watch

policy

poddisruptionbudgets

create, delete, get

Argo Workflows server

Role

-

configmaps

get, list, watch

secrets

create, get

pods
pods/exec
pods/log

delete, get, list, watch

events

create, patch, watch

serviceaccounts

get, list, watch

argoproj.io

eventsources
sensors
workflows
workfloweventbindings
workflowtemplates
cronworkflows
cronworkflows/finalizers

create, delete, get, list, patch, update, watch

With SSO enabled, two more Roles are mapped to the configured SSO groups:

Component Kind API group Resources Verbs

Argo Workflows SSO read-only

Role

-

events
pods
pods/log

get, list, watch

argoproj.io

workflows
workflows/finalizers
workfloweventbindings
workfloweventbindings/finalizers
workflowtemplates
workflowtemplates/finalizers
cronworkflows
cronworkflows/finalizers
workflowtaskresults
workflowtaskresults/finalizers

get, list, watch

Argo Workflows SSO admin

Role

-

events
pods/log

get, list, watch

pods

delete, get, list, watch

argoproj.io

workflows
workflows/finalizers
workfloweventbindings
workfloweventbindings/finalizers
workflowtemplates
workflowtemplates/finalizers
cronworkflows
cronworkflows/finalizers
workflowtasksets
workflowtasksets/finalizers
workflowtaskresults
workflowtaskresults/finalizers

create, delete, deletecollection, get, list, patch, update, watch

Installation Workflows

The installation tasks are executed with the ServiceAccount of the installation workflows.

Component Kind API group Resources Verbs

Installation workflows

ClusterRole

-

nodes

get, list, watch

apiextensions.k8s.io

customresourcedefinitions

delete, get, list, watch

rbac.authorization.k8s.io

clusterroles
clusterrolebindings

delete, get, list, watch

admissionregistration.k8s.io

mutatingwebhookconfigurations
validatingwebhookconfigurations

delete, get, list, watch

Role

-

namespaces
configmaps
pods
pods/log

get, list, watch

services
configmaps
secrets
persistentvolumeclaims
serviceaccounts

delete, get, list, watch

apps

deployments
statefulsets
daemonsets
replicasets

delete, get, list, watch

networking.k8s.io

ingresses
networkpolicies

delete, get, list, watch

rabbitmq.com

rabbitmqclusters

delete, get, list, watch

cert-manager.io

certificates
issuers
clusterissuers

delete, get, list, watch

rbac.authorization.k8s.io

roles
rolebindings

delete, get, list, watch

batch

jobs

create, delete, get, list, watch

argoproj.io

workflowtaskresults

create, patch

workflows
workflows/status
applications
applicationsets

get, list, watch

pasx.io

instances

delete, get, list, patch, update, watch

genericservices
languagepacks

delete, get, list, watch

installationphaseresults
installationphaseresults/status
installationreports
installationreports/status
packagemanifests

create, get, list, patch, update, watch

Installation Server

The ServiceAccount of the Installation Server has no additional permissions.

PAS-X MES

MES Operator

The MES Operator reconciles the PAS-X MES custom resources.

Component Kind API group Resources Verbs

MES Operator

ClusterRole

apiextensions.k8s.io

customresourcedefinitions

get, list, watch

Role

pasx.io

instances
instances/status
genericservices
genericservices/status
languagepacks

get, list, patch, update, watch

apps

deployments

create, delete, get, list, patch, update, watch

-

pods

get, list, watch

services
secrets
configmaps

create, delete, get, list, patch, update, watch

events

create, get, patch, update

serviceaccounts

create, delete, get, list, patch, update, watch

batch

jobs

create, delete, get, list, patch, update, watch

networking.k8s.io

ingresses

create, delete, get, list, patch, update, watch

rbac.authorization.k8s.io

roles
rolebindings

create, delete, get, list, patch, update, watch

configuration.konghq.com

kongplugins
kongupstreampolicies

create, delete, get, list, patch, update, watch

The MES Operator creates Roles and RoleBindings for leader election of the MES services (see MES Services). On OpenShift, it also creates them to grant the router access to the TLS Secret of each Instance (see OpenShift Router).

MES Services

Each MES service runs with its own ServiceAccount, which the MES Operator creates unless an existing ServiceAccount is configured (see Configuration Report).

With the exception of central, MES services have no permissions by default. A service with leader election enabled (currently central) gets the following Role from the MES Operator:

Component Kind API group Resources Verbs

<service>-leader-election

Role

-

pods

get, watch

configmaps (only <service>-leader-election)

get, patch, update, watch

RabbitMQ

The RabbitMQ Cluster Operator manages the RabbitMQ cluster. The RabbitMQ server pods run with the fixed ServiceAccount rabbitmq-server.

Component Kind API group Resources Verbs

RabbitMQ Cluster Operator

ClusterRole

-

configmaps
persistentvolumeclaims
secrets
serviceaccounts
services

create, get, list, update, watch

endpoints

get, list, watch

events

create, get, patch

pods

get, list, update, watch

pods/exec

create

apps

statefulsets

create, delete, get, list, update, watch

discovery.k8s.io

endpointslices

get, list, watch

rabbitmq.com

rabbitmqclusters

create, get, list, update, watch

rabbitmqclusters/finalizers

update

rabbitmqclusters/status

get, patch, update

rbac.authorization.k8s.io

roles
rolebindings

create, delete, get, list, update, watch

Role

-

configmaps

create, delete, get, list, patch, update, watch

events

create, patch

coordination.k8s.io

leases

create, delete, get, list, patch, update, watch

RabbitMQ server (Role created by the RabbitMQ Cluster Operator)

Role

-

endpoints

get

events

create

Observability

The OpenTelemetry collector (mes-otel) reads Kubernetes metadata, cluster metrics and events of the MES namespace.

Component Kind API group Resources Verbs

OpenTelemetry collector

Role

-

pods
namespaces
nodes
events
namespaces/status
nodes/stats
nodes/proxy
nodes/metrics
nodes/spec
pods/status
replicationcontrollers
replicationcontrollers/status
resourcequotas
services

get, list, watch

apps

replicasets
daemonsets
deployments
statefulsets

get, list, watch

extensions

replicasets
daemonsets
deployments

get, list, watch

batch

jobs
cronjobs

get, list, watch

autoscaling

horizontalpodautoscalers

get, list, watch

events.k8s.io

events

get, list, watch

metrics.k8s.io

pods

get, list

API Gateway

The ServiceAccount of the API Gateway has no additional permissions.

OpenShift

On OpenShift, SmartInstall and PAS-X MES create no additional ClusterRoles. The additional permissions are all namespace-scoped and fall into three groups: Security Context Constraints (SCCs), access to Routes, and read access to TLS Secrets for the OpenShift router.

Security Context Constraints

All SmartInstall and PAS-X MES workloads are designed to run under the default Security Context Constraint (SCC) restricted-v2. OpenShift lets all authenticated users use restricted-v2, so SmartInstall and PAS-X MES need no SCC grant and create no RBAC on securitycontextconstraints.

OpenShift gives every namespace its own range of user and group IDs, and restricted-v2 assigns them to the pods from that range. On OpenShift, the charts and the MES Operator therefore do not set fixed user IDs (runAsUser) or volume groups (fsGroup).

If additional SCCs are granted to these ServiceAccounts, OpenShift may admit the pods under a different SCC. SmartInstall and PAS-X MES do not require this.

Routes

On OpenShift, the components are exposed through route.openshift.io Routes instead of Kubernetes Ingresses. The following rules are added to the existing Roles:

Component Kind API group Resources Verbs

MES Operator

Role

route.openshift.io

routes
routes/custom-host

create, delete, get, list, patch, update, watch

Installation workflows

Role

route.openshift.io

routes
routes/custom-host

delete, get, list, watch

With the customer-provided Argo CD setup, Argo CD must additionally be able to manage Routes and the router Roles and RoleBindings in the MES namespace.

OpenShift Router

Most Routes use edge TLS termination: the OpenShift router decrypts the traffic with a certificate it reads from a TLS Secret in the Route’s namespace. For every such Secret, a Role that grants read access to this single Secret is bound to the router ServiceAccount, with one created per namespace.

Namespace Component and Role/RoleBinding API group Resources Verbs

PAS-X MES namespace

MES Services

-

secrets (the Instance TLS Secret only)

get, list, watch

API Gateway

-

secrets (the API Gateway TLS Secret only)

get, list, watch

Installation Server

-

secrets (the Installation Server TLS Secret only)

get, list, watch

RabbitMQ Management

-

secrets (the RabbitMQ TLS Secret only)

get, list, watch

Argo CD namespace

Argo CD server. (Körber-provided Argo CD only)

-

secrets (argocd-server-tls only)

get, list, watch

The Argo Workflows server Route uses passthrough TLS termination: the router forwards encrypted traffic to the Argo Workflows server, which terminates TLS itself. No router Role is needed for that Route.