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.
forgejo/modules
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
..
analyze Exclude generated files from language statistics (#11653) 4 years ago
auth Add configurable Trust Models (#11712) 4 years ago
avatar Fix Avatar Resize (resize algo NearestNeighbor -> Bilinear) (#12745) 4 years ago
base Use a simple format for the big number on ui (#12822) 4 years ago
cache Use hash of repo path, ref and entrypath as cache key (#12151) 4 years ago
charset Ensure that the detected charset order is set in chardet test (#12574) 4 years ago
context Add configurable Trust Models (#11712) 4 years ago
convert Refactor: move Commit To APIFormat Code & Lot of StopWatch related things (#12729) 4 years ago
cron Mirror System Notice reports are too frequent (#12438) 4 years ago
emoji Fix emoji detection in certain cases (#12320) 4 years ago
eventsource Move EventSource to SharedWorker (#12095) 4 years ago
generate Add gitea-vet (#10948) 4 years ago
git Add configurable Trust Models (#11712) 4 years ago
gitgraph Render the git graph on the server (#12333) 4 years ago
graceful Set TLS minimum version to 1.2 (#12689) 4 years ago
highlight Escape failed highlighted code (#12685) 4 years ago
httplib Add golangci (#6418) 5 years ago
indexer fix: use Base36 for all code indexers (#12830) 4 years ago
lfs LFS support to be stored on minio (#12518) 4 years ago
log Re-attempt to delete temporary upload if the file is locked by another process (#12447) 4 years ago
markup Fix markdown meta parsing (#12817) 4 years ago
metrics Prometheus endpoint (#5256) 6 years ago
migrations Fix anonymous GL migration (#12862) 4 years ago
notification Fix panic when adding long comment (#12892) 4 years ago
options Rename scripts to build and add revive command as a new build tool command (#10942) 4 years ago
password Check passwords against HaveIBeenPwned (#12716) 4 years ago
pprof Add golangci (#6418) 5 years ago
private Rename models.ProtectedBranchRepoID to models.EnvRepoID and ensure EnvPusherEmail is set (#12646) 4 years ago
process Only write to global gitconfig if necessary (#11876) 4 years ago
public fix go1.15 lint error in modules/public/public.go (#12707) 4 years ago
queue Add queue for code indexer (#10332) 4 years ago
recaptcha fixed reCAPTCHA URL (#9083) 5 years ago
references Add spent time to referenced issue in commit message (#12220) 4 years ago
repofiles Add configurable Trust Models (#11712) 4 years ago
repository Add configurable Trust Models (#11712) 4 years ago
secret Integrate OAuth2 Provider (#5378) 5 years ago
session When reading expired sessions - expire them (#12686) 4 years ago
setting Add configurable Trust Models (#11712) 4 years ago
ssh log.Fatal on failure to listen to SSH port (#10795) 4 years ago
storage LFS support to be stored on minio (#12518) 4 years ago
structs Add configurable Trust Models (#11712) 4 years ago
svg Fix filepath basename on Windows for SVG bindata (#12241) 4 years ago
sync Fix missing unlock in uniquequeue (#9790) 5 years ago
task [API] Migration: Change ServiceType String (#12672) 4 years ago
templates Use a simple format for the big number on ui (#12822) 4 years ago
test Macaron 1.5 (#12596) 4 years ago
timeutil Fix timezone on issue deadline (#11697) 4 years ago
upload Fix upload file type check (#7890) 5 years ago
user Add gitea-vet (#10948) 4 years ago
util Re-attempt to delete temporary upload if the file is locked by another process (#12447) 4 years ago
validation [API] Get a single commit via Ref (#10915) 4 years ago
webhook Refactor webhook payload convertion (#12310) 4 years ago