Kubernetes authorization
Authorization determines whether a request is allowed or denied. Once the origin of the request is identified, active authorization modules evaluate the attributes of the request against the authorization policies of the user to allow or deny a request. Each request passes through the authorization module sequentially and if any module provides a decision to allow or deny, it is automatically accepted or denied.
Request attributes
Authorization modules parse a set of attributes in a request to determine whether the request should be parsed, allowed, or denied:
- User: The originator of the request. This is validated during authentication.
- Group: The group that the user belongs to. This is provided in the authentication layer.
- API: The destination of the request.
- Request verb: The type of request, which can be
GET
,CREATE
,PATCH
,DELETE
, and more. - Resource: The ID or name of the resource being accessed.
- Namespace: The namespace...