# SelfSubjectRulesReview

SelfSubjectRulesReviewSelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace.apiVersion: authorization.k8s.io/v1import "k8s.io/api/authorization/v1"SelfSubjectRulesReviewSelfSubjectRulesReview 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.apiVersion: authorization.k8s.io/v1kind: SelfSubjectRulesReviewmetadata (ObjectMeta)Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataspec (SelfSubjectRulesReviewSpec), requiredSpec holds information about the request being evaluated.status (SubjectRulesReviewStatus)Status is filled in by the server and indicates the set of actions a user can perform.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.status.incomplete (boolean), requiredIncomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.status.nonResourceRules ([]NonResourceRule), requiredAtomic: will be replaced during a mergeNonResourceRules 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.NonResourceRule holds information that describes a rule for the non-resourcestatus.nonResourceRules.verbs ([]string), requiredAtomic: will be replaced during a mergeVerb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. "*" means all.status.nonResourceRules.nonResourceURLs ([]string)Atomic: will be replaced during a mergeNonResourceURLs 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.status.resourceRules ([]ResourceRule), requiredAtomic: will be replaced during a mergeResourceRules 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.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.status.resourceRules.verbs ([]string), requiredAtomic: will be replaced during a mergeVerb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*" means all.status.resourceRules.apiGroups ([]string)Atomic: will be replaced during a mergeAPIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "*" means all.status.resourceRules.resourceNames ([]string)Atomic: will be replaced during a mergeResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means all.status.resourceRules.resources ([]string)Atomic: will be replaced during a mergeResources is a list of resources this rule applies to. "" means all in the specified apiGroups. "/foo" represents the subresource 'foo' for all resources in the specified apiGroups.status.evaluationError (string)EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete.SelfSubjectRulesReviewSpecSelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview.namespace (string)Namespace to evaluate rules for. Required.Operationscreate create a SelfSubjectRulesReviewHTTP RequestPOST /apis/authorization.k8s.io/v1/selfsubjectrulesreviewsParametersbody: SelfSubjectRulesReview, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidation (in query): stringfieldValidationpretty (in query): stringprettyResponse200 (SelfSubjectRulesReview): OK201 (SelfSubjectRulesReview): Created202 (SelfSubjectRulesReview): Accepted401: UnauthorizedThis page is automatically generated.If you plan to report an issue with this page, mention that the page is auto-generated in your issue description. The fix may need to happen elsewhere in the Kubernetes project.