change marker from secrets to public keys

This commit is contained in:
Philip Henning 2024-07-24 20:32:56 +02:00
parent cdf4a224a9
commit 9ec699d16e

View file

@ -103,8 +103,8 @@ gen-user-key() {
local keyname="${1}" local keyname="${1}"
local public_key="${2}" local public_key="${2}"
local working_directory="${3:-$(pwd)}" local working_directory="${3:-$(pwd)}"
local begin_marker='#-----BEGIN USER-SECRETS-----' local begin_marker='#-----BEGIN USER PUBLIC KEYS-----'
local end_marker='#------END USER-SECRETS------' local end_marker='#------END USER PUBLIC KEYS------'
local input_file="${working_directory}/secrets/secrets.nix" local input_file="${working_directory}/secrets/secrets.nix"
local userkey local userkey
@ -130,8 +130,8 @@ get-host-key() {
local target="${2}" local target="${2}"
local type="${3:-ssh-ed25519}" local type="${3:-ssh-ed25519}"
local working_directory="${4:-$(pwd)}" local working_directory="${4:-$(pwd)}"
local begin_marker='#-----BEGIN SYSTEM-SECRETS-----' local begin_marker='#-----BEGIN SYSTEM PUBLIC KEYS-----'
local end_marker='#------END SYSTEM-SECRETS------' local end_marker='#------END SYSTEM PUBLIC KEYS------'
local input_file="${working_directory}/secrets/secrets.nix" local input_file="${working_directory}/secrets/secrets.nix"
local hostkey local hostkey