Careful!
You are browsing documentation for a version of Kuma that is not the latest release.
Kuma API access control
Kuma provide a simple access control to administrative actions executed on Kuma API Server (port 5681 by default).
Kuma does not provide role-based access control (RBAC).
The settings on this page are coarse allow-lists for a few administrative operations - they are not a general authorization layer.
Most resources, including Mesh, are writable by any caller that can reach the API server.
By default the API server listens on 0.0.0.0:5681 with no authentication, so any client that can reach that port can create, update, or delete resources.
A Mesh resource includes the mesh mTLS CA (mtls.backends[].conf), so a caller that can PUT a Mesh can replace the CA and take over the mesh.
Enabling token authentication does not prevent this on its own, because a Mesh write is not an admin-only operation - any valid token can perform it.
You are responsible for restricting access to the API server yourself. See Protecting the API server.
Manage admin resources
Admin resources are Secret and GlobalSecret.
KUMA_ACCESS_STATIC_ADMIN_RESOURCES_USERSallows users to manage admin resources. Default ismesh-system:admin.KUMA_ACCESS_STATIC_ADMIN_RESOURCES_GROUPSallows groups to manage admin resources. Default ismesh-system:admin.
Generate dataplane token
KUMA_ACCESS_STATIC_GENERATE_DP_TOKEN_USERSallows users to generate dataplane token. Defaultmesh-system:admin.KUMA_ACCESS_STATIC_GENERATE_DP_TOKEN_GROUPSallows groups to generate dataplane token. Defaultmesh-system:admin.
Generate user token
KUMA_ACCESS_STATIC_GENERATE_USER_TOKEN_USERSallows users to generate user token. Defaultmesh-system:admin.KUMA_ACCESS_STATIC_GENERATE_USER_TOKEN_GROUPSallows groups to generate user token. Defaultmesh-system:admin.
Generate zone token
KUMA_ACCESS_STATIC_GENERATE_ZONE_TOKEN_USERSallows users to generate zone token. Defaultmesh-system:admin.KUMA_ACCESS_STATIC_GENERATE_ZONE_TOKEN_GROUPSallows groups to generate zone token. Defaultmesh-system:admin.
View Envoy config dump
KUMA_ACCESS_STATIC_GET_CONFIG_DUMP_USERSallows users to view Envoy config dump. Default is an empty list.KUMA_ACCESS_STATIC_GET_CONFIG_DUMP_GROUPSallows groups to view Envoy config dump. Default:mesh-system:unauthenticated,mesh-system:authenticated.
View Envoy stats
KUMA_ACCESS_STATIC_VIEW_STATS_USERSallows users to view Envoy stats. Default is an empty list.KUMA_ACCESS_STATIC_VIEW_STATS_GROUPSallows groups to view Envoy stats. Default:mesh-system:unauthenticated,mesh-system:authenticated.
View Envoy clusters
KUMA_ACCESS_STATIC_VIEW_CLUSTERS_USERSallows users to view Envoy clusters. Default is an empty list.KUMA_ACCESS_STATIC_VIEW_CLUSTERS_GROUPSallows groups to view Envoy clusters. Default:mesh-system:unauthenticated,mesh-system:authenticated.