You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the provided help script for base domain (aws route53 list-hosted-zones --query 'HostedZones[? !(Config.PrivateZone)].Name' --output text) causes the output of a domain with a trailing period, e.g., example.com.. Copy/pasting this directly into the installer causes the generated kubeconfig to also contain the trailing period...there may also be other areas where this trailing period sticks around. But nothing ended up working, so I just nuked the cluster and rebuilt without the trailing period.
What you expected to happen?
Either automatically strip the trailing period, or provide some validation on the text to ensure only a validly formatted domain name is accepted
How to reproduce it (as minimally and precisely as possible)?
$ openshift-installer create cluster? SSH Public Key <none>? Base Domain example.com.....
My initial thought was to strip the dot, like we used to do in #359. But it turns out that rooted domain names have some nice qualities (e.g. see issues with search and non-rooted domain names discussed in RFC 1535). My guess is that the issue is with X.509 validation for rooted domain names. Checking someone who's probably done things right:
so the cert only contains non-rooted domains, but my OpenSSL 1.0.2k-fips and Firefox 60.2.0 both handle it fine. Checking with Go:
$ go versiongo version go1.10.3 linux/amd64
$ cat test.gopackage mainimport ( "fmt" "net/http")func main() { resp, err := http.Get("https://www.google.com./") fmt.Println(resp.Status, err)}
$ go run test.go 200 OK <nil>
So that seems fine too. So as far as I can tell, the trailing period should work, and in some cases (where you want to bypass search) it is preferred. Can you provide more details on "But nothing ended up working", such as error messages you saw?
The server in auth/kubeconfig is listed as https://{CLUSTER_NAME}-api.{BASE_DOMAIN}.:6443. Note the trailing period
The web console doesn't come up
The web console isn't displayed in the CLI output
INFO Access the OpenShift web-console here:
INFO Login to the console with user: kubeadmin, password:
The API endpoint mentions RBAC issues (no RBAC policy matched)
I suspect this is all related to the trailing dot, because the exact same scenario without it leads to success every time
The server in auth/kubeconfig is listed as https://{CLUSTER_NAME}-api.{BASE_DOMAIN}.:6443. Note the trailing period
I don't see why that would be a problem. And as discussed in RFC 1535, it is sometimes a good thing.
I dunno about the console and RBAC issues, we should definitely track those down.
Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.
Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.
/close
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.
Activity
wking commentedon Dec 11, 2018
My initial thought was to strip the dot, like we used to do in #359. But it turns out that rooted domain names have some nice qualities (e.g. see issues with
searchand non-rooted domain names discussed in RFC 1535). My guess is that the issue is with X.509 validation for rooted domain names. Checking someone who's probably done things right:Dropping that cert into
server.crt, we can inspect it with:so the cert only contains non-rooted domains, but my OpenSSL 1.0.2k-fips and Firefox 60.2.0 both handle it fine. Checking with Go:
So that seems fine too. So as far as I can tell, the trailing period should work, and in some cases (where you want to bypass
search) it is preferred. Can you provide more details on "But nothing ended up working", such as error messages you saw?wgordon17 commentedon Dec 17, 2018
So, a couple of issues,
The
serverinauth/kubeconfigis listed ashttps://{CLUSTER_NAME}-api.{BASE_DOMAIN}.:6443. Note the trailing periodThe web console doesn't come up
The web console isn't displayed in the CLI output
The API endpoint mentions RBAC issues (
no RBAC policy matched)I suspect this is all related to the trailing dot, because the exact same scenario without it leads to success every time
wking commentedon Dec 17, 2018
I don't see why that would be a problem. And as discussed in RFC 1535, it is sometimes a good thing.
I dunno about the console and RBAC issues, we should definitely track those down.
wgordon17 commentedon Dec 17, 2018
The
kubeconfigserver entry may just be a symptom not an actual problem.crawford commentedon Jan 4, 2019
Is this still an issue with the latest installer?
wking commentedon Jan 5, 2019
I still think trailing periods should be supported, but I haven't checked recently to see if they're still broken.
crawford commentedon Jan 5, 2019
I agree. I depend on the trailing periods in order to properly do split-horizon.
[-]No validation on "Base Domain"[/-][+]Trailing periods in base domains[/+]wgordon17 commentedon Jan 15, 2019
Perhaps we would just need to address where the trailing period is necessary versus where including it may break things (like the
.kube/configfile)openshift-bot commentedon Feb 20, 2020
Issues go stale after 90d of inactivity.
Mark the issue as fresh by commenting
/remove-lifecycle stale.Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting
/lifecycle frozen.If this issue is safe to close now please do so with
/close./lifecycle stale
openshift-bot commentedon Mar 21, 2020
Stale issues rot after 30d of inactivity.
Mark the issue as fresh by commenting
/remove-lifecycle rotten.Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting
/lifecycle frozen.If this issue is safe to close now please do so with
/close./lifecycle rotten
/remove-lifecycle stale
openshift-bot commentedon Apr 20, 2020
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting
/reopen.Mark the issue as fresh by commenting
/remove-lifecycle rotten.Exclude this issue from closing again by commenting
/lifecycle frozen./close
openshift-ci-robot commentedon Apr 20, 2020
@openshift-bot: Closing this issue.
Details
In response to this:
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.