mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-26 08:45:19 -04:00
use suffix for emergency ssh DEK key
This commit is contained in:
parent
2a7408bc16
commit
9363206662
2 changed files with 3 additions and 1 deletions
|
@ -72,7 +72,7 @@ func runSSH(cmd *cobra.Command, _ []string) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("Failed to set up key management service: %s", err)
|
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 {
|
if err != nil {
|
||||||
return fmt.Errorf("Failed to retrieve key from key management service: %s", err)
|
return fmt.Errorf("Failed to retrieve key from key management service: %s", err)
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,6 +42,8 @@ const (
|
||||||
DefaultWorkerGroupName = "worker_default"
|
DefaultWorkerGroupName = "worker_default"
|
||||||
// CLIDebugLogFile is the name of the debug log file for constellation init/constellation apply.
|
// CLIDebugLogFile is the name of the debug log file for constellation init/constellation apply.
|
||||||
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 = "ca_emergency_ssh"
|
||||||
|
|
||||||
//
|
//
|
||||||
// Ports.
|
// Ports.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue