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
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
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: