mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-23 07:20:37 -04:00
make key path a constant
This commit is contained in:
parent
5053c4581d
commit
6ec18eb7ca
2 changed files with 3 additions and 1 deletions
|
@ -285,7 +285,7 @@ func (c *JoinClient) startNodeAndJoin(ticket *joinproto.IssueJoinTicketResponse,
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO(miampf): Make path a constant
|
// 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)
|
return fmt.Errorf("writing ca key: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -44,6 +44,8 @@ const (
|
||||||
CLIDebugLogFile = "constellation-debug.log"
|
CLIDebugLogFile = "constellation-debug.log"
|
||||||
// SSHCAKeySuffix is the suffix used together with the DEKPrefix to derive an SSH CA key for emergency ssh access.
|
// SSHCAKeySuffix is the suffix used together with the DEKPrefix to derive an SSH CA key for emergency ssh access.
|
||||||
SSHCAKeySuffix = "ca_emergency_ssh"
|
SSHCAKeySuffix = "ca_emergency_ssh"
|
||||||
|
// SSHCAKeyPath is the path to the emergency SSH CA key on the node.
|
||||||
|
SSHCAKeyPath = "/run/ssh/ssh_ca.pub"
|
||||||
|
|
||||||
//
|
//
|
||||||
// Ports.
|
// Ports.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue