You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means "in all namespaces". Self is a special case, because users should always be able to check whether they can perform an action
SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set
Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview
125
125
126
-
- **resourceAttributes.resource** (string)
127
-
Resource is one of the existing resource types. "*" means all.
128
-
-->
126
+
<!--
127
+
- **resourceAttributes.namespace** (string)
128
+
Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview
129
+
130
+
- **resourceAttributes.resource** (string)
131
+
Resource is one of the existing resource types. "*" means all.
SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set
Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview
139
142
140
-
- **resourceAttributes.resource** (string)
141
-
Resource is one of the existing resource types. "*" means all.
143
+
<!--
144
+
- **resourceAttributes.namespace** (string)
145
+
Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview
146
+
147
+
- **resourceAttributes.resource** (string)
148
+
Resource is one of the existing resource types. "*" means all.
149
+
150
+
- **resourceAttributes.subresource** (string)
151
+
Subresource is one of the existing resource types. "" means none.
152
+
-->
142
153
143
-
- **resourceAttributes.subresource** (string)
144
-
Subresource is one of the existing resource types. "" means none.
EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.
@@ -234,6 +247,7 @@ SubjectAccessReviewStatus
234
247
235
248
reason 是可选的。
236
249
它表示为什么允许或拒绝请求。
250
+
237
251
<!--
238
252
## Operations {#Operations}
239
253
@@ -252,6 +266,7 @@ SubjectAccessReviewStatus
252
266
#### HTTP 请求
253
267
254
268
POST /apis/authorization.k8s.io/v1/subjectaccessreviews
0 commit comments