Kubernetes Authorization
Contents
Why Authorization?
Admins
PODs
|
|
|
|
Nodes
|
|
|
|
Delete Node
|
|
|
|
Developers
PODs
|
|
|
|
Nodes
|
|
|
|
Delete Node
|
|
|
|
Bots
PODs
|
|
|
|
Nodes
|
|
|
|
Delete Node
|
|
|
|
Authorization Mechanisms
Node Authorization
Node Authorization
The Node authorizer allows a kubelet to perform API operations.
The official document is Node Authorization
The official document is Node Authorization
Read Operations
- services
- endpoints
- nodes
- pods
- secrets, configmaps, persistent volume claims and persistent volumes related to pods bound to the kubelet’s node
Write Operations
- nodes and node status
- pods and pod status
- events
Auth-related Operation
ABAC Authorization
ABAC Authorization
Attribute-based access control (ABAC) defines an access control paradigm whereby access rights are granted to users through the use of policies which combine attributes together.
The official document is ABAC Authorization
The official document is ABAC Authorization
RBAC Authorization
RBAC Authorization
Role-based access control (RBAC) is a method of regulating access to computer or network resources based on the roles of individual users within your organization.
RBAC authorization uses the rbac.authorization.k8s.io API group to drive authorization decisions, allowing you to dynamically configure policies through the Kubernetes API.
To enable RBAC, start the API server with the –authorization-mode flag set to a comma-separated list that includes RBAC; for example:
|
|
The official document is RBAC Authorization
Webhook Mode
Webhook
A WebHook is an HTTP callback: an HTTP POST that occurs when something happens; a simple event-notification via HTTP POST. A web application implementing WebHooks will POST a message to a URL when certain things happen.
When specified, mode Webhook causes Kubernetes to query an outside REST service when determining user privileges.
The official document is Webhook
When specified, mode Webhook causes Kubernetes to query an outside REST service when determining user privileges.
The official document is Webhook
Authorization Mode
Setting in Kube API
--authorization-mode
--authorization-mode
=Node,RBAC,Webhook
|
|
|
|