mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-04-20 07:25:51 -04:00
make key path a constant
This commit is contained in:
parent
5053c4581d
commit
6ec18eb7ca
@ -285,7 +285,7 @@ func (c *JoinClient) startNodeAndJoin(ticket *joinproto.IssueJoinTicketResponse,
|
||||
}
|
||||
|
||||
// TODO(miampf): Make path a constant
|
||||
if err := c.fileHandler.Write("/run/ssh/ssh_ca.pub", ssh.MarshalAuthorizedKey(ca.PublicKey()), file.OptMkdirAll); err != nil {
|
||||
if err := c.fileHandler.Write(constants.SSHCAKeyPath, ssh.MarshalAuthorizedKey(ca.PublicKey()), file.OptMkdirAll); err != nil {
|
||||
return fmt.Errorf("writing ca key: %w", err)
|
||||
}
|
||||
|
||||
|
@ -44,6 +44,8 @@ const (
|
||||
CLIDebugLogFile = "constellation-debug.log"
|
||||
// SSHCAKeySuffix is the suffix used together with the DEKPrefix to derive an SSH CA key for emergency ssh access.
|
||||
SSHCAKeySuffix = "ca_emergency_ssh"
|
||||
// SSHCAKeyPath is the path to the emergency SSH CA key on the node.
|
||||
SSHCAKeyPath = "/run/ssh/ssh_ca.pub"
|
||||
|
||||
//
|
||||
// Ports.
|
||||
|
Loading…
x
Reference in New Issue
Block a user