forgejo/routers/api/v1/repo
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
..
action.go Set owner id to zero when GetRegistrationToken for repo (#31725) 2024-08-04 10:14:34 +02:00
avatar.go
blob.go
branch.go feat(quota): Quota enforcement 2024-08-02 11:10:34 +02:00
collaborators.go
commits.go [BUG] Use correct SHA in GetCommitPullRequest 2024-07-06 22:04:31 +02:00
compare.go Enable unparam linter (#31277) 2024-06-16 13:42:58 +02:00
file.go feat(quota): Quota enforcement 2024-08-02 11:10:34 +02:00
flags.go
fork.go chore(refactor): split repo_service.ForkRepository in two 2024-08-11 12:40:34 +02:00
git_hook.go
git_ref.go Add codespell support and fix a good number of typos with its help (#3270) 2024-05-09 13:49:37 +00:00
hook.go
hook_test.go
issue.go fix(api): issue state change is not idempotent 2024-07-25 15:16:44 +02:00
issue_attachment.go feat(quota): Quota enforcement 2024-08-02 11:10:34 +02:00
issue_comment.go Load attachments for /issues/comments/{id} 2024-07-16 11:09:54 +02:00
issue_comment_attachment.go feat(quota): Quota enforcement 2024-08-02 11:10:34 +02:00
issue_dependency.go
issue_label.go Support using label names when changing issue labels (#30943) 2024-05-19 13:12:35 +02:00
issue_pin.go
issue_reaction.go
issue_stopwatch.go
issue_subscription.go Add codespell support and fix a good number of typos with its help (#3270) 2024-05-09 13:49:37 +00:00
issue_tracked_time.go
key.go
label.go
language.go
main_test.go
migrate.go feat(quota): Quota enforcement 2024-08-02 11:10:34 +02:00
milestone.go
mirror.go [FEAT] Allow pushmirror to use publickey authentication 2024-08-22 17:05:07 +02:00
notes.go
patch.go feat(quota): Quota enforcement 2024-08-02 11:10:34 +02:00
pull.go Fix linting issues 2024-08-18 16:25:13 +02:00
pull_review.go Revert "Prevent allow/reject reviews on merged/closed PRs" 2024-08-12 12:24:52 +01:00
release.go Implement external assets 2024-07-29 20:35:55 +02:00
release_attachment.go feat(quota): Quota enforcement 2024-08-02 11:10:34 +02:00
release_tags.go Protected tag is no internal server error (#30962) 2024-05-19 13:12:35 +02:00
repo.go feat(quota): Quota enforcement 2024-08-02 11:10:34 +02:00
repo_test.go
star.go
status.go
subscriber.go
tag.go feat(quota): Quota enforcement 2024-08-02 11:10:34 +02:00
teams.go
topic.go
transfer.go feat(quota): Quota enforcement 2024-08-02 11:10:34 +02:00
tree.go
wiki.go feat(quota): Quota enforcement 2024-08-02 11:10:34 +02:00