-
Notifications
You must be signed in to change notification settings - Fork 223
Enable secure API registration for OpenShift apiserver #348
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -61,12 +61,6 @@ func OCPAPIServer(cfg *config.MicroshiftConfig) error { | |
| "--config=" + cfg.DataDir + "/resources/openshift-apiserver/config/config.yaml", | ||
| "--authorization-kubeconfig=" + cfg.DataDir + "/resources/kubeadmin/kubeconfig", | ||
| "--authentication-kubeconfig=" + cfg.DataDir + "/resources/kubeadmin/kubeconfig", | ||
| "--requestheader-client-ca-file=" + cfg.DataDir + "/certs/ca-bundle/ca-bundle.crt", | ||
| "--requestheader-allowed-names=kube-apiserver-proxy,system:kube-apiserver-proxy,system:openshift-aggregator", | ||
| "--requestheader-username-headers=X-Remote-User", | ||
| "--requestheader-group-headers=X-Remote-Group", | ||
| "--requestheader-extra-headers-prefix=X-Remote-Extra-", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For the request headers, did you compare notes with OpenShift whether they are not needed? I’ve noticed we’re still configuring them in kube-apiserver via command line args (incl. CA certs) and (due to the analogy between both API servers) I’m wondering whether we’d want our approach to configuring kube-api and openshift-api in sync?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tried to use the bare minimum number of flags in order to use the config file as much as possible. |
||
| "--client-ca-file=" + cfg.DataDir + "/certs/ca-bundle/ca-bundle.crt", | ||
| "--logtostderr=" + strconv.FormatBool(cfg.LogDir == "" || cfg.LogAlsotostderr), | ||
| "--alsologtostderr=" + strconv.FormatBool(cfg.LogAlsotostderr), | ||
| "--v=" + strconv.Itoa(cfg.LogVLevel), | ||
|
|
||
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.
nit: instead of caFile,
caBytesorcaData