From 6bc7f9e74286f0c98783fb2d12fa7284820b6cd1 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Thu, 4 Apr 2024 21:48:45 +0200 Subject: [PATCH] git: use ssh commit signing --- .config/git/allowed_signers | 3 +++ .gitconfig | 9 ++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .config/git/allowed_signers diff --git a/.config/git/allowed_signers b/.config/git/allowed_signers new file mode 100644 index 0000000..42c52d6 --- /dev/null +++ b/.config/git/allowed_signers @@ -0,0 +1,3 @@ +dln@arity.se sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIFtd5SEEgKWzR6617GqxhSIi//4Afq7iRP0ny6fbwU7kAAAABHNzaDo= +daniel@arity.se sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIFtd5SEEgKWzR6617GqxhSIi//4Afq7iRP0ny6fbwU7kAAAABHNzaDo= +dln@shelman.io sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIFtd5SEEgKWzR6617GqxhSIi//4Afq7iRP0ny6fbwU7kAAAABHNzaDo= diff --git a/.gitconfig b/.gitconfig index 7c99bef..f6ad666 100644 --- a/.gitconfig +++ b/.gitconfig @@ -10,6 +10,7 @@ compression = 3 [user] useConfigOnly = true +signingKey = key::sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIFtd5SEEgKWzR6617GqxhSIi//4Afq7iRP0ny6fbwU7kAAAABHNzaDo= [column] ui = auto @@ -126,7 +127,13 @@ diffFilter = delta --color-only --features=interactive helper = store [commit] -gpgsign = false +gpgsign = true + +[gpg] +format = ssh + +[gpg "ssh"] +allowedSignersFile = ~/.config/git/allowed_signers [user] name = Daniel Lundin