encrypt secrets with a new key to be able to edit them

pull/2/head
Tudor Roman 2023-06-04 22:40:48 +02:00
parent d3e983e0d2
commit 33780f2380
Signed by: tudor
SSH Key Fingerprint: SHA256:3CwS9plgXBecpXImPGxDIaSktUXBejbV/zerZMqzzBk
5 changed files with 8 additions and 3 deletions

1
id_ed25519_agenix.pub Normal file
View File

@ -0,0 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIP3y83nGy7I46h7sSQ1yAFG/67I0TY/tYOMqHq5C8j3q

View File

@ -1,6 +1,8 @@
let
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOx1R1yElHBnKKcH3tPuuTZsRjHzWK8ztquIGvYxjY8f";
agenixPubkey = ../../id_ed25519_agenix.pub;
keys = [ key (builtins.readFile agenixPubkey) ];
in
{
"tudor-password.age".publicKeys = [ key ];
"tudor-password.age".publicKeys = keys;
}

Binary file not shown.

View File

@ -1,6 +1,8 @@
let
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFgsi5y8bJn4smX6xnDiQbGzSQGlZ6SrdCdf6hIMhCSF";
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOx1R1yElHBnKKcH3tPuuTZsRjHzWK8ztquIGvYxjY8f";
agenixPubkey = ../../id_ed25519_agenix.pub;
keys = [ key (builtins.readFile agenixPubkey) ];
in
{
"tudor-password.age".publicKeys = [ key ];
"tudor-password.age".publicKeys = keys;
}

Binary file not shown.