Hello all,
I am receiving 403 responses when requesting raw files from a repo from gitlab.com
. However, this is only when using a specific user agent:
Works:
rundeck@4ab06476d127:~$ wget https://gitlab.com/compositionalenterprises/play-compositional/raw/master/bin/execution_prep.sh
--2020-04-05 00:42:32-- https://gitlab.com/compositionalenterprises/play-compositional/raw/master/bin/execution_prep.sh
Resolving gitlab.com (gitlab.com)... 172.65.251.78, 2606:4700:90:0:f22e:fbec:5bed:a9b9
Connecting to gitlab.com (gitlab.com)|172.65.251.78|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3667 (3.6K) [text/plain]
Saving to: ‘execution_prep.sh’
execution_prep.sh 100%[=====================================================================================================================================>] 3.58K --.-KB/s in 0s
2020-04-05 00:42:32 (14.2 MB/s) - ‘execution_prep.sh’ saved [3667/3667]
Doesn’t Work:
rundeck@4ab06476d127:~$ wget --user-agent="Jakarta Commons-HttpClient/3.1" https://gitlab.com/compositionalenterprises/play-compositional/raw/master/bin/execution_prep.sh
--2020-04-05 00:42:09-- https://gitlab.com/compositionalenterprises/play-compositional/raw/master/bin/execution_prep.sh
Resolving gitlab.com (gitlab.com)... 172.65.251.78, 2606:4700:90:0:f22e:fbec:5bed:a9b9
Connecting to gitlab.com (gitlab.com)|172.65.251.78|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2020-04-05 00:42:09 ERROR 403: Forbidden.
I was also able to replicate this from another cloud IP and from a residential IP address. I was also able to replicate this using multiple repos. Is there someting at gitlab.com
that blocks that specific user agent?