Configure clustered external key servers in ONTAP
Beginning with ONTAP 9.11.1, you can configure connectivity to clustered external key management servers on an SVM. With clustered key servers, you can designate primary and secondary key servers on an SVM. When registering or retrieving keys, ONTAP first attempts to access the primary key server before sequentially attempting to access secondary servers until the operation completes successfully.
You can use external key servers for NetApp Storage Encryption (NSE), NetApp Volume Encryption (NVE), and NetApp Aggregate Encryption (NAE) keys. An SVM can support up to four primary external KMIP servers. Each primary server can support up to three secondary key servers.
-
This process only supports key servers that use KMIP. For a list of supported key servers, check the NetApp Interoperability Matrix Tool.
-
All nodes in the cluster must be running ONTAP 9.11.1 or later.
-
The order of servers listed in the
-secondary-key-serversparameter reflects the access order of the external key management (KMIP) servers.
Create a clustered key server
The configuration procedure depends on whether or not you have configured a primary key server.
-
Confirm that no key management has been enabled for the cluster (admin SVM):
security key-manager external show -vserver <svm_name>If the SVM already has the maximum of four primary key servers enabled, you must remove one of the existing primary key servers before adding a new one.
-
Enable the primary key manager:
security key-manager external enable -vserver <svm_name> -key-servers <primary_key_server_ip> -client-cert <client_cert_name> -server-ca-certs <server_ca_cert_names>-
If you don't specify a port in the
-key-serversparameter, the default port 5696 is used.If you are running the security key-manager external enablecommand for the admin SVM in a MetroCluster configuration, you must run the command on both clusters. If you are running the command for an individual data SVM, you don't need to run the command on both clusters. NetApp strongly recommends using the same key servers on both clusters.
-
-
Modify the primary key server to add secondary key servers. The
-secondary-key-serversparameter accepts a comma-separated list of up to three key servers:security key-manager external modify-server -vserver <svm_name> -key-servers <primary_key_server> -secondary-key-servers <list_of_key_servers>-
Do not include a port number for secondary key servers in the
-secondary-key-serversparameter. It uses the same port number as the primary key server.If you are running the security key-manager externalcommand for the admin SVM in a MetroCluster configuration, you must run the command on both clusters. If you are running the command for an individual data SVM, you don't need to run the command on both clusters. NetApp strongly recommends using the same key servers on both clusters.
-
-
Modify the primary key server to add secondary key servers. The
-secondary-key-serversparameter accepts a comma-separated list of up to three key servers:security key-manager external modify-server -vserver <svm_name> -key-servers <primary_key_server> -secondary-key-servers <list_of_key_servers>-
Do not include a port number for secondary key servers in the
-secondary-key-serversparameter. It uses the same port number as the primary key servers.If you are running the security key-manager external modify-servercommand for the admin SVM in a MetroCluster configuration, you must run the command on both clusters. If you are running the command for an individual data SVM, you don't need to run the command on both clusters. NetApp strongly recommends using the same key servers on both clusters.
-
For more information about secondary key servers, see Modify secondary key servers.
Modify clustered key servers
You can modify clustered external key servers by adding and removing secondary key servers, changing the access order of secondary key servers, or by changing the designation (primary or secondary) of particular key servers. If you modify clustered external key servers in a MetroCluster configuration, NetApp strongly recommends using the same key servers on both clusters.
Modify secondary key servers
Use the -secondary-key-servers parameter of the security key-manager external modify-server command to manage secondary key servers . The -secondary-key-servers parameter accepts a comma-separated list. The specified order of the secondary key servers in the list determines the access sequence for the secondary key servers. You can modify the access order by running the command security key-manager external modify-server with the secondary key servers entered in a different sequence. Do not include a port number for secondary key servers.
|
|
If you are running the security key-manager external modify-server command for the admin SVM in a MetroCluster configuration, you must run the command on both clusters. If you are running the command for an individual data SVM, you don't need to run the command on both clusters.
|
To remove a secondary key server, include the key servers you want to keep in the -secondary-key-servers parameter and omit the one you want to remove. To remove all secondary key servers, use the argument -, signifying none.
Convert primary and secondary key servers
You can use the following steps to change the designation (primary or secondary) of particular key servers.
-
Remove the primary key server from the SVM:
security key-manager external remove-serversIf you are running the security key-manager external remove-serverscommand for the admin SVM in a MetroCluster configuration, you must run the command on both clusters. If you are running the command for an individual data SVM, you don't need to run the command on both clusters. -
Perform the Create a clustered key server procedure using the former primary key server as a secondary key server.
-
Remove the secondary key server from its existing primary key server:
security key-manager external modify-server -secondary-key-servers-
If you are running the
security key-manager external modify-server -secondary-key-serverscommand for the admin SVM in a MetroCluster configuration, you must run the command on both clusters. If you are running the command for an individual data SVM, you don't need to run the command on both clusters. -
If you convert a secondary key server to a primary key server while removing an existing key server, attempting to add a new key server before completing the removal and conversion can result in the the duplication of keys.
-
-
Perform the Create a clustered key server procedure using the former secondary key server as the primary key server of the new clustered key server.
Refer to Modify secondary key servers for more information.
-
Learn more about
security key-manager externalin the ONTAP command reference