mirror of
https://github.com/youwen5/nixos.git
synced 2025-01-17 20:52:09 -08:00
feat: overhaul key management for agenix
This commit is contained in:
parent
39cbcd9c76
commit
4f510f7418
12 changed files with 48 additions and 96 deletions
13
reference/secrets/authorized_keys.nix
Normal file
13
reference/secrets/authorized_keys.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
rec {
|
||||
users = builtins.attrValues {
|
||||
youwen = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIwqDFdb/cs5K9gsgP0ogyuq5pv9hSxsyPnDcWc5wRKs";
|
||||
runner = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEEBFBqlbHn3gMuV0i8U48xctZUWXkmHsCK1O6LRpXpj";
|
||||
};
|
||||
|
||||
systems = builtins.attrValues {
|
||||
demeter = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIP4BRdoxPnmlhMD1kI7qXwVE//6h1XWUnkwpzDuJaAyC";
|
||||
gallium = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJzDKscmZIz7GF0nfKpnKHq63/fwzx2PXir0mUtRDOgu";
|
||||
};
|
||||
|
||||
all = users ++ systems;
|
||||
}
|
Binary file not shown.
|
@ -1,27 +1,12 @@
|
|||
age-encryption.org/v1
|
||||
-> ssh-rsa 4p6DaQ
|
||||
bQrpj5stBmy83Fk3M0sIno+WvcuNcc45JBUjlodontzHOig5ZduC26G8HXuegMVV
|
||||
RWgv2Go/S2Rpbyq+u+l8acDmWfNRQyhpi20d+Erei4pYIBP0NvRntdCUDqcJNlI5
|
||||
pFr6QbnUC6GI+zqobaRVJ3bg9DsNDb/HZHIkmZjLvO6uD2muAdLY9UdOQh0O/bKm
|
||||
1ZBAiBdtT3gZ2TWGk25XpCe+2If+aTsEHDBGOtjsofcaQgNG/+GEvpwSFopX80Nm
|
||||
IrfS9DB+bm0WHt6gh/5wRpyYteIv7+Bd/M3pa00OYXbWDjFBmulXGb8UQ4RNJiJz
|
||||
7ETRMHe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š½‹Q
¨
<0A>><3E>—
|
||||
Ñ‹¦Bóu<EFBFBD>æ[j˜"/†=±‚.€VÝnmx°¦†öƒÍŽÁ
|
||||
û:‚TTŸƒºjŸ<6A>"+<2B><>2ËÝׄiPM€O¸vÄ–)Î$\ëV¦Ñ0Ñ_Ƚ§€N暈^€‹Ó*Y(d“R;€-ûÍ™™Z'o\øY¨5-
|
||||
-> ssh-ed25519 ouRmYQ LcJhXf7RDzV69B18oyBQalIa7PuxKvgWf8WsQqS2QXQ
|
||||
FEAVwjc/S8FzBtBlVTNmnYiEBeqLJ1BgFlGGCCSKAFA
|
||||
-> ssh-ed25519 lpWvhA gPmCbveLyfreFJBiSiwaA0PUwaPoWR3oxj6bcDCR32c
|
||||
z9PqoqZB4oExgdGHFczW/GfFXCwUAdX2y/6+OrAsvW4
|
||||
-> ssh-ed25519 KcJLrw L0AgAq8eYHi4/DmkqpTa6zPachBjzALJDPmTw0ZvZkc
|
||||
OSeCrAA5cqyO+vldzWhtXqqbn/BMQRkvZMjB5hnDF2E
|
||||
-> ssh-ed25519 0Pd3rA VwOeP0xx3Dl1pFDeBnqLfMjuvHJo9JLNv1HWP4pYIyo
|
||||
u00jU8gTl5i9CcPEm8erkzVv8arX5FnMZS3hCYA1TPE
|
||||
--- kpytaizU3BFiS+wK5Pwb2t09GtV4EZSc0AZexkFxxRE
|
||||
X<EFBFBD>á(7!ñ@ž%¼Á{â\Dþ'¼–ì¼>åÑš<C391>صΒ
|
||||
)ËHk%h&¿%\$–èìñ=‹ÊQvìÀ($V/ò×´hËÕÕãOŠöüEÜîÛllb¸—® >݇ìO4ÆU(ä®Ù|᎑þÇ*ß·¦1M<>ÅcËÎ4ûs 9W“±T”ú&Ë.5©+»Ê²Ã—BIQ
|
|
@ -1,11 +1,7 @@
|
|||
let
|
||||
youwen = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCrIRHcvh0fxYNc0sukl8nSGRU8z1RjRmuc20iuk9TUqAxeew+0pSvY9lU4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a5ZuJhzevrtKfAxomURXnQ77MPCUtbo2PFHmcl3fUD+yS2GD/8a492rUlCG2d5FS7KfW3L9rQwTnNBqQMGUu1Uc6qz5LWLEF7yoBtdKKZ3Y4lyPP3/lAQPs5j0Jx+coBdySca3xrmmvMj4/aIQ== root@nixos";
|
||||
systems = [ demeter ];
|
||||
keys = import ../authorized_keys.nix;
|
||||
in
|
||||
{
|
||||
"nix_config_github_pat.age".publicKeys = users ++ systems;
|
||||
"github_ssh_priv_key.age".publicKeys = users ++ systems;
|
||||
"nix_config_github_pat.age".publicKeys = keys.all;
|
||||
"github_ssh_priv_key.age".publicKeys = keys.all;
|
||||
}
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -1,16 +1,13 @@
|
|||
let
|
||||
youwen = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCrIRHcvh0fxYNc0sukl8nSGRU8z1RjRmuc20iuk9TUqAxeew+0pSvY9lU4vshhrcGUe2OKIxgKJ76xdfGRw5ofmmd5Fr4If6tzWAWdE6Jr3J/w58YL6/ISOyRwjTserjWFIaO41y9OuLzf3UtzBF/1zexnGwq2lMJ7MAi0JNJ5O+umgrcnF1BDWyw7ymVkiQTruJ3LV2XgJDpOKQlFnVGKgYyMgVGeGYjiZO9Sj8edq1ZFeEH1jN5TnAdnqsiwhFgZpCrBxFFZKohuQLyH+QaOmBsdgSZwsg4Prndtxp5GTrknupPCgEWJ1rgvykEchYajeWQLxyeW/O/4iSST7VLKS7dgzUHZ5Dxf/QP1iCSeJqCIIJssuIslMK1vYmJZYk098ZDlLrFCLepQqy0YGvZe4OVP4BK4UNu5DKKLTpPNwDnyf1NSNTT2q2TsWXKWBDl1eurX9MBR24ZQEoP0gvcnTKr+2rheOTWJ5asDswEWphp5zQxBjztPGe55H0zjnqk= youwen@demeter";
|
||||
users = [ youwen ];
|
||||
|
||||
demeter = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDdcVbgUyQb+W3UjmYb3K9l9jkq/NkTSWAGFUJczJ07kEAg9nUUEfU6RGMCzCEbwWsVpNZysRfef6nxerQBcKiRz/bLUocFl/80ZoylQuxkWU8cvGdImFCtP76YKoVNwuHS0R31Qi90zQLnxs1oLmULSACH6Mw7+suYkVtH1prQdUHdx2bcOPqFk8Qpm8WuRNHxEbrFNuHNarHF3XHo/iIgJh8OeMbwE+MtoZCSfPMEnWGg4nKal3fQ3GO21wUyIZIZrSCMiYKzfvWrlLhd8rkKbGp+VRNe3m5q7k5p+pGSJMYHTRaGwOGY92L+GJOjjr/HrloINiEMC82zmUWctXQhK+4ni3ssPmOesEblfr9tXfwU0Xh0zNhqeljw/ptaZrM3k/yMW4h1DgI9BeBwcNcYqaHLwX6IqG5b8XxI+/JQniQmZIZM+kBx6GyZFrPxM84XWxhwjRKnn4oBU8kVn3RBlNwz3AFIjGpOh86Rd343X8Q6JbrMT/z17bL6StKXZfUFqgOWEs/JJEHT/DWKL2zF2ppqa5ZuJhzevrtKfAxomURXnQ77MPCUtbo2PFHmcl3fUD+yS2GD/8a492rUlCG2d5FS7KfW3L9rQwTnNBqQMGUu1Uc6qz5LWLEF7yoBtdKKZ3Y4lyPP3/lAQPs5j0Jx+coBdySca3xrmmvMj4/aIQ== root@nixos";
|
||||
systems = [ demeter ];
|
||||
keys = import ../../../secrets/authorized_keys.nix;
|
||||
inherit (keys) users;
|
||||
in
|
||||
{
|
||||
"youwenw_app_password.age".publicKeys = users ++ systems;
|
||||
"youwen_ucsb_client_id.age".publicKeys = users ++ systems;
|
||||
"youwen_ucsb_client_secret.age".publicKeys = users ++ systems;
|
||||
"tincan_app_password.age".publicKeys = users ++ systems;
|
||||
"github_cli_secret_config.age".publicKeys = users ++ systems;
|
||||
"github_ssh_priv_key.age".publicKeys = users ++ systems;
|
||||
"youwen_dev_ssh_priv_key.age".publicKeys = users ++ systems;
|
||||
"youwenw_app_password.age".publicKeys = users;
|
||||
"youwen_ucsb_client_id.age".publicKeys = users;
|
||||
"youwen_ucsb_client_secret.age".publicKeys = users;
|
||||
"tincan_app_password.age".publicKeys = users;
|
||||
"github_cli_secret_config.age".publicKeys = users;
|
||||
"github_ssh_priv_key.age".publicKeys = users;
|
||||
"youwen_dev_ssh_priv_key.age".publicKeys = users;
|
||||
}
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,26 +1,7 @@
|
|||
age-encryption.org/v1
|
||||
-> ssh-rsa 4p6DaQ
|
||||
p0c0dK2Vlgj+nPitibtXJuzRr3g5crae4CS/6OH18WQkqb8tzaWRw1ZXxS/7nxGD
|
||||
MCk8PcVEhgdysS1cwrgrycpUp02LMxUp1zTc8ML0Cemv93hnaVINgNGb9DWiGBXH
|
||||
v8//XUeNpBs4oGkC9RWb9HDgBlgzpTH0XYUwqDBRT9ltn5nki5YvxM4powiOf8IG
|
||||
SdUTE2hbRYhaQOEm5A41z4XQ+WAKlehwP2wn0yJDrW8rDXjSK5PEHyhONXJX1QuM
|
||||
XvS60Vz/vWqyVnUL5UdsW1XjXdQRu9kn8vzDUINeUeqXN2A89xVlYovH3n9dVzFs
|
||||
J2Bq6HhDAMl1TxbEIVcL/ufYjDK+tBkDa66SYtBV/FeIIAMGQ2Kbw+OwLqbjehZN
|
||||
p7/TGAlKc+HsMVm455l7rTOqSSfJHKik2iFBGhVXoSF+fZu3stOqdnHAk13164+s
|
||||
/9U/50xgyUNEMmVYdebvtBY2DCWqvgwIMXtm3RUItizyrc1gQLLy/3/mlDiWBPu+
|
||||
|
||||
-> ssh-rsa pv6HEg
|
||||
jpXa6cht5Ys/XSorbSdXKEahM4VgyseILKd2zIDQEF28tbQgpvzojVxctAjK7YFa
|
||||
ZVqmwdA+9vK1KEUg/qEfqqkaqo6MlnBgmUTe0VRMbvW45G6eN0/ky5hC3Mz5FUUn
|
||||
G1AxOTCkThSx1/4+JjcsvlUZsXrKe627grrgZu2891XsISTjBxu/+Iiaok9f8rvL
|
||||
q/JGkg2YL1DlcV4ZecEIHSNq5ysEp9had6SJz9e1/hSAWZVnTCyZc2gYn0ZUUKx5
|
||||
gRD/PQpdgIvG1SJcn3snDkiAyolYLzhJ6BQUfnVIX77Q6nkwooUXbYq2fOEUMZVp
|
||||
vHhpOrwBC1J+hgr+V6lGUtkui20Uqz6ouVKHxtcLEauxVVJPGiid0mSAsvFbcewx
|
||||
my5N9lYJYjMNw45kOAMgOragA246qM3ciVK2r6mq8ZPqY1t3UdmObMkrSysnn8Ks
|
||||
yNzB+MG3SHuLtS5q9Ex0epRq6ttKUCLWbfhcRsQ/+1WQSH98xTNR7q+6t/YLnnUj
|
||||
OZn09I3ZhLUk5hHraSdpuSB10f+SBqSroC54SChut/9VFk3kcolm4/rnldxwVvAg
|
||||
HZ6PGjEszP/qQzqsTivcxAmAZzQ2tJlpUWF6olmEnn8O9Qw/a4uOPhPj406OUJzI
|
||||
G6PV6OewbsjoJVKVAkC0BoM2Lg2P0pCilUa4MvlnwR4
|
||||
--- pQ2bkSw35IPQjKNrfnj8Uvvb3lVDc6IuJpcbLwFmI7A
|
||||
p©'W?ÿ¨F˜
|
||||
¶q8»KØ(XÛp@2ŽzàÞu8³r¬œ6þ~(IO@ª¶Öü9÷’qÆKW˃kpªIa‘À
|
||||
-> ssh-ed25519 ouRmYQ 1+lNK5IbFFikjqTNo3iMTnAigc4IuK9o5QLwTuC5RwQ
|
||||
h42XZCru60LAGVtDZ7W+flmLkz6PK43jWBi9/Lq92kQ
|
||||
-> ssh-ed25519 lpWvhA 4lgTQgn/iIdicT2wobAhiKR7axBe0MHZKqqeAsN0Aww
|
||||
+9hwc6P68HkzVWHtlHs7Y7WDSWSesolxIGSheFfl4zI
|
||||
--- pmooYxJ75vGwgekLA0gwndejezn6NW8kpuxZTfX7Kzk
|
||||
ùŸOˆ^¢à9Ó9ü;8Ñ¢Ž¯pz¾73ººNóR†Bs´™4#ÈÖ!táÍÑóÎÈG!ü¯›Gg<1D>ÅWŠ&ŠRs
|
|
@ -1,27 +1,7 @@
|
|||
age-encryption.org/v1
|
||||
-> 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1gxYs7zlg2oeoY6nw9Mr
|
||||
+Yo1cya3bg2DmiIl03VuzU7XDxDQF1/MLDvBfy5fpEapMJC9Rj+scSI75SHSiGOw
|
||||
pOQWmN7AkzvLmB7c7oblvShGQ8GULmtTTd/nPe7u/sJcWucVWEOu8EzOnjnWuF1N
|
||||
M7uhn+sOXSuJPhrAFq68JpWq7Bu+rWvLnAsXYtwRfrDprFU/On+NT4YiFop314hg
|
||||
/IuPprAkYS5okHbnNMri3PNHvfsusIXFDJELkkT3o6k
|
||||
--- 6BSSYjyfkhihYDsLHPnwg32tVau6KY6MQ8SIcf6LP3g
|
||||
ôc–D%‡Á¬ù4@—=Fsö
|
||||
.‰]®x![ŸY´`}1†Í1|2¨
|
||||
²žpÛN¨
|
||||
-> ssh-ed25519 ouRmYQ HA4fOUuNkgvdhayKRgFBN5Onx8JaiviH/B5dyhWkYjo
|
||||
JbRU9MDFgWQKRodFBcgQhw9ZgWVsGlFybC7QkmPGDgg
|
||||
-> ssh-ed25519 lpWvhA RzVnFcTiWPXIOYodeaya9SonrgcosDvEQUWONIQd+GM
|
||||
vebx1nyZwN1/ZoQ/y3pQ4idOzmAFE+E1y0v7ulEw1b0
|
||||
--- ebSru9WM9TLwhc8ezWE/vfn5kMBxlJm+ny2ylAn148g
|
||||
]ü/=³_’#†,ު¼ààΖu VWš—=2L:Vo,çÏ$)Ô´Şqúzò{İzr£j
|
Loading…
Reference in a new issue