SelfSubjectRulesReview [authorization.k8s.io/v1]
SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server’s authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server.
Type
Required
spec
Description
SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview.
Type
object
Property | Type | Description |
---|---|---|
|
| Namespace to evaluate rules for. Required. |
.status
Description
SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it’s safe to assume the subject has that permission, even if that list is incomplete.
Type
object
Required
resourceRules
incomplete
Description
NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn’t significant, may contain duplicates, and possibly be incomplete.
Type
array
.status.nonResourceRules[]
Description
NonResourceRule holds information that describes a rule for the non-resource
Type
object
Required
verbs
Property | Type | Description |
---|---|---|
|
| NonResourceURLs is a set of partial urls that a user should have access to. s are allowed, but only as the full, final step in the path. ““ means all. |
|
| Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. “*” means all. |
Description
ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn’t significant, may contain duplicates, and possibly be incomplete.
Type
array
.status.resourceRules[]
Description
ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn’t significant, may contain duplicates, and possibly be incomplete.
Type
object
Required
verbs
API endpoints
The following API endpoints are available:
/apis/authorization.k8s.io/v1/selfsubjectrulesreviews
POST
: create a SelfSubjectRulesReview
Parameter | Type | Description |
---|---|---|
|
| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
|
| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by . |
|
| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the |
|
| If ‘true’, then the output is pretty printed. |
HTTP method
POST
Description
create a SelfSubjectRulesReview
HTTP code | Reponse body |
---|---|
200 - OK | SelfSubjectRulesReview schema |
201 - Created | schema |
202 - Accepted | SelfSubjectRulesReview schema |
401 - Unauthorized | Empty |