gitforge/services/migrations
Mathieu Fenniak a9a598d4b8 fix: ensure migrations allow/deny host lists are applied to onedev, pagure, and codebase migrators (#13184)
Similar to #13129, fixing a few places where `[migrations].ALLOWED_DOMAINS`, `...BLOCKED_DOMAINS`, and `...ALLOW_LOCALNETWORKS` are not implemented in external migrations, creating SSRF risks.

### Tests for Go changes

- I added test coverage for Go changes...
  - [x] in their respective `*_test.go` for unit tests.
  - [ ] in the `tests/integration` directory if it involves interactions with a live Forgejo server.
- I ran...
  - [x] `make pr-go` before pushing

### Documentation

- [ ] I created a pull request [to the documentation](https://codeberg.org/forgejo/docs) to explain to Forgejo users how to use this change.
- [x] I did not document these changes and I do not expect someone else to do it.

### Release notes

- [x] This change will be noticed by a Forgejo user or admin (feature, bug fix, performance, etc.). I suggest to include a release note for this change.
- [ ] This change is not visible to a Forgejo user or admin (refactor, dependency upgrade, etc.). I think there is no need to add a release note for this change.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/13184
Reviewed-by: Andreas Ahlenstorf <aahlenst@noreply.codeberg.org>
2026-06-25 14:11:36 +02:00
..
allowlist fix: compliance with [migrations].ALLOWED_DOMAINS, ...BLOCKED_DOMAINS, and ....ALLOW_LOCALNETWORKS for git & LFS ops (#13129) 2026-06-23 23:40:25 +02:00
lint-locale-usage feat: show progress of issues and PRs migrations (#12738) 2026-05-28 00:49:07 +02:00
testdata fix: do not migrate confidential issues and internal notes from Gitlab (#12735) 2026-05-28 20:45:24 +02:00
codebase.go fix: ensure migrations allow/deny host lists are applied to onedev, pagure, and codebase migrators (#13184) 2026-06-25 14:11:36 +02:00
codebase_test.go fix: ensure migrations allow/deny host lists are applied to onedev, pagure, and codebase migrators (#13184) 2026-06-25 14:11:36 +02:00
common.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
dump.go chore: replace gopkg.in/yaml.v3 with go.yaml.in/yaml/v3 (#8956) 2025-08-20 15:31:12 +02:00
error.go fix: Wait & retry when primary rate limit are hit for Github migration (#10846) 2026-01-26 14:47:08 +01:00
forgejo_downloader.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
forgejo_downloader_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
git.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
gitbucket.go Fix migration failing when importing either issues or PRs but not the other (#8892) 2025-09-01 14:05:10 +02:00
gitbucket_test.go fix: ensure migrations allow/deny host lists are applied to onedev, pagure, and codebase migrators (#13184) 2026-06-25 14:11:36 +02:00
gitea_downloader.go fix: compliance with [migrations].ALLOWED_DOMAINS, ...BLOCKED_DOMAINS, and ....ALLOW_LOCALNETWORKS for git & LFS ops (#13129) 2026-06-23 23:40:25 +02:00
gitea_downloader_test.go fix: ensure migrations allow/deny host lists are applied to onedev, pagure, and codebase migrators (#13184) 2026-06-25 14:11:36 +02:00
gitea_sdk_hack.go fix(migrations): transfer PR flow information (#7421) 2025-04-03 06:47:37 +00:00
gitea_uploader.go fix: compliance with [migrations].ALLOWED_DOMAINS, ...BLOCKED_DOMAINS, and ....ALLOW_LOCALNETWORKS for git & LFS ops (#13129) 2026-06-23 23:40:25 +02:00
gitea_uploader_test.go chore: tidy up uploading migration code (#12577) 2026-05-16 11:46:14 +02:00
github.go fix: compliance with [migrations].ALLOWED_DOMAINS, ...BLOCKED_DOMAINS, and ....ALLOW_LOCALNETWORKS for git & LFS ops (#13129) 2026-06-23 23:40:25 +02:00
github_test.go fix: ensure migrations allow/deny host lists are applied to onedev, pagure, and codebase migrators (#13184) 2026-06-25 14:11:36 +02:00
gitlab.go fix: compliance with [migrations].ALLOWED_DOMAINS, ...BLOCKED_DOMAINS, and ....ALLOW_LOCALNETWORKS for git & LFS ops (#13129) 2026-06-23 23:40:25 +02:00
gitlab_test.go fix: ensure migrations allow/deny host lists are applied to onedev, pagure, and codebase migrators (#13184) 2026-06-25 14:11:36 +02:00
gogs.go fix: compliance with [migrations].ALLOWED_DOMAINS, ...BLOCKED_DOMAINS, and ....ALLOW_LOCALNETWORKS for git & LFS ops (#13129) 2026-06-23 23:40:25 +02:00
gogs_test.go chore(cleanup): replaces unnecessary calls to formatting functions by non-formatting equivalents (#7994) 2025-05-29 17:34:29 +02:00
main_test.go chore: make use of go1.26 features (#12369) 2026-05-01 22:51:48 +02:00
migrate.go fix: compliance with [migrations].ALLOWED_DOMAINS, ...BLOCKED_DOMAINS, and ....ALLOW_LOCALNETWORKS for git & LFS ops (#13129) 2026-06-23 23:40:25 +02:00
migrate_test.go fix: compliance with [migrations].ALLOWED_DOMAINS, ...BLOCKED_DOMAINS, and ....ALLOW_LOCALNETWORKS for git & LFS ops (#13129) 2026-06-23 23:40:25 +02:00
onedev.go fix: ensure migrations allow/deny host lists are applied to onedev, pagure, and codebase migrators (#13184) 2026-06-25 14:11:36 +02:00
onedev_test.go fix: ensure migrations allow/deny host lists are applied to onedev, pagure, and codebase migrators (#13184) 2026-06-25 14:11:36 +02:00
pagure.go fix: ensure migrations allow/deny host lists are applied to onedev, pagure, and codebase migrators (#13184) 2026-06-25 14:11:36 +02:00
pagure_test.go fix: ensure migrations allow/deny host lists are applied to onedev, pagure, and codebase migrators (#13184) 2026-06-25 14:11:36 +02:00
restore.go chore: replace gopkg.in/yaml.v3 with go.yaml.in/yaml/v3 (#8956) 2025-08-20 15:31:12 +02:00
update.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00