forgejo/services/migrations
Philip Peterson 03508b33a8
[FEAT] Allow pushmirror to use publickey authentication
- Continuation of https://github.com/go-gitea/gitea/pull/18835 (by
@Gusted, so it's fine to change copyright holder to Forgejo).
- Add the option to use SSH for push mirrors, this would allow for the
deploy keys feature to be used and not require tokens to be used which
cannot be limited to a specific repository. The private key is stored
encrypted (via the `keying` module) on the database and NEVER given to
the user, to avoid accidental exposure and misuse.
- CAVEAT: This does require the `ssh` binary to be present, which may
not be available in containerized environments, this could be solved by
adding a SSH client into forgejo itself and use the forgejo binary as
SSH command, but should be done in another PR.
- CAVEAT: Mirroring of LFS content is not supported, this would require
the previous stated problem to be solved due to LFS authentication (an
attempt was made at forgejo/forgejo#2544).
- Integration test added.
- Resolves #4416
2024-08-22 17:05:07 +02:00
..
testdata/gitlab [Windows] prevent ? in testdata path 2024-03-15 13:15:46 +01:00
codebase.go
codebase_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
common.go
dump.go
error.go Update module github.com/google/go-github/v57 to v63 2024-08-05 13:21:39 +00:00
forgejo_downloader.go
forgejo_downloader_test.go
git.go
gitbucket.go Change the default maxPerPage for gitbucket (#30392) 2024-04-15 20:01:36 +02:00
gitea_downloader.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
gitea_downloader_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
gitea_uploader.go Merge pull request 'migrations: Map non-existant external users to Ghost' (#3935) from algernon/forgejo:who-let-the-nils-out into forgejo 2024-05-28 16:42:31 +00:00
gitea_uploader_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
github.go Update module github.com/google/go-github/v57 to v63 2024-08-05 13:21:39 +00:00
github_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
gitlab.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
gitlab_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
gogs.go FIX gogs migration if gogs is hosted at a subpath (#3572) 2024-05-01 16:28:44 +00:00
gogs_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
http_client.go
main_test.go
migrate.go [FEAT] Allow pushmirror to use publickey authentication 2024-08-22 17:05:07 +02:00
migrate_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
onedev.go
onedev_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
restore.go
update.go