1
0
mirror of https://gitea.blesmrt.net/mikaela/ssh-allowed_signers.git synced 2024-11-22 02:59:28 +01:00
[Mirror] SSH keys for verifying commits
Go to file
2023-02-21 10:27:08 +02:00
aminda aminda.pub: add expiry time for fineid 2022-01-12 12:29:56 +02:00
jae fix comment on Jae's key, mkdir, authorized_keys 2022-08-20 15:12:25 +03:00
mtrnord add mtrnord's key 2023-02-16 14:23:16 +02:00
.editorconfig add .editorconfig 2023-02-16 14:23:47 +02:00
.gitattributes include linguist detection 2023-02-17 14:31:26 +02:00
allowed_signers add mtrnord's key 2023-02-16 14:23:16 +02:00
README.md README.md: add GitLab support, links to docs 2023-02-21 10:27:08 +02:00

allowed_signers file for SSH/git

Git 2.34 brings support for signing commits with SSH key and having a SSH-compatible smartcard, I have to try this. It likely getting more common in the future doesnt hurt either and I have pgp-alt-wot which does about the same for PGP.

Where to find keys

Quick howto

I dont mean this to be used directly, only to be took inspiration from. See the first link in further reading.

mkdir -p ~/src/gitea.blesmrt.net/Mikaela
cd ~/src/gitea.blesmrt.net/Mikaela
git clone https://gitea.blesmrt.net/Mikaela/ssh-allowed_signers.git
git config --global gpg.ssh.allowedSignersFile ~/src/gitea.blesmrt.net/Mikaela/ssh-allowed_signers/allowed_signers

Git commands, such as git verify-commit --raw HEAD or git log --show-signature, should now recognised commits signed with keys I have allowed. In the last command its fine to remove --global to only affect the single repository you are on (while I havent tested this), should that repository be something only I am signing in or something I need to verify otherwise enough to list it here.

On the last command, git config turns it into absolute path, while manually edited .gitconfig can literally have the above. I wonder if the command would understand -- before the file, but not enough to actually try it 😃

Mirrors

Further reading

Forge support