Skip to main content

Zone Permissions

You grant access by mapping your identity-provider groups to roles with roleMapping; each role is backed by Kubernetes RBAC in the Zone's Namespaces and by a matching role in the Zone's ArgoCDProject. For creating a Zone, see Create a Zone; for the cluster-wide settings that apply to every Zone, see Zone Management.

Roles​

Observer — read-only. Reads every object in the Zone's Namespaces, plus the cluster-wide objects those workloads depend on — storage classes, ingress classes, cluster issuers, nodes and the Zone itself.

Contributor — deploys and runs applications. Creates, edits and deletes the everyday objects in the Zone's Namespaces (Deployments, Services, ConfigMaps, Secrets, Ingresses, the platform's resource claims, and so on — the full set is the namespaceRole allow-list), reads the cloud resources the platform provisions there (RDS, KMS, EC2…) through crossplane-view, and manages the Zone's ArgoCD Applications. Can't create raw cloud resources, edit the Namespace object, or escalate its own RBAC.

Maintainer — manages the Zone itself. Creates, edits and deletes Zones and Namespaces, and assigns groups to roles with the Zone's spec.roleMapping. Not a cluster administrator, and can't manage the infralib Zone.

Which cluster-scoped objects an Observer reads
  • namespaces, nodes, persistentvolumes
  • zones — the Zone object
  • storageclasses, ingressclasses
  • clusterissuers — cert-manager
  • clustersecretstores, clustergenerators — external-secrets
  • AWS only: ingressclassparams.elbv2.k8s.aws, nodegroups.eks.aws.upbound.io
  • Oracle Cloud only: ingressclassparameters.ingress.oraclecloud.com
The cicd role

cicd is a pipeline role that lives only in the Zone's ArgoCDProject, not in Kubernetes RBAC. It mints a token so CI/CD can sync the Zone's Applications without a personal account — see GitLab CI – ArgoCD authentication.

Planned: the set of roles is fixed by the platform today; letting you define your own is planned.

Assigning roles​

User groups are granted roles through roleMapping, which can be set in two places:

  • Global — set in the platform-api Helm chart environmentConfig. Applies across all Zones and their Namespaces in the cluster.
  • Per-Zone — set in the Zone object spec. Applies only to that Zone's Namespaces.

A role grants almost the same access through kubectl as it does in the Zone's ArgoCDProject, small differences aside.

Global / cluster-wide roleMapping​

Set roles that apply across every Zone in the cluster, in the platform-apis environmentConfig.

steps:
...
- name: apps
type: argocd-apps
modules:
...
- name: platform-apis
source: platform-apis
inputs:
platform-apis:
zone:
environmentConfig:
roleMapping:
- roleRef: maintainer
groups: ["maintainer-group"]
- roleRef: observer
groups: ["observer-group"]

Per-Zone roleMapping​

Set roles that apply only to a single Zone, in that Zone object's spec.roleMapping.

apiVersion: tenancy.entigo.com/v1alpha1
kind: Zone
metadata:
name: example-zone
spec:
roleMapping:
- groups:
- contributor-group
roleRef: contributor
- groups:
- observer-group
roleRef: observer

namespaceRole​

The Role bound to Contributors and Maintainers in every Zone Namespace (Observer gets the read-only Role instead). Rather than blanket access, it's an explicit allow-list of what a team manages day to day. The platform ships a sensible default; to grant a kind it doesn't cover, add namespaceRole.additionalRules in the environmentConfig — they're appended to the default, so you don't restate it.

What the default grants in a Zone's Namespaces:

  • Workloads and config — Pods (and exec/attach/port-forward/logs), Deployments, StatefulSets, Jobs, CronJobs, HPAs, PDBs, ConfigMaps, Secrets, Services, PVCs, ServiceAccounts.
  • Routing — Ingresses, NetworkPolicies, Gateway API routes and Istio VirtualService / DestinationRule / ServiceEntry.
  • Platform integrations — the entigo.com resource claims (database.entigo.com, storage.entigo.com, …), external-secrets, cert-manager Certificate/Issuer, and monitoring.coreos.com monitors and rules.
  • Scoped RBAC — roles and rolebindings, so a team can delegate to its own ServiceAccounts.

What it deliberately does not grant — the three boundaries behind the roles above:

  • Crossplane managed resources (*.m.upbound.io, *.m.crossplane.io). Teams create cloud resources through the platform APIs and Crossplane composes the managed resources; creating one directly is also refused by a cluster policy that only lets the crossplaneNamespace service accounts do it. Teams still read them through the crossplane-view binding each Zone Namespace gets.
  • The Namespace object itself. Only Maintainers manage a Zone's own Namespaces.
  • The RBAC bind and escalate verbs. Without them the API server caps any Role or RoleBinding a team creates at the permissions the team already holds — so a team can give its ServiceAccounts a subset of this Role, never more.
Extending vs. replacing

Two knobs in the environmentConfig, both namespace-scoped:

  • additionalRules — appended to the default. Use this to grant an extra kind without restating the whole list.
  • rules — replaces the default outright. The chart already ships it, so set it only to change the baseline itself. (The tenancy function refuses to run with rules missing entirely, so a broken config can't silently wipe every Zone's Role.)
platform-apis:
zone:
environmentConfig:
namespaceRole:
additionalRules:
# appended to the default — grant a kind it doesn't cover
- apiGroups: ["keda.sh"]
resources: ["scaledobjects", "triggerauthentications"]
verbs: ["*"]
The default namespaceRole.rules
namespaceRole:
rules:
- apiGroups: [""]
resources: ["pods", "pods/log", "services", "endpoints", "configmaps", "secrets",
"persistentvolumeclaims", "serviceaccounts", "events"]
verbs: ["*"]
- apiGroups: [""]
resources: ["pods/exec", "pods/attach", "pods/portforward", "pods/eviction", "serviceaccounts/token"]
verbs: ["create"]
- apiGroups: ["apps", "batch", "autoscaling", "policy"]
resources: ["*"]
verbs: ["*"]
- apiGroups: ["networking.k8s.io"]
resources: ["ingresses", "networkpolicies"]
verbs: ["*"]
- apiGroups: ["gateway.networking.k8s.io"]
resources: ["httproutes", "grpcroutes", "tcproutes", "tlsroutes"]
verbs: ["*"]
- apiGroups: ["networking.istio.io"]
resources: ["virtualservices", "destinationrules", "serviceentries"]
verbs: ["*"]
- apiGroups: ["external-secrets.io"]
resources: ["externalsecrets", "secretstores", "pushsecrets"]
verbs: ["*"]
# every generator kind is namespaced; the cluster-scoped ClusterGenerator is out of a Role's reach
- apiGroups: ["generators.external-secrets.io"]
resources: ["*"]
verbs: ["*"]
- apiGroups: ["artifact.entigo.com", "database.entigo.com", "mq.entigo.com",
"networking.entigo.com", "queue.entigo.com", "storage.entigo.com",
"workload.entigo.com"]
resources: ["*"]
verbs: ["*"]
- apiGroups: ["cert-manager.io"]
resources: ["certificates", "certificaterequests", "issuers"]
verbs: ["*"]
# created by cert-manager while it solves a Certificate; read them to see why an issuance is stuck
- apiGroups: ["acme.cert-manager.io"]
resources: ["orders", "challenges"]
verbs: ["get", "list", "watch"]
- apiGroups: ["monitoring.coreos.com"]
resources: ["servicemonitors", "podmonitors", "prometheusrules"]
verbs: ["*"]
- apiGroups: [""]
resources: ["pods/ephemeralcontainers"]
verbs: ["get", "update", "patch"]
- apiGroups: ["coordination.k8s.io"]
resources: ["leases"]
verbs: ["*"]
- apiGroups: ["metrics.k8s.io"]
resources: ["pods"]
verbs: ["get", "list"]
- apiGroups: ["discovery.k8s.io", "events.k8s.io"]
resources: ["endpointslices", "events"]
verbs: ["get", "list", "watch"]
# explicit verbs on purpose — "*" would include bind and escalate
- apiGroups: ["rbac.authorization.k8s.io"]
resources: ["roles", "rolebindings"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete", "deletecollection"]

Tuning ArgoCDProject permissions​

Separately from the Namespace RBAC above, you can control which resources ArgoCD may deploy. Use platform-apis Helm values: appProject sets the whitelist and blacklist on each Zone's own ArgoCDProject, and clusterResourceWhitelist sets it on the cluster-wide zone project.

platform-apis:
zone:
environmentConfig:
appProject:
namespaceResourceBlacklist: #Affects the namespace resource blacklist of the Zone ArgoCDProject. Example contains default values.
- group: '*.m.upbound.io'
kind: '*'
namespaceResourceWhitelist: []
clusterResourceWhitelist: #Affects the cluster resource whitelist of the "zone" project. Example contains default values.
- group: tenancy.entigo.com
kind: Zone
- group: eks.aws.upbound.io
kind: NodeGroup

Restricting source repositories​

global.sourceRepos is the allow-list of repositories ArgoCD may deploy from — Git, Helm or OCI, globs allowed — applied to every Zone's ArgoCDProject at once. The default ["*"] accepts any source; set an explicit list to restrict where a Zone's Applications can pull from.

platform-apis:
global:
sourceRepos:
- "https://github.com/your-org/*"
- "oci://your-registry.example.com/*"