forked from cw-ozaki/kubernetes-json-schema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
selfsubjectaccessreviewspec.json
83 lines (83 loc) · 2.83 KB
/
selfsubjectaccessreviewspec.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
"description": "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set",
"properties": {
"nonResourceAttributes": {
"description": "NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface",
"properties": {
"path": {
"description": "Path is the URL path of the request",
"type": [
"string",
"null"
]
},
"verb": {
"description": "Verb is the standard HTTP verb",
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"resourceAttributes": {
"description": "ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface",
"properties": {
"group": {
"description": "Group is the API Group of the Resource. \"*\" means all.",
"type": [
"string",
"null"
]
},
"name": {
"description": "Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all.",
"type": [
"string",
"null"
]
},
"namespace": {
"description": "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",
"type": [
"string",
"null"
]
},
"resource": {
"description": "Resource is one of the existing resource types. \"*\" means all.",
"type": [
"string",
"null"
]
},
"subresource": {
"description": "Subresource is one of the existing resource types. \"\" means none.",
"type": [
"string",
"null"
]
},
"verb": {
"description": "Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all.",
"type": [
"string",
"null"
]
},
"version": {
"description": "Version is the API Version of the Resource. \"*\" means all.",
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/schema#",
"type": "object"
}