Просмотр исходного кода

Fix protection level for host keys in cloudkms script.

Fixes #460
Mariano Cano 5 лет назад
Родитель
Сommit
51ac28656e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      cmd/step-cloudkms-init/main.go

+ 1 - 1
cmd/step-cloudkms-init/main.go

@@ -234,7 +234,7 @@ func createSSH(c *cloudkms.CloudKMS, project, location, keyRing string, protecti
 	resp, err = c.CreateKey(&apiv1.CreateKeyRequest{
 	resp, err = c.CreateKey(&apiv1.CreateKeyRequest{
 		Name:               parent + "/ssh-host-key",
 		Name:               parent + "/ssh-host-key",
 		SignatureAlgorithm: apiv1.ECDSAWithSHA256,
 		SignatureAlgorithm: apiv1.ECDSAWithSHA256,
-		ProtectionLevel:    apiv1.Software,
+		ProtectionLevel:    protectionLevel,
 	})
 	})
 	if err != nil {
 	if err != nil {
 		return err
 		return err