-
Notifications
You must be signed in to change notification settings - Fork 39.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kube-ctrl-mgr: enable secure port 10257 #64149
kube-ctrl-mgr: enable secure port 10257 #64149
Conversation
e717dfa
to
e0ed50a
Compare
pkg/master/ports/ports.go
Outdated
@@ -41,4 +41,10 @@ const ( | |||
// ProxyHealthzPort is the default port for the proxy healthz server. | |||
// May be overridden by a flag at startup. | |||
ProxyHealthzPort = 10256 | |||
// InsecureKubeControllerManagerPort is the default port for the controller manager status server. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/InsecureKubeControllerManagerPort/KubeControllerManagerPort/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
pkg/master/ports/ports.go
Outdated
// InsecureKubeControllerManagerPort is the default port for the controller manager status server. | ||
// May be overridden by a flag at startup. | ||
KubeControllerManagerPort = 10257 | ||
// InsecureCloudControllerManagerPort is the default port for the cloud controller manager server. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/InsecureCloudControllerManagerPort/CloudControllerManagerPort
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
e0ed50a
to
c19c9a2
Compare
c19c9a2
to
be106d2
Compare
Split out the cloud-ctrl-mgr changes into #67069 |
be106d2
to
82d4512
Compare
This is the old behaviour and we did not intent to change it due to enabled authn/z in general. As the kube-apiserver this sets the "system:unsecured" user info.
0075df3
to
8aa0eef
Compare
Rebased, advanced auditing GA merged. |
/retest |
@liggitt lgty and ready to unhold? |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: deads2k, liggitt, sttts The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test all [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue (batch tested with PRs 67756, 64149, 68076, 68131, 68120). If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md. |
@sttts: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md. cloud-ctrl-mgr: enable secure port 10258 This PR enables authn+authz (delegated to the kube-apiserver) and the secure port 10258 for the cloud-controller-manager. In addition, the insecure port is disabled. This is the counterpart PR to #64149. Moreover, it adds integration test coverage for the `--port` and `--secure-port` flags, plus the testserver infrastructure to tests flags in general inside integration tests. ```release-note Enable secure serving on port 10258 to cloud-controller-manager (configurable via `--secure-port`). Delegated authentication and authorization have to be configured like for aggregated API servers. ```
Automatic merge from submit-queue. 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>. delegated authz: add AlwaysAllowPaths to option struct (defaulting to /healthz) Add `AlwaysAllowPaths` field to delegated authz. These http paths are excluded from the authz chain. Prerequisite for kubernetes/kubernetes#64149 and kubernetes/kubernetes#67069. ```release-note Added --authorization-always-allow-paths to components doing delegated authorization to exclude certain HTTP paths like /healthz from authorization. ``` Kubernetes-commit: 5ed26a348b017c3ece8ac468d15770ddf8b922ae
Automatic merge from submit-queue (batch tested with PRs 66960, 67545). 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>. delegated authn/z: optionally opt-out of mandatory authn/authz kubeconfig This adds `RemoteKubeConfigFileOptional` field to the delegated authn/z option structs. If set to true, the authn/z kubeconfig file flags are optional. If no kubeconfig is given, all token requests are considered to be anonymous and no client CA is looked up in the cluster. Prerequisite for kubernetes/kubernetes#64149 and kubernetes/kubernetes#67069. Kubernetes-commit: 1b3a2dd0830ca0e02d5b95d2ecc0161d0c93a0c7
Automatic merge from submit-queue. 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>. delegated authz: add AlwaysAllowPaths to option struct (defaulting to /healthz) Add `AlwaysAllowPaths` field to delegated authz. These http paths are excluded from the authz chain. Prerequisite for kubernetes/kubernetes#64149 and kubernetes/kubernetes#67069. ```release-note Added --authorization-always-allow-paths to components doing delegated authorization to exclude certain HTTP paths like /healthz from authorization. ``` Kubernetes-commit: 5ed26a348b017c3ece8ac468d15770ddf8b922ae
Automatic merge from submit-queue. 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>. delegated authz: add AlwaysAllowPaths to option struct (defaulting to /healthz) Add `AlwaysAllowPaths` field to delegated authz. These http paths are excluded from the authz chain. Prerequisite for kubernetes/kubernetes#64149 and kubernetes/kubernetes#67069. ```release-note Added --authorization-always-allow-paths to components doing delegated authorization to exclude certain HTTP paths like /healthz from authorization. ``` Kubernetes-commit: 5ed26a348b017c3ece8ac468d15770ddf8b922ae
Automatic merge from submit-queue. 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>. delegated authz: add AlwaysAllowPaths to option struct (defaulting to /healthz) Add `AlwaysAllowPaths` field to delegated authz. These http paths are excluded from the authz chain. Prerequisite for kubernetes/kubernetes#64149 and kubernetes/kubernetes#67069. ```release-note Added --authorization-always-allow-paths to components doing delegated authorization to exclude certain HTTP paths like /healthz from authorization. ``` Kubernetes-commit: 5ed26a348b017c3ece8ac468d15770ddf8b922ae
Automatic merge from submit-queue. 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>. delegated authz: add AlwaysAllowPaths to option struct (defaulting to /healthz) Add `AlwaysAllowPaths` field to delegated authz. These http paths are excluded from the authz chain. Prerequisite for kubernetes/kubernetes#64149 and kubernetes/kubernetes#67069. ```release-note Added --authorization-always-allow-paths to components doing delegated authorization to exclude certain HTTP paths like /healthz from authorization. ``` Kubernetes-commit: 5ed26a348b017c3ece8ac468d15770ddf8b922ae
Automatic merge from submit-queue (batch tested with PRs 66960, 67545). 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>. delegated authn/z: optionally opt-out of mandatory authn/authz kubeconfig This adds `RemoteKubeConfigFileOptional` field to the delegated authn/z option structs. If set to true, the authn/z kubeconfig file flags are optional. If no kubeconfig is given, all token requests are considered to be anonymous and no client CA is looked up in the cluster. Prerequisite for kubernetes/kubernetes#64149 and kubernetes/kubernetes#67069. Kubernetes-commit: 1b3a2dd0830ca0e02d5b95d2ecc0161d0c93a0c7
Automatic merge from submit-queue. 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>. delegated authz: add AlwaysAllowPaths to option struct (defaulting to /healthz) Add `AlwaysAllowPaths` field to delegated authz. These http paths are excluded from the authz chain. Prerequisite for kubernetes/kubernetes#64149 and kubernetes/kubernetes#67069. ```release-note Added --authorization-always-allow-paths to components doing delegated authorization to exclude certain HTTP paths like /healthz from authorization. ``` Kubernetes-commit: 5ed26a348b017c3ece8ac468d15770ddf8b922ae
Automatic merge from submit-queue. 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>. delegated authz: add AlwaysAllowPaths to option struct (defaulting to /healthz) Add `AlwaysAllowPaths` field to delegated authz. These http paths are excluded from the authz chain. Prerequisite for kubernetes/kubernetes#64149 and kubernetes/kubernetes#67069. ```release-note Added --authorization-always-allow-paths to components doing delegated authorization to exclude certain HTTP paths like /healthz from authorization. ``` Kubernetes-commit: 5ed26a348b017c3ece8ac468d15770ddf8b922ae
Automatic merge from submit-queue. 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>. delegated authz: add AlwaysAllowPaths to option struct (defaulting to /healthz) Add `AlwaysAllowPaths` field to delegated authz. These http paths are excluded from the authz chain. Prerequisite for kubernetes/kubernetes#64149 and kubernetes/kubernetes#67069. ```release-note Added --authorization-always-allow-paths to components doing delegated authorization to exclude certain HTTP paths like /healthz from authorization. ``` Kubernetes-commit: 5ed26a348b017c3ece8ac468d15770ddf8b922ae
This PR enables authn+authz (delegated to the kube-apiserver) and the secure port 10257 for the kube-controller-manager. In addition, the insecure port is disabled.
Moreover, it adds integration test coverage for the
--port
and--secure-port
flags, plus the testserver infrastructure to tests flags in general inside integration tests.