-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Description
🥧
- Gitea version (or commit ref): 1.11.6+2-g5d4251eb7 (06/09/2020 06:51:55)
- Git version: 2.20.1-2+deb10u3
- Operating system: Debian GNU/Linux 10 (buster) (10.4)
- Database: PostgreSQL 12+215.pgdg100+1
- Can you reproduce the bug at https://try.gitea.io: No
- Log gist:
Description
I have transfered my workflow to gitea for a short time. I realize that gitea is suitable for a portable code manage platform on Raspberry 4B as a permanent service. Therefore, it's essencial for me to show gpg signature of commits.
I flow the user guide step by step: GPG Commit Signatures.
Firstly, I generated gpg key for my raspi.
Then, I import secret-subkey and set password to null.
Next, I change relavant configurations in /home/git/.gitconfig and /etc/gitea/app.ini.
Finally, I restart the gitea services and copy public key to admin user named gitea.
At the beginning, I create a repo as gitea and everything goes well.
I'm so excite but tragedy cames one after another.
I create a normal user name jueti and add my own gpg public keys. Then, I create a repo but a warning was occured:
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
So I tried to use git log command to see what was happened, and I found an unusal result.
compare to an initial commit of Github.
So it's obvious that the initial commit of jueti/test should be committed by gitea <[email protected] instead of jueti <[email protected]>.
So it's obvious that the commiter of the initial commit should be gitea <[email protected].
Configurations
/home/git/.gitconfig
[user]
name = gitea
email = [email protected]
signingkey = C5A84090
[commit]
gpgsign = true
[gpg]
program = /usr/bin/gpg
[core]
quotepath = false
commitGraph = true
[gc]
writeCommitGraph = true
/etc/gitea/app.ini
[repository.signing]
SIGNING_KEY = C5A84090
SIGNING_NAME = gitea
SIGNING_EMAIL = [email protected]
INITIAL_COMMIT = always
CRUD_ACTIONS = pubkey, twofa, parentsigned
WIKI = pubkey, twofa, parentsigned
MERGES = pubkey, twofa, basesigned, commitssigned
gpg -K --keyid-format short
/home/git/.gnupg/pubring.kbx
----------------------------
sec# rsa4096/BE6A1CD3 2020-06-14 [C]
0916836C9F9B437341DAD5A1B8C833ECBE6A1CD3
uid [ultimate] gitea <[email protected]>
ssb ed25519/C5A84090 2020-06-14 [S] [expires: 2023-06-14]
ssb ed25519/50E06E86 2020-06-14 [A] [expires: 2023-06-14]
ssb cv25519/19D7986D 2020-06-14 [E] [expires: 2023-06-14]



