• Kubernetes Submit Queue's avatar
    Merge pull request #47606 from cheftako/requestCAFile · b00b6b97
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 38751, 44282, 46382, 47603, 47606)
    
    Working on fixing #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
    Minor bug fixes.
    Made sure AGGR_MASTER_NAME is set up in all configs.
    Clean up variable names.
    Added additional requestheader configuration parameters.
    Added check so that if there is no Aggregator CA contents we won't start
    the aggregator with the relevant flags.
    
    **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**:
    This is a reapply of pull/47094 with the GKE issue resolved.
    
    **Release note**: None
    b00b6b97
Name
Last commit
Last update
.github Loading commit data...
Godeps Loading commit data...
api Loading commit data...
build Loading commit data...
cluster Loading commit data...
cmd Loading commit data...
docs Loading commit data...
examples Loading commit data...
federation Loading commit data...
hack Loading commit data...
hooks Loading commit data...
logo Loading commit data...
pkg Loading commit data...
plugin Loading commit data...
staging Loading commit data...
test Loading commit data...
third_party Loading commit data...
translations Loading commit data...
vendor Loading commit data...
.bazelrc Loading commit data...
.gazelcfg.json Loading commit data...
.generated_files Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
BUILD.bazel Loading commit data...
CHANGELOG.md Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
Makefile.generated_files Loading commit data...
OWNERS Loading commit data...
OWNERS_ALIASES Loading commit data...
README.md Loading commit data...
Vagrantfile Loading commit data...
WORKSPACE Loading commit data...
code-of-conduct.md Loading commit data...
labels.yaml Loading commit data...