Dex: Fail to create connector google if serviceAccountFilePath is not set

Created on 23 Feb 2020  路  3Comments  路  Source: dexidp/dex

The Doc here says the parameter is optional, but when I leave it not set dex failed with error:

failed to initialize server: server: Failed to open connector google: failed to open connector: failed to create connector google: could not create directory service: error reading credentials from file: open : no such file or directory

Most helpful comment

It would also be nice if there was documentation on how to define this file when deploying with Helm, eg. something like this:

dex:
  extraVolumeMounts:
    - mountPath: /etc/dex/google
      name: google-auth-config
  extraVolumes:
    - name: google-auth-config
      secret:
        defaultMode: 420
        secretName: google-auth-config
        items:
        - key: authToken.json
          path: authToken.json

All 3 comments

https://github.com/dexidp/dex/pull/1663

Fixes the problem in my env.

I'm having the same issue. Is there any workaround in released code? I'm running v2.22.0. The sample here: https://github.com/dexidp/dex/blob/master/Documentation/connectors/google.md clearly shows groups service account as optional.

Ultimately i want to make groups work - and one of the reasons for dex over raw google oidc for k8s auth, but I'd like to make the basic authentication work before more complex authorization.

It would also be nice if there was documentation on how to define this file when deploying with Helm, eg. something like this:

dex:
  extraVolumeMounts:
    - mountPath: /etc/dex/google
      name: google-auth-config
  extraVolumes:
    - name: google-auth-config
      secret:
        defaultMode: 420
        secretName: google-auth-config
        items:
        - key: authToken.json
          path: authToken.json
Was this page helpful?
0 / 5 - 0 ratings

Related issues

srenatus picture srenatus  路  3Comments

piotrmsc picture piotrmsc  路  5Comments

whereisaaron picture whereisaaron  路  6Comments

srenatus picture srenatus  路  4Comments

NexoMichael picture NexoMichael  路  7Comments