codecov / self-hosted

Example of how to setup Codecov with docker compose
Other
409 stars 32 forks source link

Unable to login with self-hosted gitlab #34

Open me-cs opened 3 months ago

me-cs commented 3 months ago

I'm trying to deploy self-hosted codecov and use it in conjunction with self-hosted gitlab I configured the gitlab application. as shown below image After deploying codecov using docker compose, I was successfully prompted to login with gitlab ce image And then this error appeared image The difference I found was that I configured the callback address to be http://ip:port/login/gitlab_enterprise but it changed to http://ip:port/login/gle image When I change it to gitlab_enterprise and type it directly into the browser, I can bring up the gitlab authentication window, but it still fails after authentication image

Any help is appreciated!

ChrisZhangJin commented 3 months ago

we encounted the same issue, and didn't find any useful information.

fmdoe commented 3 months ago

Does it work with https://codecov-selfhosted-hostname.com/login/gle as redirect URI in Gitlab?

gle

(replace gitlab_enterprise with gle)

ChrisZhangJin commented 3 months ago

Does it work with https://codecov-selfhosted-hostname.com/login/gle as redirect URI in Gitlab?

gle

(replace gitlab_enterprise with gle)

no, actually, i'd tried both way of login/gle and login/gitlab_enterprise. Neither works.

From the worker's log, it showed 401 which means the authenication is failed i guess when it jumped back from gitlab to codecov.

i'm using the Community version of gitlab, so not sure if it is kind of incompatiblity.

hverlin commented 3 months ago

Seeing the same issue. Even after fixing the redirect URL and using gle, it does not work. http://localhost:8080/internal/user fails with

{"detail":"Authentication credentials were not provided."}
tekkeitserktok commented 2 days ago

Hello,

Any updates on this bug ? Facing it too...

Thanks !

bert0RM commented 2 days ago

This fixed the issue for me: https://github.com/codecov/self-hosted/pull/42 Can you please test this on your end?

tekkeitserktok commented 2 days ago

Hello @bert0RM, it doesn't work but as I said in another comment, I use MY_IP.nip.io for codecov and gitlab.local domains for my local setup.