Gitpod: Self hosted gitpod and gitlab Auth issues

Created on 23 Sep 2020  路  13Comments  路  Source: gitpod-io/gitpod

Hi

i've installed gitpod (non-ssl) onto a local box, and tried to integrate into our local gitlab instance (non-ssl)
when I hit the login button it redirects to gitlab, accessing for authorisation and then the callback to gitpod occurs, however gitpod just says

"Sorry, something went wrong 馃槗
Please allow Cookies in your browser and try to log in again."

disabled all extension and allowed cookies,

Server logs show

User started the login process
(GitLab Auth) No session found during auth callback

bug self-hosted

All 13 comments

How does the values.yaml file of your helm installation look like? Do you have an authProviders section?

Attached below

id, secret key works fine as well as the callback,
just looks like its not picking up the session after that

```

Gitpod needs at least one auth provider to allow users to log in.

# The auth providers below are examples only. Please change/remove them to fit your installation.
authProviders:

````

@AlexTugarev Could you have a look?

both our gitlab and gitpod instances are non-ssl

i've got a feeling i'm going to have to end up adding ssl certs to both

@hm2075, which version of Gitpod did you install? At least the protocol attribute is not supported and https is used for OAuth in the latest release.

No session found during auth callback

That could be related to "browser does not want to persist cookies in unsecure environments", which we've seen in the past.

btw, are you using one of the mainstream browsers, or something special?

using chrome and edge chromium, also tested firefox,

i used

https://www.gitpod.io/docs/self-hosted/latest/install/install-on-kubernetes/

git clone https://github.com/gitpod-io/self-hosted

I have requested ssl certs from our team, hoping to get them installed in the next few days to see if that is the issue

added ssl certs to both gitlab and gitpod

unfortunately still seeing the error

hmmmm

i think i know what the issue could be

@AlexTugarev

myserver name is gitpod.domain.xyz.uk

so when you click on login it is saying

set-cookie was blocked because domain attribute was invalid with regard to the current host url

does it come down to this line of code

https://github.com/gitpod-io/gitpod/blob/52660b5ad8a1456d0c28de3833216b8971af0c38/components/server/src/session-handler.ts#L47

i'm guessing this will cause further issues down the line too based on some other issues ive read regarding having more than 3 parts

is there a plan to patch this?

That looks like a bug indeed. Thanks for helping to narrow down it!

@AlexTugarev Note FYI: We seem to have exactly the same bug in our current open-source Gitpod deployments:

Screenshot 2020-09-25 at 11 44 48

... click on "Connect" ...

Screenshot 2020-09-25 at 11 44 38

Saw that while testing https://github.com/gitpod-io/gitpod/pull/1891.

EDIT: Oh, or maybe it's Firefox-specific? (Just managed to get it to work on mobile, in the Chrome-based Android webview).

+1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

LinqLover picture LinqLover  路  3Comments

mouse484 picture mouse484  路  3Comments

kittaakos picture kittaakos  路  3Comments

Kreyren picture Kreyren  路  3Comments

hidehiro98 picture hidehiro98  路  3Comments