influxdata-docker icon indicating copy to clipboard operation
influxdata-docker copied to clipboard

GitLab oauth requires Google settings

Open tuchinsky opened this issue 5 years ago • 6 comments

I set up gitlab oauth this way:

        - name: TOKEN_SECRET
          value: "MY_GENERATED_TOKEN"
        - name: GENERIC_NAME
          value: "gitlab"
        - name: GENERIC_CLIENT_ID
          value: "MY_GITLAB_CLIENT_ID"
        - name: GENERIC_CLIENT_SECRET
          value: "MY_GITLAB_CLIENT_SECRET"
        - name: GENERIC_AUTH_URL
          value: "https://gitlab.FOOBAR.com/oauth/authorize"
        - name: GENERIC_TOKEN_URL
          value: "https://gitlab.FOOBAR.com/oauth/token"
        - name: GENERIC_SCOPES
          value: "api,openid,read_user"
        - name: PUBLIC_URL
          value: "https://chronograf.FOOBAR.com"
        - name: GENERIC_API_URL
          value: "https://gitlab.FOOBAR.com/api/v3/user"

when container started i see error in logs:

time="2020-06-01T14:41:01Z" level=error msg="Failed to validate Oauth settings: missing Google oauth setting[s]: client id, client secret" basepath=invalid component=server

If i add this two envs (GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET) with fake values, then chronograf started successfully and i see login screen with two buttons - google and gitlab

tuchinsky avatar Jun 01 '20 15:06 tuchinsky

@tuchinsky i believe this is related to a bug in chronograf 1.8.4 (https://github.com/influxdata/chronograf/pull/5475). We are planning a 1.8.5 the second week of July which should address this.

russorat avatar Jun 26 '20 21:06 russorat

@russorat Any ETA on the 1.8.5 docker image release so far? I'm in need of this bug fix as I'm facing the same problem.

gilliu00 avatar Jul 26 '20 11:07 gilliu00

It was released last week. are you still seeing this issue?

russorat avatar Jul 27 '20 15:07 russorat

I saw that chronograf 1.8.5 was released but the docker image appears to not be updated yet.

gilliu00 avatar Jul 28 '20 10:07 gilliu00

@gilliu00 thanks. i'm trying to track down why the docker images stopped updating. stay tuned.

russorat avatar Jul 28 '20 16:07 russorat

@russorat Did you end up finding the issue?

gilliu00 avatar Aug 04 '20 02:08 gilliu00