Skip to content

Commit

Permalink
short circuit deny
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedanese committed Dec 1, 2017
1 parent f169101 commit 1922c34
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions docs/admin/authorization/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ depend on specific fields of specific kinds of objects are handled by Admission
Controllers.)

When multiple authorization modules are configured, each is checked in sequence,
and if any module authorizes the request, then the request can proceed. If all
modules deny the request, then the request is denied (HTTP status code 403).
and if any module authorizes the request, then the request can proceed. If any

This comment has been minimized.

Copy link
@liggitt

liggitt Dec 4, 2017

Member

Make it clearer that if any authorizes or denies, no remaining authorizers are consulted.

module denies the request, the request is denied. If all modules have no opinion
on the request, then the request is denied. A deny returns an HTTP status code
403.

## Review Your Request Attributes
Kubernetes reviews only the following API request attributes:
Expand Down Expand Up @@ -136,6 +138,7 @@ spec:
verb: create
status:
allowed: true
denied: false
```

## Using Flags for Your Authorization Module
Expand All @@ -152,9 +155,8 @@ The following flags can be used:
* `--authorization-mode=AlwaysDeny` This flag blocks all requests. Use this flag only for testing.
* `--authorization-mode=AlwaysAllow` This flag allows all requests. Use this flag only if you do not require authorization for your API requests.

You can choose more than one authorization module. If one of the modes is
`AlwaysAllow`, then it overrides the other modes and all API requests are
allowed.
You can choose more than one authorization module. Modules are checked in order
so an earlier module has higher priority to allow or deny a request.

## Versioning
For version 1.2, clusters created by kube-up.sh are configured so that no
Expand Down

0 comments on commit 1922c34

Please sign in to comment.