0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-25 00:44:15 -05:00
forgejo/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
activity.tmpl
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
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
commits.tmpl
commits_table.tmpl Sign merges, CRUD, Wiki and Repository initialisation with gpg key (#7631) 2019-10-16 14:42:42 +01:00
create.tmpl Add option to initialize repository with labels (#6061) 2019-09-08 11:28:40 +03:00
empty.tmpl
forks.tmpl
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
migrate.tmpl
migrating.tmpl Move migrating repository from frontend to backend (#6200) 2019-10-13 21:23:14 +08:00
search.tmpl
sub_menu.tmpl
user_cards.tmpl
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