forgejo/modules/git
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
..
pipeline
tests/repos
blame.go
blame_test.go
blob.go
blob_test.go
cache.go
command.go refactor repo_stats to use os.pipe (#11726) 2020-09-05 16:12:14 -04:00
command_test.go
commit.go [Vendor] Switch go-version lib (#12719) 2020-09-05 12:42:58 -04:00
commit_archive.go Set context for running CreateArchive in to that of the request (#12555) 2020-08-28 09:55:12 +03:00
commit_info.go
commit_info_test.go Re-attempt to delete temporary upload if the file is locked by another process (#12447) 2020-08-11 21:05:34 +01:00
commit_reader.go
commit_test.go
diff.go
diff_test.go
error.go
git.go [Vendor] Switch go-version lib (#12719) 2020-09-05 12:42:58 -04:00
git_test.go
hook.go fix typos (#12545) 2020-08-20 18:41:08 +01:00
notes.go
notes_test.go
parse.go
parse_test.go
README.md
ref.go
repo.go
repo_attribute.go [Vendor] Switch go-version lib (#12719) 2020-09-05 12:42:58 -04:00
repo_blame.go
repo_blob.go
repo_blob_test.go
repo_branch.go
repo_branch_test.go
repo_commit.go [Vendor] Switch go-version lib (#12719) 2020-09-05 12:42:58 -04:00
repo_commit_test.go
repo_commitgraph.go
repo_compare.go Git 2.28 no longer permits diff with ... on unrelated branches (#12364) 2020-07-29 13:53:04 -04:00
repo_compare_test.go Re-attempt to delete temporary upload if the file is locked by another process (#12447) 2020-08-11 21:05:34 +01:00
repo_gpg.go
repo_hook.go
repo_index.go
repo_language_stats.go
repo_object.go
repo_ref.go
repo_ref_test.go
repo_stats.go refactor repo_stats to use os.pipe (#11726) 2020-09-05 16:12:14 -04:00
repo_stats_test.go
repo_tag.go [Vendor] Switch go-version lib (#12719) 2020-09-05 12:42:58 -04:00
repo_tag_test.go Re-attempt to delete temporary upload if the file is locked by another process (#12447) 2020-08-11 21:05:34 +01:00
repo_test.go
repo_tree.go Add configurable Trust Models (#11712) 2020-09-20 00:44:55 +08:00
sha1.go
signature.go
submodule.go Compare SSH_DOMAIN when parsing submodule URLs (#12753) 2020-09-07 20:08:10 -04:00
submodule_test.go Compare SSH_DOMAIN when parsing submodule URLs (#12753) 2020-09-07 20:08:10 -04:00
tag.go
tree.go
tree_blob.go
tree_entry.go
tree_entry_test.go
utils.go
utils_test.go

Git Module

This module is merged from https://github.com/go-gitea/git which is a Go module to access Git through shell commands. Now it's a part of gitea's main repository for easier pull request.