openunison-k8s-login-activedirectory icon indicating copy to clipboard operation
openunison-k8s-login-activedirectory copied to clipboard

kubectl describe configmap api-server-config -n openunison returns empty certificate

Open TomerG711 opened this issue 5 years ago • 7 comments

I've followed the provided video: https://vimeo.com/297399119, and installed OpenUnison. However, when I run the command to get the configmap that contains the certificate for the server api, as in 2:00 in the video, I get:

Data
===
oidc-api-server-flags:
---
---oidc-issuer-url=....

(The other oidc flags are given OK).

Why don't I get the certificate?

TomerG711 avatar Dec 03 '19 20:12 TomerG711

We need to update the videos. When we moved to an operator based model the location of the certificate changed. In the readme (https://github.com/OpenUnison/openunison-k8s-login-activedirectory#complete-sso-integration-with-kubernetes) it says where to get the cert.

mlbiam avatar Dec 04 '19 15:12 mlbiam

@mlbiam Great, I found the cert and edited the api server yaml as required.

Then, when I log into the OpenUnison(https://openunison.tremolo.lan), I get both of the certs - OU server CA certificate and Kubernetes API Server CA certificate, and add both to my PC (under the Microsoft Management Console for Windows 10). Then I run the kubectl Windows Command (again, from https://openunison.tremolo.lan) and everything goes fine, but when I run kubectl get nodes (on my PC) I get the following error: Unable to connect to the server: Get https://openunison.tremolo.lan/auth/idp/k8sIdp/.well-known-openid-configuration: x509: certificate is valid for openunison.openunison.svc.cluster.local, not openunison.tremolo.lan

Did I forget any step?

TomerG711 avatar Dec 04 '19 21:12 TomerG711

is openunison.tremolo.lan pointing to your ingress load balancer?

mlbiam avatar Dec 09 '19 18:12 mlbiam

@mlbiam Yes it does.

TomerG711 avatar Dec 10 '19 06:12 TomerG711

@mlbiam Any idea why does it happen?

TomerG711 avatar Dec 20 '19 16:12 TomerG711

@mlbiam ?

TomerG711 avatar Dec 30 '19 20:12 TomerG711

@mlbiam Any idea?

TomerG711 avatar Jan 08 '20 21:01 TomerG711