• Kubernetes Submit Queue's avatar
    Merge pull request #47094 from cheftako/requestCAFile · 55f887e9
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 47000, 47188, 47094, 47323, 47124)
    
    Set up proxy certs for Aggregator.
    
    Working on fixing https://github.com/kubernetes/kubernetes/issues/43716.
    This will create the necessary certificates.
    On GCE is will upload those certificates to Metadata.
    They are then pulled down on to the kube-apiserver.
    They are written to the /etc/src/kubernetes/pki directory.
    Finally they are loaded vi the appropriate command line flags.
    The requestheader-client-ca-file can be seen by running the following:-
    kubectl get ConfigMap extension-apiserver-authentication --namespace=kube-system -o yaml
    
    **What this PR does / why we need it**: 
    This PR creates a request header CA. It also creates a proxy client cert/key pair. 
    It causes these files to end up on kube-apiserver and set the CLI flags so they are properly loaded.
    Without it the customer either has to set them up themselves or re-use the master CA which is a security vulnerability.
    Currently this creates everything on GCE.
    
    **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #43716
    
    **Special notes for your reviewer**:
    55f887e9
Name
Last commit
Last update
..
addons Loading commit data...
aws Loading commit data...
centos Loading commit data...
gce Loading commit data...
gke Loading commit data...
images Loading commit data...
juju Loading commit data...
kubemark Loading commit data...
lib Loading commit data...
libvirt-coreos Loading commit data...
local Loading commit data...
openstack-heat Loading commit data...
photon-controller Loading commit data...
saltbase Loading commit data...
skeleton Loading commit data...
vagrant Loading commit data...
vsphere Loading commit data...
windows Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
README.md Loading commit data...
clientbin.sh Loading commit data...
common.sh Loading commit data...
get-kube-binaries.sh Loading commit data...
get-kube-local.sh Loading commit data...
get-kube.sh Loading commit data...
kube-down.sh Loading commit data...
kube-push.sh Loading commit data...
kube-up.sh Loading commit data...
kube-util.sh Loading commit data...
kubeadm.sh Loading commit data...
kubectl.sh Loading commit data...
log-dump.sh Loading commit data...
options.md Loading commit data...
restore-from-backup.sh Loading commit data...
test-e2e.sh Loading commit data...
test-network.sh Loading commit data...
test-smoke.sh Loading commit data...
update-storage-objects.sh Loading commit data...
validate-cluster.sh Loading commit data...