generated
This commit is contained in:
@@ -28347,6 +28347,62 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"/apis/authorization.k8s.io/v1/selfsubjectrulesreviews": {
|
||||
"post": {
|
||||
"description": "create a SelfSubjectRulesReview",
|
||||
"consumes": [
|
||||
"*/*"
|
||||
],
|
||||
"produces": [
|
||||
"application/json",
|
||||
"application/yaml",
|
||||
"application/vnd.kubernetes.protobuf"
|
||||
],
|
||||
"schemes": [
|
||||
"https"
|
||||
],
|
||||
"tags": [
|
||||
"authorization_v1"
|
||||
],
|
||||
"operationId": "createAuthorizationV1SelfSubjectRulesReview",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectRulesReview"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectRulesReview"
|
||||
}
|
||||
},
|
||||
"401": {
|
||||
"description": "Unauthorized"
|
||||
}
|
||||
},
|
||||
"x-kubernetes-action": "post",
|
||||
"x-kubernetes-group-version-kind": {
|
||||
"group": "authorization.k8s.io",
|
||||
"kind": "SelfSubjectRulesReview",
|
||||
"version": "v1"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"uniqueItems": true,
|
||||
"type": "string",
|
||||
"description": "If 'true', then the output is pretty printed.",
|
||||
"name": "pretty",
|
||||
"in": "query"
|
||||
}
|
||||
]
|
||||
},
|
||||
"/apis/authorization.k8s.io/v1/subjectaccessreviews": {
|
||||
"post": {
|
||||
"description": "create a SubjectAccessReview",
|
||||
@@ -28556,6 +28612,62 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"/apis/authorization.k8s.io/v1beta1/selfsubjectrulesreviews": {
|
||||
"post": {
|
||||
"description": "create a SelfSubjectRulesReview",
|
||||
"consumes": [
|
||||
"*/*"
|
||||
],
|
||||
"produces": [
|
||||
"application/json",
|
||||
"application/yaml",
|
||||
"application/vnd.kubernetes.protobuf"
|
||||
],
|
||||
"schemes": [
|
||||
"https"
|
||||
],
|
||||
"tags": [
|
||||
"authorization_v1beta1"
|
||||
],
|
||||
"operationId": "createAuthorizationV1beta1SelfSubjectRulesReview",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/io.k8s.api.authorization.v1beta1.SelfSubjectRulesReview"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/io.k8s.api.authorization.v1beta1.SelfSubjectRulesReview"
|
||||
}
|
||||
},
|
||||
"401": {
|
||||
"description": "Unauthorized"
|
||||
}
|
||||
},
|
||||
"x-kubernetes-action": "post",
|
||||
"x-kubernetes-group-version-kind": {
|
||||
"group": "authorization.k8s.io",
|
||||
"kind": "SelfSubjectRulesReview",
|
||||
"version": "v1beta1"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"uniqueItems": true,
|
||||
"type": "string",
|
||||
"description": "If 'true', then the output is pretty printed.",
|
||||
"name": "pretty",
|
||||
"in": "query"
|
||||
}
|
||||
]
|
||||
},
|
||||
"/apis/authorization.k8s.io/v1beta1/subjectaccessreviews": {
|
||||
"post": {
|
||||
"description": "create a SubjectAccessReview",
|
||||
@@ -56494,6 +56606,28 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"io.k8s.api.authorization.v1.NonResourceRule": {
|
||||
"description": "NonResourceRule holds information that describes a rule for the non-resource",
|
||||
"required": [
|
||||
"verbs"
|
||||
],
|
||||
"properties": {
|
||||
"nonResourceURLs": {
|
||||
"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.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"verbs": {
|
||||
"description": "Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"io.k8s.api.authorization.v1.ResourceAttributes": {
|
||||
"description": "ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface",
|
||||
"properties": {
|
||||
@@ -56527,6 +56661,42 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"io.k8s.api.authorization.v1.ResourceRule": {
|
||||
"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.",
|
||||
"required": [
|
||||
"verbs"
|
||||
],
|
||||
"properties": {
|
||||
"apiGroups": {
|
||||
"description": "APIGroups 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.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"resourceNames": {
|
||||
"description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"description": "Resources is a list of resources this rule applies to. ResourceAll represents all resources. \"*\" means all.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"verbs": {
|
||||
"description": "Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"io.k8s.api.authorization.v1.SelfSubjectAccessReview": {
|
||||
"description": "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",
|
||||
"required": [
|
||||
@@ -56574,6 +56744,48 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"io.k8s.api.authorization.v1.SelfSubjectRulesReview": {
|
||||
"description": "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.",
|
||||
"required": [
|
||||
"spec"
|
||||
],
|
||||
"properties": {
|
||||
"apiVersion": {
|
||||
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources",
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds",
|
||||
"type": "string"
|
||||
},
|
||||
"metadata": {
|
||||
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta"
|
||||
},
|
||||
"spec": {
|
||||
"description": "Spec holds information about the request being evaluated.",
|
||||
"$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectRulesReviewSpec"
|
||||
},
|
||||
"status": {
|
||||
"description": "Status is filled in by the server and indicates the set of actions a user can perform.",
|
||||
"$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectRulesReviewStatus"
|
||||
}
|
||||
},
|
||||
"x-kubernetes-group-version-kind": [
|
||||
{
|
||||
"group": "authorization.k8s.io",
|
||||
"kind": "SelfSubjectRulesReview",
|
||||
"version": "v1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"io.k8s.api.authorization.v1.SelfSubjectRulesReviewSpec": {
|
||||
"properties": {
|
||||
"namespace": {
|
||||
"description": "Namespace to evaluate rules for. Required.",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"io.k8s.api.authorization.v1.SubjectAccessReview": {
|
||||
"description": "SubjectAccessReview checks whether or not a user or group can perform an action.",
|
||||
"required": [
|
||||
@@ -56666,6 +56878,38 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"io.k8s.api.authorization.v1.SubjectRulesReviewStatus": {
|
||||
"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.",
|
||||
"required": [
|
||||
"resourceRules",
|
||||
"nonResourceRules",
|
||||
"incomplete"
|
||||
],
|
||||
"properties": {
|
||||
"evaluationError": {
|
||||
"description": "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.",
|
||||
"type": "string"
|
||||
},
|
||||
"incomplete": {
|
||||
"description": "Incomplete 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.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"nonResourceRules": {
|
||||
"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",
|
||||
"items": {
|
||||
"$ref": "#/definitions/io.k8s.api.authorization.v1.NonResourceRule"
|
||||
}
|
||||
},
|
||||
"resourceRules": {
|
||||
"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",
|
||||
"items": {
|
||||
"$ref": "#/definitions/io.k8s.api.authorization.v1.ResourceRule"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"io.k8s.api.authorization.v1beta1.LocalSubjectAccessReview": {
|
||||
"description": "LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.",
|
||||
"required": [
|
||||
@@ -56713,6 +56957,28 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"io.k8s.api.authorization.v1beta1.NonResourceRule": {
|
||||
"description": "NonResourceRule holds information that describes a rule for the non-resource",
|
||||
"required": [
|
||||
"verbs"
|
||||
],
|
||||
"properties": {
|
||||
"nonResourceURLs": {
|
||||
"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.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"verbs": {
|
||||
"description": "Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"io.k8s.api.authorization.v1beta1.ResourceAttributes": {
|
||||
"description": "ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface",
|
||||
"properties": {
|
||||
@@ -56746,6 +57012,42 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"io.k8s.api.authorization.v1beta1.ResourceRule": {
|
||||
"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.",
|
||||
"required": [
|
||||
"verbs"
|
||||
],
|
||||
"properties": {
|
||||
"apiGroups": {
|
||||
"description": "APIGroups 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.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"resourceNames": {
|
||||
"description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"description": "Resources is a list of resources this rule applies to. ResourceAll represents all resources. \"*\" means all.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"verbs": {
|
||||
"description": "Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"io.k8s.api.authorization.v1beta1.SelfSubjectAccessReview": {
|
||||
"description": "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",
|
||||
"required": [
|
||||
@@ -56793,6 +57095,48 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"io.k8s.api.authorization.v1beta1.SelfSubjectRulesReview": {
|
||||
"description": "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.",
|
||||
"required": [
|
||||
"spec"
|
||||
],
|
||||
"properties": {
|
||||
"apiVersion": {
|
||||
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources",
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds",
|
||||
"type": "string"
|
||||
},
|
||||
"metadata": {
|
||||
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta"
|
||||
},
|
||||
"spec": {
|
||||
"description": "Spec holds information about the request being evaluated.",
|
||||
"$ref": "#/definitions/io.k8s.api.authorization.v1beta1.SelfSubjectRulesReviewSpec"
|
||||
},
|
||||
"status": {
|
||||
"description": "Status is filled in by the server and indicates the set of actions a user can perform.",
|
||||
"$ref": "#/definitions/io.k8s.api.authorization.v1beta1.SubjectRulesReviewStatus"
|
||||
}
|
||||
},
|
||||
"x-kubernetes-group-version-kind": [
|
||||
{
|
||||
"group": "authorization.k8s.io",
|
||||
"kind": "SelfSubjectRulesReview",
|
||||
"version": "v1beta1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"io.k8s.api.authorization.v1beta1.SelfSubjectRulesReviewSpec": {
|
||||
"properties": {
|
||||
"namespace": {
|
||||
"description": "Namespace to evaluate rules for. Required.",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"io.k8s.api.authorization.v1beta1.SubjectAccessReview": {
|
||||
"description": "SubjectAccessReview checks whether or not a user or group can perform an action.",
|
||||
"required": [
|
||||
@@ -56885,6 +57229,38 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"io.k8s.api.authorization.v1beta1.SubjectRulesReviewStatus": {
|
||||
"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.",
|
||||
"required": [
|
||||
"resourceRules",
|
||||
"nonResourceRules",
|
||||
"incomplete"
|
||||
],
|
||||
"properties": {
|
||||
"evaluationError": {
|
||||
"description": "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.",
|
||||
"type": "string"
|
||||
},
|
||||
"incomplete": {
|
||||
"description": "Incomplete 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.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"nonResourceRules": {
|
||||
"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",
|
||||
"items": {
|
||||
"$ref": "#/definitions/io.k8s.api.authorization.v1beta1.NonResourceRule"
|
||||
}
|
||||
},
|
||||
"resourceRules": {
|
||||
"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",
|
||||
"items": {
|
||||
"$ref": "#/definitions/io.k8s.api.authorization.v1beta1.ResourceRule"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"io.k8s.api.autoscaling.v1.CrossVersionObjectReference": {
|
||||
"description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.",
|
||||
"required": [
|
||||
|
@@ -106,6 +106,51 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "/apis/authorization.k8s.io/v1/selfsubjectrulesreviews",
|
||||
"description": "API at /apis/authorization.k8s.io/v1",
|
||||
"operations": [
|
||||
{
|
||||
"type": "v1.SelfSubjectRulesReview",
|
||||
"method": "POST",
|
||||
"summary": "create a SelfSubjectRulesReview",
|
||||
"nickname": "createSelfSubjectRulesReview",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"paramType": "query",
|
||||
"name": "pretty",
|
||||
"description": "If 'true', then the output is pretty printed.",
|
||||
"required": false,
|
||||
"allowMultiple": false
|
||||
},
|
||||
{
|
||||
"type": "v1.SelfSubjectRulesReview",
|
||||
"paramType": "body",
|
||||
"name": "body",
|
||||
"description": "",
|
||||
"required": true,
|
||||
"allowMultiple": false
|
||||
}
|
||||
],
|
||||
"responseMessages": [
|
||||
{
|
||||
"code": 200,
|
||||
"message": "OK",
|
||||
"responseModel": "v1.SelfSubjectRulesReview"
|
||||
}
|
||||
],
|
||||
"produces": [
|
||||
"application/json",
|
||||
"application/yaml",
|
||||
"application/vnd.kubernetes.protobuf"
|
||||
],
|
||||
"consumes": [
|
||||
"*/*"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "/apis/authorization.k8s.io/v1/subjectaccessreviews",
|
||||
"description": "API at /apis/authorization.k8s.io/v1",
|
||||
@@ -600,6 +645,136 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"v1.SelfSubjectRulesReview": {
|
||||
"id": "v1.SelfSubjectRulesReview",
|
||||
"description": "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.",
|
||||
"required": [
|
||||
"spec"
|
||||
],
|
||||
"properties": {
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds"
|
||||
},
|
||||
"apiVersion": {
|
||||
"type": "string",
|
||||
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources"
|
||||
},
|
||||
"metadata": {
|
||||
"$ref": "v1.ObjectMeta"
|
||||
},
|
||||
"spec": {
|
||||
"$ref": "v1.SelfSubjectRulesReviewSpec",
|
||||
"description": "Spec holds information about the request being evaluated."
|
||||
},
|
||||
"status": {
|
||||
"$ref": "v1.SubjectRulesReviewStatus",
|
||||
"description": "Status is filled in by the server and indicates the set of actions a user can perform."
|
||||
}
|
||||
}
|
||||
},
|
||||
"v1.SelfSubjectRulesReviewSpec": {
|
||||
"id": "v1.SelfSubjectRulesReviewSpec",
|
||||
"properties": {
|
||||
"namespace": {
|
||||
"type": "string",
|
||||
"description": "Namespace to evaluate rules for. Required."
|
||||
}
|
||||
}
|
||||
},
|
||||
"v1.SubjectRulesReviewStatus": {
|
||||
"id": "v1.SubjectRulesReviewStatus",
|
||||
"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.",
|
||||
"required": [
|
||||
"resourceRules",
|
||||
"nonResourceRules",
|
||||
"incomplete"
|
||||
],
|
||||
"properties": {
|
||||
"resourceRules": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "v1.ResourceRule"
|
||||
},
|
||||
"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."
|
||||
},
|
||||
"nonResourceRules": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "v1.NonResourceRule"
|
||||
},
|
||||
"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."
|
||||
},
|
||||
"incomplete": {
|
||||
"type": "boolean",
|
||||
"description": "Incomplete 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."
|
||||
},
|
||||
"evaluationError": {
|
||||
"type": "string",
|
||||
"description": "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."
|
||||
}
|
||||
}
|
||||
},
|
||||
"v1.ResourceRule": {
|
||||
"id": "v1.ResourceRule",
|
||||
"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.",
|
||||
"required": [
|
||||
"verbs"
|
||||
],
|
||||
"properties": {
|
||||
"verbs": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all."
|
||||
},
|
||||
"apiGroups": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "APIGroups 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."
|
||||
},
|
||||
"resources": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Resources is a list of resources this rule applies to. ResourceAll represents all resources. \"*\" means all."
|
||||
},
|
||||
"resourceNames": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all."
|
||||
}
|
||||
}
|
||||
},
|
||||
"v1.NonResourceRule": {
|
||||
"id": "v1.NonResourceRule",
|
||||
"description": "NonResourceRule holds information that describes a rule for the non-resource",
|
||||
"required": [
|
||||
"verbs"
|
||||
],
|
||||
"properties": {
|
||||
"verbs": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all."
|
||||
},
|
||||
"nonResourceURLs": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"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."
|
||||
}
|
||||
}
|
||||
},
|
||||
"v1.SubjectAccessReview": {
|
||||
"id": "v1.SubjectAccessReview",
|
||||
"description": "SubjectAccessReview checks whether or not a user or group can perform an action.",
|
||||
|
@@ -106,6 +106,51 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "/apis/authorization.k8s.io/v1beta1/selfsubjectrulesreviews",
|
||||
"description": "API at /apis/authorization.k8s.io/v1beta1",
|
||||
"operations": [
|
||||
{
|
||||
"type": "v1beta1.SelfSubjectRulesReview",
|
||||
"method": "POST",
|
||||
"summary": "create a SelfSubjectRulesReview",
|
||||
"nickname": "createSelfSubjectRulesReview",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"paramType": "query",
|
||||
"name": "pretty",
|
||||
"description": "If 'true', then the output is pretty printed.",
|
||||
"required": false,
|
||||
"allowMultiple": false
|
||||
},
|
||||
{
|
||||
"type": "v1beta1.SelfSubjectRulesReview",
|
||||
"paramType": "body",
|
||||
"name": "body",
|
||||
"description": "",
|
||||
"required": true,
|
||||
"allowMultiple": false
|
||||
}
|
||||
],
|
||||
"responseMessages": [
|
||||
{
|
||||
"code": 200,
|
||||
"message": "OK",
|
||||
"responseModel": "v1beta1.SelfSubjectRulesReview"
|
||||
}
|
||||
],
|
||||
"produces": [
|
||||
"application/json",
|
||||
"application/yaml",
|
||||
"application/vnd.kubernetes.protobuf"
|
||||
],
|
||||
"consumes": [
|
||||
"*/*"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "/apis/authorization.k8s.io/v1beta1/subjectaccessreviews",
|
||||
"description": "API at /apis/authorization.k8s.io/v1beta1",
|
||||
@@ -600,6 +645,136 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"v1beta1.SelfSubjectRulesReview": {
|
||||
"id": "v1beta1.SelfSubjectRulesReview",
|
||||
"description": "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.",
|
||||
"required": [
|
||||
"spec"
|
||||
],
|
||||
"properties": {
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds"
|
||||
},
|
||||
"apiVersion": {
|
||||
"type": "string",
|
||||
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources"
|
||||
},
|
||||
"metadata": {
|
||||
"$ref": "v1.ObjectMeta"
|
||||
},
|
||||
"spec": {
|
||||
"$ref": "v1beta1.SelfSubjectRulesReviewSpec",
|
||||
"description": "Spec holds information about the request being evaluated."
|
||||
},
|
||||
"status": {
|
||||
"$ref": "v1beta1.SubjectRulesReviewStatus",
|
||||
"description": "Status is filled in by the server and indicates the set of actions a user can perform."
|
||||
}
|
||||
}
|
||||
},
|
||||
"v1beta1.SelfSubjectRulesReviewSpec": {
|
||||
"id": "v1beta1.SelfSubjectRulesReviewSpec",
|
||||
"properties": {
|
||||
"namespace": {
|
||||
"type": "string",
|
||||
"description": "Namespace to evaluate rules for. Required."
|
||||
}
|
||||
}
|
||||
},
|
||||
"v1beta1.SubjectRulesReviewStatus": {
|
||||
"id": "v1beta1.SubjectRulesReviewStatus",
|
||||
"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.",
|
||||
"required": [
|
||||
"resourceRules",
|
||||
"nonResourceRules",
|
||||
"incomplete"
|
||||
],
|
||||
"properties": {
|
||||
"resourceRules": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "v1beta1.ResourceRule"
|
||||
},
|
||||
"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."
|
||||
},
|
||||
"nonResourceRules": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "v1beta1.NonResourceRule"
|
||||
},
|
||||
"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."
|
||||
},
|
||||
"incomplete": {
|
||||
"type": "boolean",
|
||||
"description": "Incomplete 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."
|
||||
},
|
||||
"evaluationError": {
|
||||
"type": "string",
|
||||
"description": "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."
|
||||
}
|
||||
}
|
||||
},
|
||||
"v1beta1.ResourceRule": {
|
||||
"id": "v1beta1.ResourceRule",
|
||||
"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.",
|
||||
"required": [
|
||||
"verbs"
|
||||
],
|
||||
"properties": {
|
||||
"verbs": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all."
|
||||
},
|
||||
"apiGroups": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "APIGroups 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."
|
||||
},
|
||||
"resources": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Resources is a list of resources this rule applies to. ResourceAll represents all resources. \"*\" means all."
|
||||
},
|
||||
"resourceNames": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all."
|
||||
}
|
||||
}
|
||||
},
|
||||
"v1beta1.NonResourceRule": {
|
||||
"id": "v1beta1.NonResourceRule",
|
||||
"description": "NonResourceRule holds information that describes a rule for the non-resource",
|
||||
"required": [
|
||||
"verbs"
|
||||
],
|
||||
"properties": {
|
||||
"verbs": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all."
|
||||
},
|
||||
"nonResourceURLs": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"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."
|
||||
}
|
||||
}
|
||||
},
|
||||
"v1beta1.SubjectAccessReview": {
|
||||
"id": "v1beta1.SubjectAccessReview",
|
||||
"description": "SubjectAccessReview checks whether or not a user or group can perform an action.",
|
||||
|
Reference in New Issue
Block a user