mirror of
1
Fork 0
forgejo/services/mirror
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
..
mirror.go feat(quota): Quota enforcement 2024-08-02 11:10:34 +02:00
mirror_pull.go Remove unused parameter for some functions in `services/mirror` (#30724) 2024-04-28 15:39:01 +02:00
mirror_push.go [FEAT] Allow pushmirror to use publickey authentication 2024-08-22 17:05:07 +02:00
mirror_test.go Use the type RefName for all the needed places and fix pull mirror sync bugs (#24634) 2023-05-26 01:04:48 +00:00
notifier.go Move notification interface to services layer (#26915) 2023-09-05 18:37:47 +00:00
queue.go Move `modules/mirror` to `services` (#26737) 2023-08-27 10:24:45 +08:00