mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-04-20 07:25:51 -04:00
use suffix for emergency ssh DEK key
This commit is contained in:
parent
2a7408bc16
commit
9363206662
@ -72,7 +72,7 @@ func runSSH(cmd *cobra.Command, _ []string) error {
|
||||
if err != nil {
|
||||
return fmt.Errorf("Failed to set up key management service: %s", err)
|
||||
}
|
||||
key, err := kms.GetDEK(cmd.Context(), crypto.DEKPrefix, 256)
|
||||
key, err := kms.GetDEK(cmd.Context(), crypto.DEKPrefix+constants.SSHCAKeySuffix, 256)
|
||||
if err != nil {
|
||||
return fmt.Errorf("Failed to retrieve key from key management service: %s", err)
|
||||
}
|
||||
|
@ -42,6 +42,8 @@ const (
|
||||
DefaultWorkerGroupName = "worker_default"
|
||||
// CLIDebugLogFile is the name of the debug log file for constellation init/constellation apply.
|
||||
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"
|
||||
|
||||
//
|
||||
// Ports.
|
||||
|
Loading…
x
Reference in New Issue
Block a user