From fcb43446d8acf1976c129d18899cdc47e3c663e5 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Mon, 30 Jan 2023 22:00:54 -0800 Subject: [PATCH] add git-ssh-allowed-signers --- git-ssh-allowed-signers | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 git-ssh-allowed-signers diff --git a/git-ssh-allowed-signers b/git-ssh-allowed-signers new file mode 100644 index 0000000..3b12624 --- /dev/null +++ b/git-ssh-allowed-signers @@ -0,0 +1,14 @@ +# list of allowed signers for use with signing git commits using ssh keys. +# links explaining how to set it up (GitLab *not* necessary to use): +# https://docs.gitlab.com/ee/user/project/repository/ssh_signed_commits/#configure-git-to-sign-commits-with-your-ssh-key +# https://docs.gitlab.com/ee/user/project/repository/ssh_signed_commits/#verify-commits-locally +# +# add to your git config, replacing the path with the path to this file: +# git config gpg.ssh.allowedSignersFile "$(realpath ../path/to/utils.git/git-ssh-allowed-signers)" +# +# file format: +# https://man7.org/linux/man-pages/man1/ssh-keygen.1.html#ALLOWED_SIGNERS +# +# add your ssh public keys one per line, don't forget namespaces="git" +# +programmerjake@gmail.com namespaces="git" ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6PKJf11y3Zy092zLoJ4g0WVTQ8/e4cPki0XN8+iDwlaVL9klb3sB9PZYakD4AZyPQ5MxWVt1QnR2qXgnQ4laGlyw5ho1BM7zBpbUD08aCfTiBO1Fms52ci3+2sTDkStHJ62PaPa4IuezTBoHkR1M1FUVcOUWAAIpH7BHoP4Ayb0uUgAf8AxZtOcEZa+w0EwDOB0DRPFYWE2vu2q/aJHLvQHwGikeg5bi+o0odam+lkg0ShedBzSWqBP/Mxn65p+xQ2q0FViRZWBpyOhEN4hi2kF/2L/yinbQVuhIU5C1VVb5cjqClD0YA+Ln/DPhXcvw2hzSKxZKlDHKa7Gv3os/H jacob@jacob-desktop -- 2.30.2