Production-Grade Container Scheduling and Management
Go to file
Kubernetes Submit Queue b0eb7d884d Merge pull request #53443 from liggitt/psp-allow-escalation
Automatic merge from submit-queue (batch tested with PRs 53454, 53446, 52935, 53443, 52917). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Use pointer for PSP allow escalation

Fixes #53437 

The `AllowPrivilegeEscalation` field was added to PodSpec and PodSecurityPolicySpec in 1.8.0.

In order to remain compatible with pre-1.8.0 behavior, PodSecurityPolicy objects created against a previous release must not restrict this field, which means the field must default to true in PodSecurityPolicySpec. However, the field was added as a `bool`, not a `*bool`, which means that no defaulting is possible.

We have two options:
1. Require all pre-existing PodSecurityPolicy objects that intend to allow privileged permissions to update to set this new field to true
2. Change the field to a `*bool` and default it to true.

This PR does the latter. With this change, we have the following behavior:

A 1.8.1+ client/server now has three ways to serialize:
* `nil` values are dropped from serialization (because `omitempty`), which is interpreted correctly by other 1.8.1+ clients/servers, and is interpreted as false by 1.8.0
* `false` values are serialized and interpreted correctly by all clients/servers
* `true` values are serialized and interpreted correctly by all clients/servers

A 1.8.0 client/server has two ways to serialize:
* `false` values are dropped from serialization (because `omitempty`), which is interpreted as `false` by other 1.8.0 clients/servers, but as `nil` (and therefore defaulting to true) by 1.8.1+ clients/servers
* `true` values are serialized and interpreted correctly by all clients/servers

The primary concern is the 1.8.0 server dropping the `false` value from serialization, but I consider the compatibility break with pre-1.8 behavior to be more severe, especially if we can resolve the regression in an immediate point release.

```release-note
PodSecurityPolicy: Fixes a compatibility issue that caused policies that previously allowed privileged pods to start forbidding them, due to an incorrect default value for `allowPrivilegeEscalation`. PodSecurityPolicy objects defined using a 1.8.0 client or server that intended to set `allowPrivilegeEscalation` to `false` must be reapplied after upgrading to 1.8.1.
```
2017-10-05 05:06:30 -07:00
.github
api Use pointer for PSP allow escalation 2017-10-04 13:55:06 -04:00
build Merge pull request #49393 from hongchaodeng/etcd_update 2017-10-02 23:29:51 -07:00
cluster Merge pull request #53454 from Cynerva/gkk/channel-1.8 2017-10-05 05:06:22 -07:00
cmd Merge pull request #52614 from leblancd/v6_proxy_bind_address 2017-10-04 19:55:04 -07:00
docs Use pointer for PSP allow escalation 2017-10-04 13:55:06 -04:00
examples Merge pull request #52873 from ixdy/bazel-cleanup 2017-09-24 00:04:36 -07:00
federation Merge pull request #53394 from p0lyn0mial/cleanup_kubeapi_admission_initializer 2017-10-04 07:50:35 -07:00
Godeps Vendor godep v79 and use it 2017-09-29 15:16:09 -07:00
hack verify-pkg-names.sh: exclude generated informers 2017-10-04 16:53:13 +02:00
logo
pkg Merge pull request #53443 from liggitt/psp-allow-escalation 2017-10-05 05:06:30 -07:00
plugin Merge pull request #53343 from p0lyn0mial/move_newAdmissionReview_method_to_webhook 2017-10-05 02:24:14 -07:00
staging Merge pull request #53443 from liggitt/psp-allow-escalation 2017-10-05 05:06:30 -07:00
test Merge pull request #53389 from leblancd/v6_e2e_iperf 2017-10-04 12:04:45 -07:00
third_party
translations Merge pull request #51463 from lucab85/i18n-Italian 2017-09-23 04:02:51 -07:00
vendor Vendor godep v79 and use it 2017-09-29 15:16:09 -07:00
.bazelrc
.generated_files
.gitattributes
.gitignore
.kazelcfg.json
BUILD.bazel
CHANGELOG-1.2.md
CHANGELOG-1.3.md
CHANGELOG-1.4.md
CHANGELOG-1.5.md
CHANGELOG-1.6.md Merge pull request #52889 from jianglingxia/jlx-changelogv1.6 2017-10-04 15:04:14 -07:00
CHANGELOG-1.7.md Update CHANGELOG-1.7.md for v1.7.8. 2017-10-05 12:50:06 +02:00
CHANGELOG.md Merge pull request #53436 from liggitt/kubeadm-init 2017-10-04 10:33:14 -07:00
code-of-conduct.md
CONTRIBUTING.md
labels.yaml
LICENSE
Makefile
Makefile.generated_files
OWNERS
OWNERS_ALIASES Merge pull request #52108 from cmluciano/cml/addcmlucianomilestone 2017-09-23 07:14:00 -07:00
README.md
SUPPORT.md
Vagrantfile
WORKSPACE

Kubernetes

Submit Queue Widget GoDoc Widget CII Best Practices


Kubernetes is an open source system for managing containerized applications across multiple hosts, providing basic mechanisms for deployment, maintenance, and scaling of applications.

Kubernetes builds upon a decade and a half of experience at Google running production workloads at scale using a system called Borg, combined with best-of-breed ideas and practices from the community.

Kubernetes is hosted by the Cloud Native Computing Foundation (CNCF). If you are a company that wants to help shape the evolution of technologies that are container-packaged, dynamically-scheduled and microservices-oriented, consider joining the CNCF. For details about who's involved and how Kubernetes plays a role, read the CNCF announcement.


To start using Kubernetes

See our documentation on kubernetes.io.

Try our interactive tutorial.

Take a free course on Scalable Microservices with Kubernetes.

To start developing Kubernetes

The community repository hosts all information about building Kubernetes from source, how to contribute code and documentation, who to contact about what, etc.

If you want to build Kubernetes right away there are two options:

You have a working Go environment.
$ go get -d k8s.io/kubernetes
$ cd $GOPATH/src/k8s.io/kubernetes
$ make
You have a working Docker environment.
$ git clone https://github.com/kubernetes/kubernetes
$ cd kubernetes
$ make quick-release

If you are less impatient, head over to the developer's documentation.

Support

If you need support, start with the troubleshooting guide and work your way through the process that we've outlined.

That said, if you have questions, reach out to us one way or another.

Analytics