Clevis blobs were bound by hand with scripts/clevis against two JSON specs without key thumbprints, nothing recorded which spec each host used, and the tang servers shared one hardcoded allow list. Added custom.tang.fleet to the tang module: each server's signing key thumbprint and URLs, and two client groups. home covers the hosts behind cyclone and pins only cyclone, warlock and stinger over the LAN. internet covers boron, cyclone, iceman, slider and viper, pinning cyclone, boron and li.pop by public address. Hosts enabling custom.tang now enable ogygia.clevis with their group's spec minus their own pin, and custom.services.tang derives ipAddressAllow from the sources of every group pinning that server. Removed scripts/clevis and pointed the boron and phoenix install steps at the generated spec. Test plan: - Evaluated the generated clevis specs and tang allow lists for every client and server - CI - Applied on stinger, it changed the file, then created a new boot generation and booted into it - all worked
8 lines
393 B
Markdown
8 lines
393 B
Markdown
# phoenix.st.neb.jakehillion.me
|
|
|
|
Additional installation step for Clevis/Tang:
|
|
|
|
$ echo -n $DISK_ENCRYPTION_PASSWORD | clevis encrypt sss "$(nix eval --json '/etc/nixos#nixosConfigurations."phoenix.st.neb.jakehillion.me".config.ogygia.clevis.spec')" >/mnt/data/disk_encryption.jwe
|
|
$ sudo chown root:root /mnt/data/disk_encryption.jwe
|
|
$ sudo chmod 0400 /mnt/data/disk_encryption.jwe
|