apiVersion: v1
# this contain secret data, so do not use in production
data:
  # https://github.com/dexidp/dex/blob/master/examples/config-dev.yaml
  config.yaml: |
    issuer: http://dex:5556/dex
    storage:
      type: sqlite3
      config:
        file: ":memory:"
    web:
      http: 0.0.0.0:5556
    logger:
      level: debug
    staticClients:
      - id: argo-server
        redirectURIs:
          - http://localhost:2746/oauth2/callback
          - http://localhost:8080/oauth2/callback
        name: Argo Server
        secret: ZXhhbXBsZS1hcHAtc2VjcmV0
    connectors:
      - type: mockCallback
        id: mock
        name: Example
    enablePasswordDB: true
    staticPasswords:
      - email: admin@example.com
        hash: $2a$10$2b2cU8CPhOTaGrs1HRQuAueS7JTT5ZHsHSzYiFPm1leZck7Mc8T4W
        username: admin
        userID: 08a8684b-db88-4b73-90a9-3cd1661f5466
kind: ConfigMap
metadata: # kpt-merge: /dex
  name: dex
