secretsmgr: sign also for bare hostname

This commit is contained in:
Luke Granger-Brown 2023-05-26 02:53:52 +01:00
parent 33bd6faf1c
commit 429b4ce984

View file

@ -58,7 +58,7 @@ func hostname() string {
} }
func defaultPrincipals(hostname string) string { func defaultPrincipals(hostname string) string {
return fmt.Sprintf("%s.as205479.net,%s.int.as205479.net", hostname, hostname) return fmt.Sprintf("%s,%s.as205479.net,%s.int.as205479.net", hostname, hostname, hostname)
} }
func sshHostKeyPaths(ctx context.Context) ([]string, error) { func sshHostKeyPaths(ctx context.Context) ([]string, error) {