authentik yay
This commit is contained in:
parent
d3a93fd115
commit
f2fcbfb679
34 changed files with 612 additions and 363 deletions
10
bin/import-server-gpg-pubkeys
Executable file
10
bin/import-server-gpg-pubkeys
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
HOSTNAMES=$(nix eval .#nixosConfigurations.ds9._module.specialArgs.instanceConfigs --json | jq '.[].publicHostname | select(.)' -r)
|
||||
|
||||
for h in $HOSTNAMES; do
|
||||
echo "[+] importing key from $h"
|
||||
ssh -t $h "sudo nix-shell -p ssh-to-pgp --run \"ssh-to-pgp -i /etc/ssh/ssh_host_rsa_key -email root@$h\"" | gpg --import
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue