How to authenticate in gitlab pipline?
-
- which documentation are you talking about ?
- have you tried logging in from your local machine ? Does that work ?
-
@mehdi I'm referring to the documentation on the cloudron docs: https://docs.cloudron.io/apps/docker-registry/
I'm not even seeing log entries when trying to connect. Shouldn't it at least tell me about the failed login?
-
Stupid me, just read the docs again that I only need to set this up for gitlab integration. Removed the auth config and was now able to successfully login using cloudron credentials.
-
Weird... it just keeps timing out for me when I try a docker push
-
Nevermind... got it working just fine.
-
@atrilahiji What did you do here? it seems this might be the source of the update issue which you mention in the other thread...
-
@atrilahiji Write up a post on it and we can get it into the docs I bet!
-
If I understand it correctly the gitlab integration makes gitlab the authority for docker registry submitting jwt tokens for authentication. To create these tokens you either make a access token deploy token or a personal token (especially if you are using 2fa) and one should be able to authenticate to the registry, correct?
I've tried all sorts of tokens and changing the docker-client in authproxy and nginxconfig without success.
Has anyone manged to get this working? ><
-
I have token auth activated or at least configured and I can still log inn with Cloudron username and password + 2fa.
I'd like the token auth to work via Gitlab and maybe the case above points to a configuration issue.
I have to investigate further.
-
@caleno said in How to authenticate in gitlab pipline?:
I have token auth activated or at least configured and I can still log inn with Cloudron username and password + 2fa.
I'd like the token auth to work via Gitlab and maybe the case above points to a configuration issue.
I have to investigate further.
BTW. Maybe it is just working for the UI.