From 187104e1d27483089a1dc3e9c49380373d16bf85 Mon Sep 17 00:00:00 2001 From: Greg Haskins Date: Mon, 8 May 2017 08:48:34 -0400 Subject: [PATCH] [FAB-3722] /examples/cluster: Use /var We were allowing the CA to write persistent files to our /etc volume mount. This is both poor-form as well as problematic since it may cause root-owned files to cause problems with removing the container. Fixes FAB-3722 Change-Id: Ibda7c0e09c34517711d5870f42f9aebfffdd0549 Signed-off-by: Greg Haskins --- examples/cluster/config/fabric-ca-server-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/cluster/config/fabric-ca-server-config.yaml b/examples/cluster/config/fabric-ca-server-config.yaml index 359adbd7e55..990149b651f 100644 --- a/examples/cluster/config/fabric-ca-server-config.yaml +++ b/examples/cluster/config/fabric-ca-server-config.yaml @@ -122,7 +122,7 @@ registry: ############################################################################# db: type: sqlite3 - datasource: /var/hyperledger/fabric-ca-server.db + datasource: /var/hyperledger/fabric-ca-server/state.db tls: enabled: false certfiles: @@ -206,7 +206,7 @@ bccsp: security: 256 filekeystore: # The directory used for the software file-based keystore - keystore: keystore + keystore: /var/hyperledger/fabric-ca-server/keystore ############################################################################# # The fabric-ca-server init and start commands support the following two