pok3r-custom / pok3rtool

Command line tool and library for keyboards using qmk-pok3r
BSD 3-Clause "New" or "Revised" License
41 stars 7 forks source link

git submodule init asking for authentication #2

Closed jpeirce closed 6 years ago

jpeirce commented 6 years ago

First is if I enter blank username/password, second is if I cancel the login prompt.

jack@linux:~/src/pok3rtool> git submodule update --init git submodule update --init Submodule 'libchaos' (https://gitlab.com/ChaoticEnigma/libchaos.git) registered for path 'libchaos' Cloning into '/home/jack/src/pok3rtool/libchaos'... remote: HTTP Basic: Access denied fatal: Authentication failed for 'https://gitlab.com/ChaoticEnigma/libchaos.git/' fatal: clone of 'https://gitlab.com/ChaoticEnigma/libchaos.git' into submodule path '/home/jack/src/pok3rtool/libchaos' failed Failed to clone 'libchaos'. Retry scheduled Cloning into '/home/jack/src/pok3rtool/libchaos'... remote: HTTP Basic: Access denied fatal: Authentication failed for 'https://gitlab.com/ChaoticEnigma/libchaos.git/' fatal: clone of 'https://gitlab.com/ChaoticEnigma/libchaos.git' into submodule path '/home/jack/src/pok3rtool/libchaos' failed Failed to clone 'libchaos' a second time, aborting

jack@linux:~/src/pok3rtool> git submodule update --init Cloning into '/home/jack/src/pok3rtool/libchaos'... error: unable to read askpass response from '/usr/lib/ssh/ssh-askpass' Username for 'https://gitlab.com': ^C

ChaoticEnigma commented 6 years ago

I'm aware of this issue, it seems to be a long standing but difficult to reproduce bug in GitLab. My gitlab ci is failing for the same reason. Looking into it.

jpeirce commented 6 years ago

I'm shooting from the hip, and you've probably already seen it, but from the gitlab docs: screenshot-2018-6-18 gitlab and ssh keys gitlab

ChaoticEnigma commented 6 years ago

The issue is that anonymous HTTPS is not working correctly. According to the docs, public repositories should not prompt for a username on HTTPS read access. Reports of this go back years, but reproducing it is seemingly inconsistent. One comment on an issue suggested it happens on repositories that were created private and made public (imported repositories are always imported as private). It may be that I have to recreate my repositories as public.

jpeirce commented 6 years ago

Just leaving these here in case you haven't seen them: https://gitlab.com/gitlab-org/gitlab-ce/issues/33150 https://gitlab.com/gitlab-org/gitlab-ce/issues/24032

ChaoticEnigma commented 6 years ago

Alright, this seems to be fixed. I suspect it wasn't a bug, just some misconfiguration on my part. It looks like all the gitlab repos can be cloned anonymously now.