Is it possible to disable https cloning?

#1

Hi there

Is there a way to disable the download of a gitlab project through http and https?

I would like it to be available through ssh only.

I tried using the settings below in git config:

protocol.http.allow=never
protocol.https.allow=never
However, even though the project is set as private, I still manage to be able to download the git archive through a simple “composer update” command

Thank you for your help

0 Likes

#2

I haven’t tried out myself.

However, according to this link, it seems that GITLab admin could turn off https cloning.

And it seems like the feature was completed like 2 years ago:

0 Likes