Skip to content
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.

Post /dex/token: x509: certificate signed by unknown authority #180

Open
kotnn opened this issue Jan 22, 2021 · 1 comment
Open

Post /dex/token: x509: certificate signed by unknown authority #180

kotnn opened this issue Jan 22, 2021 · 1 comment

Comments

@kotnn
Copy link

kotnn commented Jan 22, 2021

Hello.
I am trying to set up gangway + dex +Active Directory for ldap authentification in kubernetes.
I follow the steps:

  1. logon to gangway and click sign in button:
    image
  2. enter creds and press login button:
    image
  3. press grant accesss:
    image
  4. and get an error:
    image
    What am I doing wrong?

my setup:

kind: Service
apiVersion: v1
metadata:
name: gangwaysvc
namespace: gangway
labels:
app: gangway
spec:
type: ClusterIP
ports:
- name: "http"
protocol: TCP
port: 80
targetPort: "http"
selector:
app: gangway

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: gangway
namespace: gangway
annotations:
#kubernetes.io/tls-acme: "true"
#cert-manager.io/cluster-issuer: "letsencrypt-production"
spec:
tls:

  • secretName: gangway
    hosts:
    • gangway.os33dev.net
      rules:
  • host: gangway.os33dev.net
    http:
    paths:
    • backend:
      serviceName: gangwaysvc
      servicePort: http

apiVersion: v1
kind: ConfigMap
metadata:
name: gangway
namespace: gangway
data:
gangway.yaml: |
clusterName: "kubernetes"
authorizeURL: "https://dex.os33dev.net/dex/auth" #replace the domain name with your domain
tokenURL: "https://dex.os33dev.net/dex/token" #replace the domain name with your domain
scopes: ["openid", "profile", "email", "offline_access", "groups"]
redirectURL: "https://gangway.os33dev.net/callback" #replace the domain name with your domain
clientID: "gangway"
clientSecret: "Iz2Y51oWZSeF3n5gmeBH9ZHPncJU0JK8v4842o8XQ5s="
usernameClaim: "sub"
emailClaim: "email"
apiServerURL: https://k8sdev.dev3.os33.net:6443 #This should be your k8s API URL example https://name.domain.com:6443

kubernetes is bare metal and created via it's own CA
for dex and gangway i use external cert *os33dev.net:
image

gangway pod logs:
image

I also trired to use
trustedCAPath "/etc/gangway/tls/tls.crt" and put certificate chain for *.os33dev.net certificate but no luck

Please help

@ibexmonj
Copy link

what version of gangway are you using ? #119 mentions that trustedCAPath was introduced in v2.x

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants