1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-28 13:49:13 -05:00
forgejo/templates/repo/settings
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
..
webhook Make SVG size argument optional (#12814) 2020-09-11 16:19:00 -04:00
branches.tmpl Feature: Archive repos (#5009) 2019-01-23 13:58:38 -05:00
collaboration.tmpl Make SVG size argument optional (#12814) 2020-09-11 16:19:00 -04:00
deploy_keys.tmpl Make SVG size argument optional (#12814) 2020-09-11 16:19:00 -04:00
githook_edit.tmpl Cleaner ui for admin, repo settings, and user settings page (#1269) (#1270) 2017-03-15 23:39:38 +01:00
githooks.tmpl Make SVG size argument optional (#12814) 2020-09-11 16:19:00 -04:00
lfs.tmpl Make SVG size argument optional (#12814) 2020-09-11 16:19:00 -04:00
lfs_file.tmpl Remove last traces of has-emoji class (#11263) 2020-05-01 20:58:45 +03:00
lfs_file_find.tmpl Make SVG size argument optional (#12814) 2020-09-11 16:19:00 -04:00
lfs_locks.tmpl Make SVG size argument optional (#12814) 2020-09-11 16:19:00 -04:00
lfs_pointers.tmpl Add basic repository lfs management (#7199) 2019-10-28 18:31:55 +00:00
nav.tmpl Protected branches system (#339) 2017-02-21 23:02:10 +08:00
navbar.tmpl Add basic repository lfs management (#7199) 2019-10-28 18:31:55 +00:00
options.tmpl Add configurable Trust Models (#11712) 2020-09-20 00:44:55 +08:00
protected_branch.tmpl Make SVG size argument optional (#12814) 2020-09-11 16:19:00 -04:00