Coder.com - K8S - no git authentication in workspace

Hi all,

I've already asked for some help on the general topic, but problem is still not resolved : git operation does not work do to login problem.
So i've installed coder with helm cahrt => no problem, except i've changed the access controle > roles to allow creation of secret from templates.
Our self hosted gitlab has been configured with success too. As you can see in this screeshot, all seems ok.

When triing a git clone, i'm having this error :

coder@coder-xxxx-testjup-xxxx-xxxx:~$ git clone https://git.xxxx.com/xxxx/api-general.git
Cloning into 'api-general'...
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'https://git.xxxx.com/xxxx/api-general.git/'


Doing the samething with sudo ask me for my git credentials. and then it works... But in this case I need to input my credentials, so i can't do any git operations in a start script for example.

This may help or not... here are my envs git :
coder@coder-xxxx-testjup-xxxx-xxxx:~$ env | grep GIT
GIT_SSH_COMMAND=/tmp/coder.xxxx/coder gitssh --
GIT_ASKPASS=/tmp/coder.xxxx/coder
GITLAB_TOKEN=xxxx


Any idea to resolve this ?
Thank you for your help.

NB : coder.com is up to date : V2.2.0
image.png
Was this page helpful?