0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-30 16:57:53 +01:00
gitea/templates/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
..
branch Make SVG size argument optional (#12814) 2020-09-11 16:19:00 -04:00
diff Make SVG size argument optional (#12814) 2020-09-11 16:19:00 -04:00
editor Make SVG size argument optional (#12814) 2020-09-11 16:19:00 -04:00
issue Add ui style for "Open a blank issue" button (#12824) 2020-09-16 10:07:09 +08:00
migrate Make SVG size argument optional (#12814) 2020-09-11 16:19:00 -04:00
projects Make SVG size argument optional (#12814) 2020-09-11 16:19:00 -04:00
pulls Translate two small lables on commit statuse list (#12821) 2020-09-12 15:29:50 +08:00
release Make SVG size argument optional (#12814) 2020-09-11 16:19:00 -04:00
settings Add configurable Trust Models (#11712) 2020-09-20 00:44:55 +08:00
wiki Make SVG size argument optional (#12814) 2020-09-11 16:19:00 -04:00
activity.tmpl Make SVG size argument optional (#12814) 2020-09-11 16:19:00 -04:00
blame.tmpl Server-side syntax highlighting for all code (#12047) 2020-07-01 00:34:03 +03:00
branch_dropdown.tmpl Make SVG size argument optional (#12814) 2020-09-11 16:19:00 -04:00
commit_page.tmpl Make SVG size argument optional (#12814) 2020-09-11 16:19:00 -04:00
commit_status.tmpl UI: Fix overflow issues in repo (#7190) 2019-06-14 09:32:13 +08:00
commits.tmpl Make SVG size argument optional (#12814) 2020-09-11 16:19:00 -04:00
commits_list.tmpl Show full GPG commit status on PR commit history (#11702) 2020-06-02 20:22:26 -04:00
commits_list_small.tmpl Make SVG size argument optional (#12814) 2020-09-11 16:19:00 -04:00
commits_table.tmpl Make SVG size argument optional (#12814) 2020-09-11 16:19:00 -04:00
create.tmpl Add configurable Trust Models (#11712) 2020-09-20 00:44:55 +08:00
empty.tmpl Make SVG size argument optional (#12814) 2020-09-11 16:19:00 -04:00
forks.tmpl #3348 always use relative avatar link in the template 2016-08-05 12:12:54 -07:00
graph.tmpl Make SVG size argument optional (#12814) 2020-09-11 16:19:00 -04:00
header.tmpl Use a simple format for the big number on ui (#12822) 2020-09-16 00:07:18 -04:00
header_icon.tmpl Update Octicons to v10 (#12240) 2020-07-17 18:15:12 +03:00
home.tmpl Make SVG size argument optional (#12814) 2020-09-11 16:19:00 -04:00
search.tmpl Server-side syntax highlighting for all code (#12047) 2020-07-01 00:34:03 +03:00
shabox_badge.tmpl Make SVG size argument optional (#12814) 2020-09-11 16:19:00 -04:00
sub_menu.tmpl Make SVG size argument optional (#12814) 2020-09-11 16:19:00 -04:00
user_cards.tmpl Make SVG size argument optional (#12814) 2020-09-11 16:19:00 -04:00
view_file.tmpl Make SVG size argument optional (#12814) 2020-09-11 16:19:00 -04:00
view_list.tmpl Make SVG size argument optional (#12814) 2020-09-11 16:19:00 -04:00
watchers.tmpl #1692 APIs: Users Followers 2015-12-21 04:24:11 -08:00