Przeglądaj źródła

Fix protection level for host keys in cloudkms script.

Fixes #460
Mariano Cano 5 lat temu
rodzic
commit
51ac28656e
1 zmienionych plików z 1 dodań i 1 usunięć
  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{
 		Name:               parent + "/ssh-host-key",
 		SignatureAlgorithm: apiv1.ECDSAWithSHA256,
-		ProtectionLevel:    apiv1.Software,
+		ProtectionLevel:    protectionLevel,
 	})
 	if err != nil {
 		return err