chainloop
chainloop copied to clipboard
dex dns seems to be hardcoded to `chainloop`
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
There is a controlplane.oidc_settings template in the chart to customize it. Did you use it?
Yes, hardcoded https://github.com/chainloop-dev/chainloop/blob/0b165fa27d1973be55422065bd25efee95c5db9b/deployment/chainloop/templates/_helpers.tpl#L190 cc/ @javirln
and fixed in the bitnami chart https://github.com/bitnami/charts/blob/53257c3bf4a5738616244dd6a2d20a4725e50255/bitnami/chainloop/templates/_helpers.tpl#L179
This is the commit https://github.com/bitnami/charts/commit/1fe5125f24ac2adc4be32c0d401184e1d24261fc
we should upgrade dex probably, upstream chart uses tag: 2.43.1-debian-12-r3