Merge pull request #315 from mikebrow/edits-to-authorization-docs

refactor list formatting
This commit is contained in:
johndmulhausen
2016-04-12 16:33:04 -07:00
3 changed files with 166 additions and 113 deletions
+32 -33
View File
@@ -17,20 +17,23 @@ there is one of these running on a single kubernetes-master node.
By default the Kubernetes APIserver serves HTTP on 2 ports: By default the Kubernetes APIserver serves HTTP on 2 ports:
1. Localhost Port 1. `Localhost Port`:
- serves HTTP
- default is port 8080, change with `--insecure-port` flag. - serves HTTP
- defaults IP is localhost, change with `--insecure-bind-address` flag. - default is port 8080, change with `--insecure-port` flag.
- no authentication or authorization checks in HTTP - defaults IP is localhost, change with `--insecure-bind-address` flag.
- protected by need to have host access - no authentication or authorization checks in HTTP
2. Secure Port - protected by need to have host access
- default is port 6443, change with `--secure-port` flag. 2. `Secure Port`:
- default IP is first non-localhost network interface, change with `--bind-address` flag.
- serves HTTPS. Set cert with `--tls-cert-file` and key with `--tls-private-key-file` flag. - default is port 6443, change with `--secure-port` flag.
- uses token-file or client-certificate based [authentication](/docs/admin/authentication). - default IP is first non-localhost network interface, change with `--bind-address` flag.
- uses policy-based [authorization](/docs/admin/authorization). - serves HTTPS. Set cert with `--tls-cert-file` and key with `--tls-private-key-file` flag.
3. Removed: ReadOnly Port - uses token-file or client-certificate based [authentication](/docs/admin/authentication).
- For security reasons, this had to be removed. Use the [service account](/docs/user-guide/service-accounts) feature instead. - uses policy-based [authorization](/docs/admin/authorization).
3. Removed: `ReadOnly Port`
- For security reasons, this had to be removed. Use the [service account](/docs/user-guide/service-accounts) feature instead.
## Proxies and Firewall rules ## Proxies and Firewall rules
@@ -39,35 +42,31 @@ on the same machine as the apiserver process. The proxy serves HTTPS protected
by Basic Auth on port 443, and proxies to the apiserver on localhost:8080. In by Basic Auth on port 443, and proxies to the apiserver on localhost:8080. In
these configurations the secure port is typically set to 6443. these configurations the secure port is typically set to 6443.
A firewall rule is typically configured to allow external HTTPS access to port 443. A firewall rule is typically configured to allow external HTTPS access to port
443.
The above are defaults and reflect how Kubernetes is deployed to Google Compute Engine using The above are defaults and reflect how Kubernetes is deployed to Google Compute
kube-up.sh. Other cloud providers may vary. Engine using `kube-up.sh.` Other cloud providers may vary.
## Use Cases vs IP:Ports ## Use Cases vs IP:Ports
There are three differently configured serving ports because there are a There are differently configured serving ports to serve a variety of uses cases:
variety of uses cases:
1. Clients outside of a Kubernetes cluster, such as human running `kubectl` 1. Clients outside of a Kubernetes cluster, such as human running `kubectl`
on desktop machine. Currently, accesses the Localhost Port via a proxy (nginx) on a desktop machine. Currently, accesses the Localhost Port via a proxy (nginx)
running on the `kubernetes-master` machine. The proxy can use cert-based authentication running on the `kubernetes-master` machine. The proxy can use cert-based
or token-based authentication. authentication or token-based authentication.
2. Processes running in Containers on Kubernetes that need to read from 2. Processes running in Containers on Kubernetes that need to read from
the apiserver. Currently, these can use a [service account](/docs/user-guide/service-accounts). the apiserver. Currently, these can use a [service account](/docs/user-guide/service-accounts).
3. Scheduler and Controller-manager processes, which need to do read-write 3. Scheduler and Controller-manager processes, which need to do read-write
API operations, using service accounts to avoid the need to be co-located. API operations, using service accounts to avoid the need to be co-located.
4. Kubelets, which need to do read-write API operations and are necessarily 4. Kubelets, which need to do read-write API operations and are necessarily
on different machines than the apiserver. Kubelet uses the Secure Port on different machines than the apiserver. Kubelet uses the Secure Port
to get their pods, to find the services that a pod can see, and to to get their pods, to find the services that a pod can see, and to
write events. Credentials are distributed to kubelets at cluster write events. Credentials are distributed to kubelets at cluster
setup time. Kubelet and kube-proxy can use cert-based authentication or token-based setup time. Kubelet and kube-proxy can use cert-based authentication or
authentication. token-based authentication.
## Expected changes ## Expected changes
- Policy will limit the actions kubelets can do via the authed port. - Policy will limit the actions kubelets can do via the authed port.
+54 -37
View File
@@ -25,6 +25,7 @@ When using token authentication from an http client the apiserver expects an `Au
header with a value of `Bearer SOMETOKEN`. header with a value of `Bearer SOMETOKEN`.
**OpenID Connect ID Token** is enabled by passing the following options to the apiserver: **OpenID Connect ID Token** is enabled by passing the following options to the apiserver:
- `--oidc-issuer-url` (required) tells the apiserver where to connect to the OpenID provider. Only HTTPS scheme will be accepted. - `--oidc-issuer-url` (required) tells the apiserver where to connect to the OpenID provider. Only HTTPS scheme will be accepted.
- `--oidc-client-id` (required) is used by apiserver to verify the audience of the token. - `--oidc-client-id` (required) is used by apiserver to verify the audience of the token.
A valid [ID token](http://openid.net/specs/openid-connect-core-1_0.html#IDToken) MUST have this A valid [ID token](http://openid.net/specs/openid-connect-core-1_0.html#IDToken) MUST have this
@@ -60,37 +61,46 @@ with a value of `Basic BASE64ENCODED(USER:PASSWORD)`.
**Keystone authentication** is enabled by passing the `--experimental-keystone-url=<AuthURL>` **Keystone authentication** is enabled by passing the `--experimental-keystone-url=<AuthURL>`
option to the apiserver during startup. The plugin is implemented in option to the apiserver during startup. The plugin is implemented in
`plugin/pkg/auth/authenticator/password/keystone/keystone.go`. `plugin/pkg/auth/authenticator/password/keystone/keystone.go`.
For details on how to use keystone to manage projects and users, refer to the For details on how to use keystone to manage projects and users, refer to the
[Keystone documentation](http://docs.openstack.org/developer/keystone/). Please note that [Keystone documentation](http://docs.openstack.org/developer/keystone/). Please note that
this plugin is still experimental which means it is subject to changes. this plugin is still experimental which means it is subject to changes.
Please refer to the [discussion](https://github.com/kubernetes/kubernetes/pull/11798#issuecomment-129655212) Please refer to the [discussion](https://github.com/kubernetes/kubernetes/pull/11798#issuecomment-129655212)
and the [blueprint](https://github.com/kubernetes/kubernetes/issues/11626) for more details and the [blueprint](https://github.com/kubernetes/kubernetes/issues/11626) for more details.
## Plugin Development ## Plugin Development
We plan for the Kubernetes API server to issue tokens We plan for the Kubernetes API server to issue tokens after the user has been
after the user has been (re)authenticated by a *bedrock* authentication (re)authenticated by a *bedrock* authentication provider external to Kubernetes.
provider external to Kubernetes. We plan to make it easy to develop modules We also plan to make it easy to develop modules that interface between
that interface between Kubernetes and a bedrock authentication provider (e.g. Kubernetes and a bedrock authentication provider (e.g. github.com, google.com,
github.com, google.com, enterprise directory, kerberos, etc.) enterprise directory, kerberos, etc.)
## APPENDIX ## APPENDIX
### Creating Certificates ### Creating Certificates
When using client certificate authentication, you can generate certificates manually or When using client certificate authentication, you can generate certificates
using an existing deployment script. using an existing deployment script or manually through `easyrsa` or `openssl.``
**Deployment script** is implemented at #### Using an Existing Deployment Script
`cluster/saltbase/salt/generate-cert/make-ca-cert.sh`.
Execute this script with two parameters. First is the IP address of apiserver, the second is **Using an existing deployment script** is implemented at
a list of subject alternate names in the form `IP:<ip-address> or DNS:<dns-name>`. `cluster/saltbase/salt/generate-cert/make-ca-cert.sh`.
The script will generate three files:ca.crt, server.crt and server.key.
Finally, add these parameters Execute this script with two parameters. The first is the IP address
`--client-ca-file=/srv/kubernetes/ca.crt` of apiserver. The second is a list of subject alternate names in the form `IP:<ip-address> or DNS:<dns-name>`.
`--tls-cert-file=/srv/kubernetes/server.cert`
`--tls-private-key-file=/srv/kubernetes/server.key` The script will generate three files: `ca.crt`, `server.crt`, and `server.key`.
into apiserver start parameters.
Finally, add the following parameters into apiserver start parameters:
- `--client-ca-file=/srv/kubernetes/ca.crt`
- `--tls-cert-file=/srv/kubernetes/server.cert`
- `--tls-private-key-file=/srv/kubernetes/server.key`
#### easyrsa
**easyrsa** can be used to manually generate certificates for your cluster. **easyrsa** can be used to manually generate certificates for your cluster.
@@ -107,27 +117,34 @@ into apiserver start parameters.
(build-server-full [filename]: Generate a keypair and sign locally for a client or server) (build-server-full [filename]: Generate a keypair and sign locally for a client or server)
./easyrsa --subject-alt-name="IP:${MASTER_IP}" build-server-full kubernetes-master nopass ./easyrsa --subject-alt-name="IP:${MASTER_IP}" build-server-full kubernetes-master nopass
1. Copy `pki/ca.crt` `pki/issued/kubernetes-master.crt` 1. Copy `pki/ca.crt`, `pki/issued/kubernetes-master.crt`, and `pki/private/kubernetes-master.key` to your directory.
`pki/private/kubernetes-master.key` to your directory. 1. Fill in and add the following parameters into the apiserver start parameters:
1. Remember fill the parameters
`--client-ca-file=/yourdirectory/ca.crt` --client-ca-file=/yourdirectory/ca.crt
`--tls-cert-file=/yourdirectory/server.cert` --tls-cert-file=/yourdirectory/server.cert
`--tls-private-key-file=/yourdirectory/server.key` --tls-private-key-file=/yourdirectory/server.key
and add these into apiserver start parameters.
#### openssl
**openssl** can also be use to manually generate certificates for your cluster. **openssl** can also be use to manually generate certificates for your cluster.
1. Generate a ca.key with 2048bit 1. Generate a ca.key with 2048bit:
`openssl genrsa -out ca.key 2048`
1. According to the ca.key generate a ca.crt. (-days set the certificate effective time). openssl genrsa -out ca.key 2048
`openssl req -x509 -new -nodes -key ca.key -subj "/CN=${MASTER_IP}" -days 10000 -out ca.crt` 1. According to the ca.key generate a ca.crt (use -days to set the certificate effective time):
openssl req -x509 -new -nodes -key ca.key -subj "/CN=${MASTER_IP}" -days 10000 -out ca.crt
1. Generate a server.key with 2048bit 1. Generate a server.key with 2048bit
`openssl genrsa -out server.key 2048`
1. According to the server.key generate a server.csr. openssl genrsa -out server.key 2048
`openssl req -new -key server.key -subj "/CN=${MASTER_IP}" -out server.csr` 1. According to the server.key generate a server.csr:
1. According to the ca.key, ca.crt and server.csr generate the server.crt.
`openssl x509 -req -in server.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out server.crt openssl req -new -key server.key -subj "/CN=${MASTER_IP}" -out server.csr
-days 10000` 1. According to the ca.key, ca.crt and server.csr generate the server.crt:
openssl x509 -req -in server.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out server.crt -days 10000
1. View the certificate. 1. View the certificate.
`openssl x509 -noout -text -in ./server.crt`
Finally, do not forget fill the same parameters and add parameters into apiserver start parameters. openssl x509 -noout -text -in ./server.crt
Finally, do not forget to fill out and add the same parameters into the apiserver start parameters.
+80 -43
View File
@@ -13,31 +13,35 @@ policies. An API call must be allowed by some policy in order to proceed.
The following implementations are available, and are selected by flag: The following implementations are available, and are selected by flag:
- `--authorization-mode=AlwaysDeny` - `--authorization-mode=AlwaysDeny` blocks all requests (used in tests).
- `--authorization-mode=AlwaysAllow` - `--authorization-mode=AlwaysAllow` allows all requests; use if you don't
- `--authorization-mode=ABAC` need authorization.
- `--authorization-mode=Webhook` - `--authorization-mode=ABAC`allows for user-configured authorization policy.
ABAC stands for
`AlwaysDeny` blocks all requests (used in tests). Attribute-Based Access Control.
`AlwaysAllow` allows all requests; use if you don't need authorization. - `--authorization-mode=Webhook` allows for authorization to be driven by a
`ABAC` allows for user-configured authorization policy. ABAC stands for Attribute-Based Access Control. remote service using REST.
`Webhook` allows for authorization to be driven by a remote service using REST.
## ABAC Mode ## ABAC Mode
### Request Attributes ### Request Attributes
A request has the following attributes that can be considered for authorization: A request has the following attributes that can be considered for authorization:
- user (the user-string which a user was authenticated as). - user (the user-string which a user was authenticated as).
- group (the list of group names the authenticated user is a member of). - group (the list of group names the authenticated user is a member of).
- whether the request is for an API resource. - whether the request is for an API resource.
- the request path. - the request path.
- allows authorizing access to miscellaneous endpoints like `/api` or `/healthz` (see [kubectl](#kubectl)). - allows authorizing access to miscellaneous endpoints like `/api` or
`/healthz` (see [kubectl](#kubectl)).
- the request verb. - the request verb.
- API verbs like `get`, `list`, `create`, `update`, `watch`, `delete`, and `deletecollection` are used for API requests - API verbs like `get`, `list`, `create`, `update`, `watch`, `delete`, and
- HTTP verbs like `get`, `post`, `put`, and `delete` are used for non-API requests `deletecollection` are used for API requests
- HTTP verbs like `get`, `post`, `put`, and `delete` are used for non-API
requests
- what resource is being accessed (for API requests only) - what resource is being accessed (for API requests only)
- the namespace of the object being accessed (for namespaced API requests only) - the namespace of the object being accessed (for namespaced API requests
only)
- the API group being accessed (for API requests only) - the API group being accessed (for API requests only)
We anticipate adding more attributes to allow finer grained access control and We anticipate adding more attributes to allow finer grained access control and
@@ -47,33 +51,33 @@ to assist in policy management.
For mode `ABAC`, also specify `--authorization-policy-file=SOME_FILENAME`. For mode `ABAC`, also specify `--authorization-policy-file=SOME_FILENAME`.
The file format is [one JSON object per line](http://jsonlines.org/). There should be no enclosing list or map, just The file format is [one JSON object per line](http://jsonlines.org/). There
one map per line. should be no enclosing list or map, just one map per line.
Each line is a "policy object". A policy object is a map with the following
properties:
Each line is a "policy object". A policy object is a map with the following properties:
- Versioning properties: - Versioning properties:
- `apiVersion`, type string; valid values are "abac.authorization.kubernetes.io/v1beta1". Allows versioning and conversion of the policy format. - `apiVersion`, type string; valid values are "abac.authorization.kubernetes.io/v1beta1". Allows versioning and conversion of the policy format.
- `kind`, type string: valid values are "Policy". Allows versioning and conversion of the policy format. - `kind`, type string: valid values are "Policy". Allows versioning and conversion of the policy format.
- `spec` property set to a map with the following properties: - `spec` property set to a map with the following properties:
- Subject-matching properties: - Subject-matching properties:
- `user`, type string; the user-string from `--token-auth-file`. If you specify `user`, it must match the username of the authenticated user. `*` matches all requests. - `user`, type string; the user-string from `--token-auth-file`. If you specify `user`, it must match the username of the authenticated user. `*` matches all requests.
- `group`, type string; if you specify `group`, it must match one of the groups of the authenticated user. `*` matches all requests. - `group`, type string; if you specify `group`, it must match one of the groups of the authenticated user. `*` matches all requests.
- `readonly`, type boolean, when true, means that the policy only applies to get, list, and watch operations. - `readonly`, type boolean, when true, means that the policy only applies to get, list, and watch operations.
- Resource-matching properties: - Resource-matching properties:
- `apiGroup`, type string; an API group, such as `extensions`. `*` matches all API groups. - `apiGroup`, type string; an API group, such as `extensions`. `*` matches all API groups.
- `namespace`, type string; a namespace string. `*` matches all resource requests. - `namespace`, type string; a namespace string. `*` matches all resource requests.
- `resource`, type string; a resource, such as `pods`. `*` matches all resource requests. - `resource`, type string; a resource, such as `pods`. `*` matches all resource requests.
- Non-resource-matching properties: - Non-resource-matching properties:
- `nonResourcePath`, type string; matches the non-resource request paths (like `/version` and `/apis`). `*` matches all non-resource requests. `/foo/*` matches `/foo/` and all of its subpaths. - `nonResourcePath`, type string; matches the non-resource request paths (like `/version` and `/apis`). `*` matches all non-resource requests. `/foo/*` matches `/foo/` and all of its subpaths.
An unset property is the same as a property set to the zero value for its type (e.g. empty string, 0, false). An unset property is the same as a property set to the zero value for its type
However, unset should be preferred for readability. (e.g. empty string, 0, false). However, unset should be preferred for
readability.
In the future, policies may be expressed in a JSON format, and managed via a REST interface. In the future, policies may be expressed in a JSON format, and managed via a
REST interface.
### Authorization Algorithm ### Authorization Algorithm
@@ -84,23 +88,32 @@ are set to the zero value of its type (e.g. empty string, 0, false).
A property set to "*" will match any value of the corresponding attribute. A property set to "*" will match any value of the corresponding attribute.
The tuple of attributes is checked for a match against every policy in the policy file. The tuple of attributes is checked for a match against every policy in the
If at least one line matches the request attributes, then the request is authorized (but may fail later validation). policy file. If at least one line matches the request attributes, then the
request is authorized (but may fail later validation).
To permit any user to do something, write a policy with the user property set to "*". To permit any user to do something, write a policy with the user property set to
To permit a user to do anything, write a policy with the apiGroup, namespace, resource, and nonResourcePath properties set to "*". "*".
To permit a user to do anything, write a policy with the apiGroup, namespace,
resource, and nonResourcePath properties set to "*".
### Kubectl ### Kubectl
Kubectl uses the `/api` and `/apis` endpoints of api-server to negotiate client/server versions. To validate objects sent to the API by create/update operations, kubectl queries certain swagger resources. For API version `v1` those would be `/swaggerapi/api/v1` & `/swaggerapi/experimental/v1`. Kubectl uses the `/api` and `/apis` endpoints of api-server to negotiate
client/server versions. To validate objects sent to the API by create/update
operations, kubectl queries certain swagger resources. For API version `v1`
those would be `/swaggerapi/api/v1` & `/swaggerapi/experimental/v1`.
When using ABAC authorization, those special resources have to be explicitly exposed via the `nonResourcePath` property in a policy (see [examples](#examples) below): When using ABAC authorization, those special resources have to be explicitly
exposed via the `nonResourcePath` property in a policy (see [examples](#examples) below):
* `/api`, `/api/*`, `/apis`, and `/apis/*` for API version negotiation. * `/api`, `/api/*`, `/apis`, and `/apis/*` for API version negotiation.
* `/version` for retrieving the server version via `kubectl version`. * `/version` for retrieving the server version via `kubectl version`.
* `/swaggerapi/*` for create/update operations. * `/swaggerapi/*` for create/update operations.
To inspect the HTTP calls involved in a specific kubectl operation you can turn up the verbosity: To inspect the HTTP calls involved in a specific kubectl operation you can turn
up the verbosity:
kubectl --v=8 version kubectl --v=8 version
@@ -116,18 +129,22 @@ To inspect the HTTP calls involved in a specific kubectl operation you can turn
### A quick note on service accounts ### A quick note on service accounts
A service account automatically generates a user. The user's name is generated according to the naming convention: A service account automatically generates a user. The user's name is generated
according to the naming convention:
```shell ```shell
system:serviceaccount:<namespace>:<serviceaccountname> system:serviceaccount:<namespace>:<serviceaccountname>
``` ```
Creating a new namespace also causes a new service account to be created, of this form:* Creating a new namespace also causes a new service account to be created, of
this form:*
```shell ```shell
system:serviceaccount:<namespace>:default system:serviceaccount:<namespace>:default
``` ```
For example, if you wanted to grant the default service account in the kube-system full privilege to the API, you would add this line to your policy file: For example, if you wanted to grant the default service account in the
kube-system full privilege to the API, you would add this line to your policy
file:
```json ```json
{"apiVersion":"abac.authorization.kubernetes.io/v1beta1","kind":"Policy","user":"system:serviceaccount:kube-system:default","namespace":"*","resource":"*","apiGroup":"*"} {"apiVersion":"abac.authorization.kubernetes.io/v1beta1","kind":"Policy","user":"system:serviceaccount:kube-system:default","namespace":"*","resource":"*","apiGroup":"*"}
@@ -137,13 +154,17 @@ The apiserver will need to be restarted to pickup the new policy lines.
## Webhook Mode ## Webhook Mode
When specified, mode `Webhook` causes Kubernetes to query an outside REST service when determining user privileges. When specified, mode `Webhook` causes Kubernetes to query an outside REST
service when determining user privileges.
### Configuration File Format ### Configuration File Format
Mode `Webhook` requires a file for HTTP configuration, specify by the `--authorization-webhook-config-file=SOME_FILENAME` flag. Mode `Webhook` requires a file for HTTP configuration, specify by the
`--authorization-webhook-config-file=SOME_FILENAME` flag.
The configuration file uses the [kubeconfig](/docs/user-guide/kubeconfig-file/) file format. Within the file "users" refers to the API Server webhook and "clusters" refers to the remote service. The configuration file uses the [kubeconfig](/docs/user-guide/kubeconfig-file/)
file format. Within the file "users" refers to the API Server webhook and
"clusters" refers to the remote service.
A configuration example which uses HTTPS client auth: A configuration example which uses HTTPS client auth:
@@ -173,9 +194,17 @@ contexts:
### Request Payloads ### Request Payloads
When faced with an authorization decision, the API Server POSTs a JSON serialized api.authorization.v1beta1.SubjectAccessReview object describing the action. This object contains fields describing the user attempting to make the request, and either details about the resource being accessed or requests attributes. When faced with an authorization decision, the API Server POSTs a JSON
serialized api.authorization.v1beta1.SubjectAccessReview object describing the
action. This object contains fields describing the user attempting to make the
request, and either details about the resource being accessed or requests
attributes.
Note that webhook API objects are subject to the same [versioning compatibility rules](/docs/api/) as other Kubernetes API objects. Implementers should be aware of loser compatibility promises for beta objects and check the "apiVersion" field of the request to ensure correct deserialization. Additionally, the API Server must enable the `authorization.k8s.io/v1beta1` API extensions group (`--runtime-config=authorization.k8s.io/v1beta1=true`). Note that webhook API objects are subject to the same [versioning compatibility rules](/docs/api/)
as other Kubernetes API objects. Implementers should be aware of loser
compatibility promises for beta objects and check the "apiVersion" field of the
request to ensure correct deserialization. Additionally, the API Server must
enable the `authorization.k8s.io/v1beta1` API extensions group (`--runtime-config=authorization.k8s.io/v1beta1=true`).
An example request body: An example request body:
@@ -199,7 +228,9 @@ An example request body:
} }
``` ```
The remote service is expected to fill the SubjectAccessReviewStatus field of the request and respond to either allow or disallow access. The response body's "spec" field is ignored and may be omitted. A permissive response would return: The remote service is expected to fill the SubjectAccessReviewStatus field of
the request and respond to either allow or disallow access. The response body's
"spec" field is ignored and may be omitted. A permissive response would return:
```json ```json
{ {
@@ -244,9 +275,15 @@ Access to non-resource paths are sent as:
} }
``` ```
Non-resource paths include: `/api`, `/apis`, `/metrics`, `/resetMetrics`, `/logs`, `/debug`, `/healthz`, `/swagger-ui/`, `/swaggerapi/`, `/ui`, and `/version.` Clients require access to `/api`, `/api/*/`, `/apis/`, `/apis/*`, `/apis/*/*`, and `/version` to discover what resources and versions are present on the server. Access to other non-resource paths can be disallowed without restricting access to the REST api. Non-resource paths include: `/api`, `/apis`, `/metrics`, `/resetMetrics`,
`/logs`, `/debug`, `/healthz`, `/swagger-ui/`, `/swaggerapi/`, `/ui`, and
`/version.` Clients require access to `/api`, `/api/*/`, `/apis/`, `/apis/*`,
`/apis/*/*`, and `/version` to discover what resources and versions are present
on the server. Access to other non-resource paths can be disallowed without
restricting access to the REST api.
For further documentation refer to the authorization.v1beta1 API objects and plugin/pkg/auth/authorizer/webhook/webhook.go. For further documentation refer to the authorization.v1beta1 API objects and
plugin/pkg/auth/authorizer/webhook/webhook.go.
## Plugin Development ## Plugin Development
@@ -267,5 +304,5 @@ Authorization plugin code goes in `pkg/auth/authorizer/$MODULENAME`.
An authorization module can be completely implemented in go, or can call out An authorization module can be completely implemented in go, or can call out
to a remote authorization service. Authorization modules can implement to a remote authorization service. Authorization modules can implement
their own caching to reduce the cost of repeated authorization calls with the their own caching to reduce the cost of repeated authorization calls with the
same or similar arguments. Developers should then consider the interaction between same or similar arguments. Developers should then consider the interaction
caching and revocation of permissions. between caching and revocation of permissions.