You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
4 years ago
..
activity.go Add top author stats to activity page (#9615) 5 years ago
attachment.go Add a storage layer for attachments (#11387) 4 years ago
blame.go Ensure BlameReaders close at end of request (#12102) 4 years ago
branch.go Move all push update operations to a queue (#10133) 4 years ago
commit.go Render the git graph on the server (#12333) 4 years ago
compare.go Issue templates directory (#11450) 4 years ago
download.go Add a storage layer for attachments (#11387) 4 years ago
editor.go Do not disable commit changes button on repost (#12644) 4 years ago
editor_test.go Add Close() method to gogitRepository (#8901) 5 years ago
http.go Set setting.AppURL as GITEA_ROOT_URL environment variable during pushes (#12752) 4 years ago
issue.go Add configurable Trust Models (#11712) 4 years ago
issue_dependency.go Fix wrong permissions check when issues/prs shared operations (#9885) 5 years ago
issue_label.go Move jquery-minicolors to npm/webpack (#12305) 4 years ago
issue_label_test.go fix go vet error (#3740) 6 years ago
issue_lock.go Implement "conversation lock" for issue comments (#5073) 5 years ago
issue_stopwatch.go Automatically clear stopwatch on merging a PR (#4327) 5 years ago
issue_timetrack.go [API] Extend times API (#9200) 5 years ago
issue_watch.go Fix PR/issue redirects when having external tracker (#9339) 5 years ago
lfs.go LFS support to be stored on minio (#12518) 4 years ago
main_test.go Unit tests for wiki routers (#3022) 7 years ago
middlewares.go Add gitea-vet (#10948) 4 years ago
migrate.go [API] Migration: Change ServiceType String (#12672) 4 years ago
milestone.go Issue templates directory (#11450) 4 years ago
projects.go Hide 'New Project board' button for users that are not signed in (#12547) 4 years ago
pull.go Move all push update operations to a queue (#10133) 4 years ago
pull_review.go Add a way to mark Conversation (code comment) resolved (#11037) 4 years ago
release.go Support slashes in release tags (#12864) 4 years ago
release_test.go Add Close() method to gogitRepository (#8901) 5 years ago
repo.go Add configurable Trust Models (#11712) 4 years ago
search.go Add detected file language to code search (#10256) 4 years ago
setting.go Add configurable Trust Models (#11712) 4 years ago
setting_protected_branch.go Prevent merge of outdated PRs on protected branches (#11012) 4 years ago
settings_test.go Re-attempt to delete temporary upload if the file is locked by another process (#12447) 4 years ago
topic.go Add API endpoint for accessing repo topics (#7963) 5 years ago
view.go Add a migrate service type switch page (#12697) 4 years ago
webhook.go Don't use legacy method to send Matrix Webhook (#12348) 4 years ago
wiki.go Allow different HardBreaks settings for documents and comments (#11515) 4 years ago
wiki_test.go Fix wiki raw view on sub path (#10002) 4 years ago