gitea/modules/structs
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
..
admin_user.go
attachment.go Fix wrong hint when status checking is running on pull request view (#9886) 2020-01-22 11:46:04 +08:00
commit_status.go Fix wrong hint when status checking is running on pull request view (#9886) 2020-01-22 11:46:04 +08:00
cron.go Add cron running API (#12421) 2020-08-24 11:48:15 -04:00
doc.go
fork.go
git_blob.go
git_hook.go
hook.go Granular webhook events (#9626) 2020-03-06 07:10:48 +02:00
issue_comment.go
issue_label.go [API] Fix inconsistent label color format (#10129) 2020-02-09 14:33:03 +00:00
issue_milestone.go Add Created & Updated to Milestone (#12662) 2020-09-05 13:38:54 -04:00
issue_reaction.go [API] Fix 9544 | return 200 when reaction already exist (#9550) 2019-12-31 03:21:21 -05:00
issue_stopwatch.go additional data for type StopWatch in swagger api (#12458) 2020-09-05 12:58:33 +01:00
issue_tracked_time.go [API] Extend times API (#9200) 2019-12-27 20:30:58 +00:00
issue.go Issue templates directory (#11450) 2020-09-11 10:48:39 -04:00
lfs_lock.go
miscellaneous.go
notifications.go [API] add endpoint to check notifications [Extend #9488] (#9595) 2020-01-14 16:37:19 +01:00
org_member.go
org_team.go [API] orgEditTeam make Fields optional (#9556) 2020-01-09 13:15:14 +00:00
org_type.go
org.go
pull_review.go API: Add pull review endpoints (#11224) 2020-05-02 03:20:51 +03:00
pull.go Add option to API to update PullRequest base branch (#11666) 2020-06-07 20:13:40 +01:00
release.go Add single release page and latest redirect (#11102) 2020-04-18 11:47:15 -03:00
repo_branch.go Prevent merge of outdated PRs on protected branches (#11012) 2020-04-16 22:00:36 -03:00
repo_collaborator.go
repo_commit.go [API] Extend contents with dates (#9464) 2019-12-24 10:33:52 +08:00
repo_file.go [API] Extend contents with dates (#9464) 2019-12-24 10:33:52 +08:00
repo_key.go
repo_refs.go
repo_tag.go
repo_topic.go
repo_tree.go
repo_watch.go
repo.go Add configurable Trust Models (#11712) 2020-09-20 00:44:55 +08:00
settings.go Expose Attachemnt Settings by API (#12514) 2020-09-05 08:43:06 +01:00
status.go
task.go
user_app.go Remove Unused Functions (#10516) 2020-03-02 00:05:44 +02:00
user_email.go
user_gpgkey.go
user_key.go
user.go