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 ( |
Installation workflows |
Read nodes to verify the cluster, and delete the cluster-scoped resources of SmartInstall during uninstallation. |
MES Operator |
Reads |
RabbitMQ Cluster Operator |
Manages |
|
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, |
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 |
|
- |
|
|
Non-resource URLs |
|
|||
|
- |
|
|
|
|
|
|||
|
|
|
||
|
|
|
||
Argo CD server |
|
- |
|
|
|
|
|||
|
|
|||
|
|
|
||
|
|
|||
|
|
|||
|
|
|
||
|
- |
|
|
|
|
|
|||
|
|
|
||
Argo CD ApplicationSet controller |
|
|
|
|
- |
|
|
||
|
|
|
|
|
|
|
|||
|
|
|||
- |
|
|
||
|
|
|||
|
|
|||
|
|
|
||
|
|
|||
|
|
|
||
Argo CD Redis secret init |
|
- |
|
|
Argo CD repo server |
|
- |
- |
- |
Argo Workflows
Argo Workflows runs the installation workflows.
| Component | Kind | API group | Resources | Verbs |
|---|---|---|---|---|
Argo Workflows controller |
|
|
|
|
- |
|
|
||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|
||
|
|
|||
|
|
|||
|
|
|||
|
|
|
||
Argo Workflows server |
|
- |
|
|
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|
With SSO enabled, two more Roles are mapped to the configured SSO groups:
| Component | Kind | API group | Resources | Verbs |
|---|---|---|---|---|
Argo Workflows SSO read-only |
|
- |
|
|
|
|
|
||
Argo Workflows SSO admin |
|
- |
|
|
|
|
|||
|
|
|
Installation Workflows
The installation tasks are executed with the ServiceAccount of the installation workflows.
| Component | Kind | API group | Resources | Verbs |
|---|---|---|---|---|
Installation workflows |
|
- |
|
|
|
|
|
||
|
|
|
||
|
|
|
||
|
- |
|
|
|
|
|
|||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|||
|
|
|
||
|
|
|||
|
|
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 |
|
|
|
|
|
|
|
|
|
|
|
|
||
- |
|
|
||
|
|
|||
|
|
|||
|
|
|||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
|
The MES Operator creates |
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 |
|---|---|---|---|---|
|
|
- |
|
|
|
|
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 |
|
- |
|
|
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|||
|
|
|||
|
|
|
||
|
- |
|
|
|
|
|
|||
|
|
|
||
RabbitMQ server (Role created by the RabbitMQ Cluster Operator) |
|
- |
|
|
|
|
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 |
|
- |
|
|
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
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 |
|
|
|
|
Installation workflows |
|
|
|
|
|
With the customer-provided Argo CD setup, Argo CD must additionally be able to manage Routes and the router |
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 |
- |
|
|
API Gateway |
- |
|
|
|
Installation Server |
- |
|
|
|
RabbitMQ Management |
- |
|
|
|
Argo CD namespace |
Argo CD server. (Körber-provided Argo CD only) |
- |
|
|
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.