File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ const logger = require('../utilities/logger');
77const inMemory = require ( './in_memory/backend' ) . backend ;
88const file = require ( './file/backend' ) ;
99const KMIPClient = require ( 'arsenal' ) . network . kmipClient ;
10+ const KMIPClusterClient = require ( 'arsenal' ) . network . kmipClusterClient ;
1011const { KmsAWSClient } = require ( 'arsenal' ) . network ;
1112const Common = require ( './common' ) ;
1213const vault = require ( '../auth/vault' ) ;
@@ -48,7 +49,11 @@ if (config.backends.kms === 'mem') {
4849 if ( ! kmipConfig . kmip ) {
4950 throw new Error ( 'KMIP KMS driver configuration is missing.' ) ;
5051 }
51- client = new KMIPClient ( kmipConfig ) ;
52+ if ( Array . isArray ( config . kmip . transport ) ) {
53+ client = new KMIPClusterClient ( kmipConfig ) ;
54+ } else {
55+ client = new KMIPClient ( kmipConfig ) ;
56+ }
5257 implName = 'kmip' ;
5358} else if ( config . backends . kms === 'aws' ) {
5459 const awsConfig = { kmsAWS : config . kmsAWS } ;
You can’t perform that action at this time.
0 commit comments