Commit graph

6 commits

Author SHA1 Message Date
Hans-Christoph Steiner
63f77186ce tools/rewrite-git-redirects.py: also handle srclibs 2023-03-23 17:31:00 +00:00
Hans-Christoph Steiner
33481756ef gitlab-ci: add job to check if Repo URL is a redirect
We need a strong link between the source repo URL and our buildserver. HTTP
redirects have a number of issues, and are unnecessary in our use case.
Once this is complete, then the buildserver can set http.followRedirects to
false, and we could also set the buildserver to fetch source over Tor to
avoid targetting it.  Right now, gitlab.com only allows git fetches over
Tor if it is hitting a direct URL.  gitlab.com/s redirect logic will
trigger Cloudflare captures otherwise.

* https://bugs.debian.org/79002
* https://www.debian.org/security/2019/dsa-4371
* https://googleprojectzero.github.io/0days-in-the-wild//0day-RCAs/2021/CVE-2021-38000.html
* fdroidclient#1041
2023-03-20 17:07:37 +00:00
Hans-Christoph Steiner
7c98192b77
tools/: use safe yaml loading
YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as
the default Loader is unsafe. Please read https://msg.pyyaml.org/load for
full details.
2022-06-17 10:05:29 +02:00
FestplattenSchnitzel
141d71ba44 Format Python tools with Black 2021-08-02 17:23:33 +00:00
FestplattenSchnitzel
ea5bf01a8f Refactor tools, optimize imports, misc fixes 2021-08-02 17:23:33 +00:00
Hans-Christoph Steiner
9f80bf2a9e
tools/rewrite-git-redirects.py: use canonical gitlab URLs for Repo:
```console
$ git clone https://gitlab.com/fdroid/ci-images-base.git
Cloning into 'ci-images-base'...
remote: Enumerating objects: 89, done.
remote: Counting objects: 100% (89/89), done.
remote: Compressing objects: 100% (50/50), done.
remote: Total 89 (delta 51), reused 68 (delta 39)
Unpacking objects: 100% (89/89), done.
$ rm -rf ci-images-base/
$ git clone https://gitlab.com/fdroid/ci-images-base
Cloning into 'ci-images-base'...
warning: redirecting to https://gitlab.com/fdroid/ci-images-base.git/
remote: Enumerating objects: 89, done.
remote: Counting objects: 100% (89/89), done.
remote: Compressing objects: 100% (50/50), done.
remote: Total 89 (delta 51), reused 68 (delta 39)
Unpacking objects: 100% (89/89), done.
```
2019-10-03 13:58:55 +02:00