chainloop icon indicating copy to clipboard operation
chainloop copied to clipboard

dex dns seems to be hardcoded to `chainloop`

Open migmartri opened this issue 1 year ago • 1 comments

I've deployed an instance of Chainloop in dev mode called test and it seems to expect dex to be under chainloop-dex when in reality the service name is called test-dex

 Get "http://chainloop-dex:5556/dex/.well-known/openid-configuration": dial tcp: lookup chainloop-dex on 10.100.0.10:53: no such host

goroutine 1 [running]:
main.main()
	/home/runner/work/chainloop/chainloop/app/controlplane/cmd/main.go:150 +0x6a9
➜  load-testing k get svc
NAME                              TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)             AGE
test-chainloop-cas                ClusterIP   10.100.227.213   <none>        80/TCP              5h43m
test-chainloop-cas-api            ClusterIP   10.100.72.59     <none>        80/TCP              5h43m
test-chainloop-controlplane       ClusterIP   10.100.10.89     <none>        80/TCP              5h43m
test-chainloop-controlplane-api   ClusterIP   10.100.195.202   <none>        80/TCP              5h43m
test-dex                          ClusterIP   10.100.197.156   <none>        5556/TCP,5557/TCP   5h43m

migmartri avatar Nov 24 '24 17:11 migmartri

There is a controlplane.oidc_settings template in the chart to customize it. Did you use it?

jiparis avatar Nov 24 '24 21:11 jiparis

Yes, hardcoded https://github.com/chainloop-dev/chainloop/blob/0b165fa27d1973be55422065bd25efee95c5db9b/deployment/chainloop/templates/_helpers.tpl#L190 cc/ @javirln

migmartri avatar Jun 13 '25 10:06 migmartri

and fixed in the bitnami chart https://github.com/bitnami/charts/blob/53257c3bf4a5738616244dd6a2d20a4725e50255/bitnami/chainloop/templates/_helpers.tpl#L179

migmartri avatar Jun 13 '25 10:06 migmartri

This is the commit https://github.com/bitnami/charts/commit/1fe5125f24ac2adc4be32c0d401184e1d24261fc

migmartri avatar Jun 13 '25 10:06 migmartri

we should upgrade dex probably, upstream chart uses tag: 2.43.1-debian-12-r3

migmartri avatar Jun 13 '25 10:06 migmartri