Skip to content

Commit 45f17dd

Browse files
committed
feat(keystone): make the dex endpoint flexible
Make it possible to configure the dex endpoint against an instance running on another cluster.
1 parent e341cf2 commit 45f17dd

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

components/keystone/values.yaml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,8 @@ conf:
219219
OIDCXForwardedHeaders X-Forwarded-Host X-Forwarded-Proto X-Forwarded-Port
220220
OIDCResponseType "code"
221221
OIDCScope "openid email profile groups"
222-
OIDCProviderMetadataURL http://dex.dex.svc:5556/.well-known/openid-configuration
222+
OIDCProviderMetadataURL {{ tuple "dex" "internal" "dex" $ | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup" }}
223+
223224
OIDCClientID keystone
224225
OIDCClientSecret "exec:/bin/cat /etc/keystone-sso/client-secret"
225226
OIDCCryptoPassphrase "exec:/bin/cat /etc/oidc-secret/password"
@@ -279,6 +280,23 @@ endpoints:
279280
issuerRef:
280281
name: understack-cluster-issuer
281282
kind: ClusterIssuer
283+
# default to dex in the same cluster for AIO
284+
dex:
285+
namespace: dex
286+
hosts:
287+
default: dex
288+
host_fqdn_override:
289+
# override this when using a full deployment
290+
# to the actual hostname of dex
291+
default: null
292+
scheme:
293+
# override this to https when full deployment
294+
default: http
295+
port:
296+
dex:
297+
# override this when full deployment
298+
default: 5556
299+
path: '/.well-known/openid-configuration'
282300

283301
manifests:
284302
job_credential_cleanup: false

0 commit comments

Comments
 (0)