Image Overview: dex

Overview: dex Chainguard Image

dex is a federated OpenID Connect provider.

Download this Image

The image is available on cgr.dev:

docker pull cgr.dev/chainguard/dex:latest

Using dex

dex has several operating modes, the most common being kubernetes, installed via helm using the upstream source shown below:

helm repo add dex https://charts.dexidp.io
helm install --generate-name --wait dex/dex -f values.yaml

An example values.yaml file is provided below:

# values.yaml
image:
  repository: cgr.dev/chainguard/dex
  tag: latest

config:
  issuer: "http://127.0.0.1:5556/dex"

  storage:
    type: memory

  web:
    http: 0.0.0.0:5556

  expiry:
    deviceRequests: "5m"
    signingKeys: "6h"
    idTokens: "24h"
    authRequests: "24h"

  logger:
    level: "info"
    format: "text"

  oauth2:
    responseTypes: [ "code" ]
    skipApprovalScreen: false
    alwaysShowLoginScreen: false

  enablePasswordDB: true

  connectors:
  - type: mockCallback
    id: mock
    name: Example

WARNING: The example above should not be used in production, it simply exists to get up and running quickly.

For an incomplete values file that only contains the minimum required settings to use the Chainguard Images variant, use the snippet below:

# non functional defaults! fill in with your own values.yaml
image:
  repository: cgr.dev/chainguard/dex
  tag: latest

Last updated: 2024-04-11 12:38