wrolpi/modules/repos
Roland 4810b8bc50
repos: close the remaining submodule SSRF gaps
* .gitmodules is read NUL-delimited, and an unreadable record refuses
  the submodules.  A submodule name with a space (`[submodule "a b"]`)
  made `--get-regexp`'s "key value" output misfile its URL as a path, so
  the URL was never checked.
* Submodule URLs must have a strict shape every parser reads the same
  way (no userinfo, backslash, query, fragment, or whitespace), so a URL
  cannot be checked as one host and fetched from another.
* Each checked host is pinned (http.curloptResolve) to the addresses
  that were checked, so DNS cannot change between the check and git's
  fetch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 16:56:10 -06:00
..
test repos: close the remaining submodule SSRF gaps 2026-10-06 16:56:10 -06:00
__init__.py Add a Repos module that mirrors git repositories (backend) 2026-10-06 16:56:09 -06:00
api.py repos: history, Download ZIP, and submodules 2026-10-06 16:56:09 -06:00
conftest.py repos: never fetch submodules from WROLPi's own network 2026-10-06 16:56:09 -06:00
downloader.py repos: close the remaining submodule SSRF gaps 2026-10-06 16:56:10 -06:00
errors.py Add a Repos module that mirrors git repositories (backend) 2026-10-06 16:56:09 -06:00
lib.py repos: close the remaining submodule SSRF gaps 2026-10-06 16:56:10 -06:00
models.py repos: history, Download ZIP, and submodules 2026-10-06 16:56:09 -06:00
schema.py repos: history, Download ZIP, and submodules 2026-10-06 16:56:09 -06:00