forgejo-federation/routers/api/v1/repo
zeripath 4979f15c3f
Add configurable Trust Models (#11712)
* Add configurable Trust Models

Gitea's default signature verification model differs from GitHub. GitHub
uses signatures to verify that the committer is who they say they are -
meaning that when GitHub makes a signed commit it must be the committer.
The GitHub model prevents re-publishing of commits after revocation of a
key and prevents re-signing of other people's commits to create a
completely trusted repository signed by one key or a set of trusted
keys.

The default behaviour of Gitea in contrast is to always display the
avatar and information related to a signature. This allows signatures to
be decoupled from the committer. That being said, allowing arbitary
users to present other peoples commits as theirs is not necessarily
desired therefore we have a trust model whereby signatures from
collaborators are marked trusted, signatures matching the commit line
are marked untrusted and signatures that match a user in the db but not
the committer line are marked unmatched.

The problem with this model is that this conflicts with Github therefore
we need to provide an option to allow users to choose the Github model
should they wish to.

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Adjust locale strings

Signed-off-by: Andrew Thornton <art27@cantab.net>

* as per @6543

Co-authored-by: 6543 <6543@obermui.de>

* Update models/gpg_key.go

* Add migration for repository

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2020-09-20 00:44:55 +08:00
..
blob.go Swagger info corrections (#9441) 2019-12-20 19:07:12 +02:00
branch.go Move all push update operations to a queue (#10133) 2020-09-11 10:14:48 -04:00
collaborators.go Remove page size limit comment from swagger (#11806) 2020-06-09 00:57:38 -04:00
commits.go Refactor: move Commit To APIFormat Code & Lot of StopWatch related things (#12729) 2020-09-18 20:09:26 +08:00
file.go Add better Swagger description and a example for GetArchive (#12743) 2020-09-06 12:23:47 -04:00
fork.go Remove page size limit comment from swagger (#11806) 2020-06-09 00:57:38 -04:00
git_hook.go Swagger info corrections (#9441) 2019-12-20 19:07:12 +02:00
git_ref.go Swagger info corrections (#9441) 2019-12-20 19:07:12 +02:00
hook.go Refactor: move Commit To APIFormat Code & Lot of StopWatch related things (#12729) 2020-09-18 20:09:26 +08:00
hook_test.go API endpoint for testing webhook (#3550) 2018-04-29 14:21:33 +08:00
issue.go Add Access-Control-Expose-Headers (#12446) 2020-08-13 18:18:18 +01:00
issue_comment.go Remove page size limit comment from swagger (#11806) 2020-06-09 00:57:38 -04:00
issue_label.go Add Organization Wide Labels (#10814) 2020-04-01 01:14:46 -03:00
issue_reaction.go Remove page size limit comment from swagger (#11806) 2020-06-09 00:57:38 -04:00
issue_stopwatch.go Refactor: move Commit To APIFormat Code & Lot of StopWatch related things (#12729) 2020-09-18 20:09:26 +08:00
issue_subscription.go Remove page size limit comment from swagger (#11806) 2020-06-09 00:57:38 -04:00
issue_tracked_time.go Remove page size limit comment from swagger (#11806) 2020-06-09 00:57:38 -04:00
key.go Remove page size limit comment from swagger (#11806) 2020-06-09 00:57:38 -04:00
label.go Remove page size limit comment from swagger (#11806) 2020-06-09 00:57:38 -04:00
language.go Add language statistics API endpoint (#11737) 2020-06-07 14:48:41 +03:00
main_test.go API endpoint for testing webhook (#3550) 2018-04-29 14:21:33 +08:00
migrate.go [API] Migration: Change ServiceType String (#12672) 2020-09-10 23:29:19 +01:00
milestone.go [API] Milestone endpoints accept names too (#12649) 2020-09-14 14:48:03 +03:00
mirror.go Refactor api repo dir (#10048) 2020-01-29 13:55:23 +08:00
pull.go Report error if API merge is not allowed (#12528) 2020-08-19 17:35:06 -04:00
pull_review.go Remove page size limit comment from swagger (#11806) 2020-06-09 00:57:38 -04:00
release.go Add action feed for new release (#12324) 2020-07-29 15:20:54 -04:00
release_attachment.go Add a storage layer for attachments (#11387) 2020-08-18 12:23:45 +08:00
repo.go Add configurable Trust Models (#11712) 2020-09-20 00:44:55 +08:00
repo_test.go Fixes #5960 - Adds API Endpoint for Repo Edit (#7006) 2019-05-30 11:09:05 -04:00
star.go Remove page size limit comment from swagger (#11806) 2020-06-09 00:57:38 -04:00
status.go Add Access-Control-Expose-Headers (#12446) 2020-08-13 18:18:18 +01:00
subscriber.go Remove page size limit comment from swagger (#11806) 2020-06-09 00:57:38 -04:00
tag.go [API] enable paggination for ListRepoTags (#10454) 2020-02-25 14:07:07 -05:00
topic.go Remove page size limit comment from swagger (#11806) 2020-06-09 00:57:38 -04:00
transfer.go Fix bug preventing transfer to private organization (#12497) 2020-08-16 16:27:08 -04:00
tree.go Remove page size limit comment from swagger (#11806) 2020-06-09 00:57:38 -04:00