k3s/plugin/pkg/admission
Kubernetes Submit Queue cc571d1833 Merge pull request #42360 from liggitt/psp-namespaced-use-check
Automatic merge from submit-queue (batch tested with PRs 42360, 43109, 43737, 43853)

Include pod namespace in PSP 'use' authorization check

Follow up to https://github.com/kubernetes/kubernetes/pull/33080/files#diff-291b8dd7d08cc034975ddb3925dbb08fR341

Prior to this PR, when PodSecurityPolicy admission is active, you must be authorized to use a covering PodSecurityPolicy cluster-wide in order to create a pod. This PR changes that to only require a covering PodSecurityPolicy within the pod's namespace.

When used in concert with mechanisms that limits pods within a namespace to a particular set of nodes, this can be used to allow users to create privileged pods within specific namespaces only.

```release-note
Permission to use a PodSecurityPolicy can now be granted within a single namespace by allowing the `use` verb on the `podsecuritypolicies` resource within the namespace.
```
2017-03-31 00:34:22 -07:00
..
admit Improved test code coverage for plugin/pkg/admission/admit. 2017-03-25 10:27:18 +08:00
alwayspullimages move admission to genericapiserver 2017-01-18 08:15:19 -05:00
antiaffinity move admission to genericapiserver 2017-01-18 08:15:19 -05:00
defaulttolerationseconds Fix DefaultTolerationSeconds admission plugin. It was using 2017-03-09 20:24:43 -05:00
deny Improve the code coverage of /plugin/pkg/admission/deny 2017-02-02 11:44:57 +08:00
exec Improved the code coverage of plugin/pkg/admission/exec. 2017-03-19 09:35:19 +08:00
gc Update generated files 2017-01-29 21:41:45 +01:00
imagepolicy fix typo in /pkg/admission/imagepolicy/config.go 2017-02-12 21:59:36 +08:00
initialresources Bump test coverage for initialresources 2017-03-09 14:33:32 +01:00
limitranger update names for kube plugin initializer to avoid conflicts 2017-03-06 10:18:21 -05:00
namespace update names for kube plugin initializer to avoid conflicts 2017-03-06 10:18:21 -05:00
persistentvolume/label Merge pull request #40537 from gnufied/fix-multizone-pv-breakage 2017-03-05 11:16:46 -08:00
podnodeselector update names for kube plugin initializer to avoid conflicts 2017-03-06 10:18:21 -05:00
podpreset update names for kube plugin initializer to avoid conflicts 2017-03-06 10:18:21 -05:00
resourcequota generated files 2017-03-20 23:57:38 -04:00
security Include pod namespace in PSP 'use' authorization check 2017-03-24 15:14:52 -04:00
securitycontext/scdeny move admission to genericapiserver 2017-01-18 08:15:19 -05:00
serviceaccount update names for kube plugin initializer to avoid conflicts 2017-03-06 10:18:21 -05:00
storageclass/default Merge pull request #41404 from k82cn/correct_comments 2017-03-24 10:26:33 -07:00
OWNERS OWNERS: Update latest OWNERS files 2017-01-23 10:05:48 -08:00