githaven/templates/repo
zeripath fcb535c5c3
Sign merges, CRUD, Wiki and Repository initialisation with gpg key (#7631)
This PR fixes #7598 by providing a configurable way of signing commits across the Gitea instance. Per repository configurability and import/generation of trusted secure keys is not provided by this PR - from a security PoV that's probably impossible to do properly. Similarly web-signing, that is asking the user to sign something, is not implemented - this could be done at a later stage however.

## Features
- [x] If commit.gpgsign is set in .gitconfig sign commits and files created through repofiles. (merges should already have been signed.)
- [x] Verify commits signed with the default gpg as valid
- [x] Signer, Committer and Author can all be different
    - [x] Allow signer to be arbitrarily different - We still require the key to have an activated email on Gitea. A more complete implementation would be to use a keyserver and mark external-or-unactivated with an "unknown" trust level icon.
- [x] Add a signing-key.gpg endpoint to get the default gpg pub key if available
    - Rather than add a fake web-flow user I've added this as an endpoint on /api/v1/signing-key.gpg
    - [x] Try to match the default key with a user on gitea - this is done at verification time
- [x] Make things configurable?
    - app.ini configuration done
    - [x] when checking commits are signed need to check if they're actually verifiable too
- [x] Add documentation

I have decided that adjusting the docker to create a default gpg key is not the correct thing to do and therefore have not implemented this.
2019-10-16 14:42:42 +01:00
..
branch [Branch View] Add Included TAG (#8449) 2019-10-14 23:40:17 +01:00
diff [UI] Pull Request Download diff Button (#8470) 2019-10-15 13:44:36 +03:00
editor Fix editor commit to new branch if PR disabled (#8375) 2019-10-05 10:09:19 +08:00
issue Enable Uploading/Removing Attachments When Editing an Issue/Comment (#8426) 2019-10-15 13:19:32 +01:00
pulls Refuse merge until all required status checks success (#7481) 2019-09-18 08:39:45 +03:00
release Add extra user information when migrating release (#8331) 2019-10-05 14:09:27 +03:00
settings fix template bug on mirror repository setting page (#8438) 2019-10-09 21:09:02 +08:00
wiki wiki history improvements (#7391) 2019-07-11 22:45:10 +08:00
activity.tmpl Improve localization of git activity stats (#6848) 2019-05-04 23:32:37 +03:00
blame.tmpl keep blame view buttons sequence consistent with normal view when view a file (#8007) 2019-08-27 22:23:18 -04:00
branch_dropdown.tmpl Escape branch name in dropdown menu (#3691) 2018-03-19 22:29:16 +08:00
commit_page.tmpl Sign merges, CRUD, Wiki and Repository initialisation with gpg key (#7631) 2019-10-16 14:42:42 +01:00
commit_status.tmpl UI: Fix overflow issues in repo (#7190) 2019-06-14 09:32:13 +08:00
commits_table.tmpl Sign merges, CRUD, Wiki and Repository initialisation with gpg key (#7631) 2019-10-16 14:42:42 +01:00
commits.tmpl Responsive view (#2750) 2017-12-30 18:47:52 -06:00
create.tmpl Add option to initialize repository with labels (#6061) 2019-09-08 11:28:40 +03:00
empty.tmpl Feature: Archive repos (#5009) 2019-01-23 13:58:38 -05:00
forks.tmpl #3348 always use relative avatar link in the template 2016-08-05 12:12:54 -07:00
graph.tmpl Add pagination to commit graph page (#8360) 2019-10-14 22:38:35 +01:00
header.tmpl Add nofollow to sign in links (#8509) 2019-10-14 18:43:48 +01:00
home.tmpl Add option to blame files (#5721) 2019-04-19 22:47:00 -04:00
migrate.tmpl Improve migrations to support migrating milestones/labels/issues/comments/pullrequests (#6290) 2019-05-07 09:12:51 +08:00
migrating.tmpl Move migrating repository from frontend to backend (#6200) 2019-10-13 21:23:14 +08:00
search.tmpl Don't warn users about *every* dirty form (#3707) 2018-03-23 22:10:42 +08:00
sub_menu.tmpl Add ui class to sub_menu to fix style in arc-green (#6477) 2019-04-02 08:41:19 +08:00
user_cards.tmpl Unifies pagination template usage (#6531) (#6533) 2019-04-20 00:15:19 -04:00
view_file.tmpl Singular form for files that has only one line (#8416) 2019-10-07 19:38:41 -04:00
view_list.tmpl Make link last commit massages in repository home page and commit tables (#8006) 2019-09-10 12:03:30 +03:00
watchers.tmpl #1692 APIs: Users Followers 2015-12-21 04:24:11 -08:00