github.com/simranvc/fabric-ca@v0.0.0-20191030094829-acc364294dde/configtx.yaml (about) 1 2 Organizations: 3 - &Orderer 4 Name: Orderer 5 ID: org0MSP 6 MSPDir: /home/simran/go/src/github.com/hyperledger/fabric-ca/tmp2-msp/org0 7 Policies: 8 Readers: 9 Type: Signature 10 Rule: "OR('org0MSP.member')" 11 12 Writers: 13 Type: Signature 14 Rule: "OR('org0MSP.member')" 15 16 Admins: 17 Type: Signature 18 Rule: "OR('org0MSP.admin')" 19 - &Org1 20 Name: Org1 21 ID: org1MSP 22 MSPDir: /home/simran/go/src/github.com/hyperledger/fabric-ca/tmp2-msp/org1 23 Policies: 24 Readers: 25 Type: Signature 26 Rule: "OR('org1MSP.member')" 27 28 Writers: 29 Type: Signature 30 Rule: "OR('org1MSP.member')" 31 32 Admins: 33 Type: Signature 34 Rule: "OR('org1MSP.admin')" 35 36 AnchorPeers: 37 - Host: peer1-org1 38 Port: 7051 39 40 41 Capabilities: 42 Channel: &ChannelCapabilities 43 V1_4_2: true 44 V1_3: false 45 V1_1: false 46 Application: &ApplicationCapabilities 47 V1_4_2: true 48 V1_3: false 49 V1_2: false 50 V1_1: false 51 Orderer: &OrdererCapabilities 52 V1_4_2: true 53 V1_1: false 54 55 Application: &ApplicationDefaults 56 ACLs: &ACLsDefault 57 58 lscc/ChaincodeExists: /Channel/Application/Readers 59 60 # ACL policy for lscc's "getdepspec" function 61 lscc/GetDeploymentSpec: /Channel/Application/Readers 62 63 # ACL policy for lscc's "getccdata" function 64 lscc/GetChaincodeData: /Channel/Application/Readers 65 66 # ACL Policy for lscc's "getchaincodes" function 67 lscc/GetInstantiatedChaincodes: /Channel/Application/Readers 68 69 #---Query System Chaincode (qscc) function to policy mapping for access control---# 70 71 # ACL policy for qscc's "GetChainInfo" function 72 qscc/GetChainInfo: /Channel/Application/Readers 73 74 # ACL policy for qscc's "GetBlockByNumber" function 75 qscc/GetBlockByNumber: /Channel/Application/Readers 76 77 # ACL policy for qscc's "GetBlockByHash" function 78 qscc/GetBlockByHash: /Channel/Application/Readers 79 80 # ACL policy for qscc's "GetTransactionByID" function 81 qscc/GetTransactionByID: /Channel/Application/Readers 82 83 # ACL policy for qscc's "GetBlockByTxID" function 84 qscc/GetBlockByTxID: /Channel/Application/Readers 85 86 #---Configuration System Chaincode (cscc) function to policy mapping for access control---# 87 88 # ACL policy for cscc's "GetConfigBlock" function 89 cscc/GetConfigBlock: /Channel/Application/Readers 90 91 # ACL policy for cscc's "GetConfigTree" function 92 cscc/GetConfigTree: /Channel/Application/Readers 93 94 # ACL policy for cscc's "SimulateConfigTreeUpdate" function 95 cscc/SimulateConfigTreeUpdate: /Channel/Application/Readers 96 97 #---Miscellanesous peer function to policy mapping for access control---# 98 99 # ACL policy for invoking chaincodes on peer 100 peer/Propose: /Channel/Application/Writers 101 102 # ACL policy for chaincode to chaincode invocation 103 peer/ChaincodeToChaincode: /Channel/Application/Readers 104 105 #---Events resource to policy mapping for access control###---# 106 107 # ACL policy for sending block events 108 event/Block: /Channel/Application/Readers 109 110 # ACL policy for sending filtered block events 111 event/FilteredBlock: /Channel/Application/Readers 112 Organizations: 113 Policies: 114 Readers: 115 Type: ImplicitMeta 116 Rule: "ANY Readers" 117 Writers: 118 Type: ImplicitMeta 119 Rule: "ANY Writers" 120 Admins: 121 Type: ImplicitMeta 122 Rule: "MAJORITY Admins" 123 Capabilities: 124 <<: *ApplicationCapabilities 125 Orderer: &OrdererDefaults 126 OrdererType: solo 127 Addresses: 128 - orderer0.example.com:7050 129 # - 172.23.155.127:7050 130 # - 172.23.155.97:7050 131 # - 172.23.155.82:7050 132 # - 172.23.155.82:8050 133 BatchTimeout: 2s 134 BatchSize: 135 MaxMessageCount: 500 136 AbsoluteMaxBytes: 10 MB 137 PreferredMaxBytes: 2 MB 138 MaxChannels: 0 139 # EtcdRaft: 140 # Consenters: 141 # - Host: 172.23.155.127 142 # Port: 7050 143 # ClientTLSCert: ./hyperledger/org0/orderer1/tls-msp/signcerts/cert.pem 144 # ServerTLSCert: ./hyperledger/org0/orderer1/tls-msp/signcerts/cert.pem 145 # - Host: 172.23.155.128 146 # Port: 7050 147 # ClientTLSCert: ./hyperledger/org0/orderer2/tls-msp/signcerts/cert.pem 148 # ServerTLSCert: ./hyperledger/org0/orderer2/tls-msp/signcerts/cert.pem 149 # - Host: 172.23.155.97 150 # Port: 7050 151 # ClientTLSCert: ./hyperledger/org0/orderer3/tls-msp/signcerts/cert.pem 152 # ServerTLSCert: ./hyperledger/org0/orderer3/tls-msp/signcerts/cert.pem 153 # - Host: 172.23.155.82 154 # Port: 7050 155 # ClientTLSCert: ./hyperledger/org0/orderer4/tls-msp/signcerts/cert.pem 156 # ServerTLSCert: ./hyperledger/org0/orderer4/tls-msp/signcerts/cert.pem 157 # - Host: 172.23.155.82 158 # Port: 8050 159 # ClientTLSCert: ./hyperledger/org0/orderer5/tls-msp/signcerts/cert.pem 160 # ServerTLSCert: ./hyperledger/org0/orderer5/tls-msp/signcerts/cert.pem 161 # Options to be specified for all the etcd/raft nodes. The values here 162 # are the defaults for all new channels and can be modified on a 163 # per-channel basis via configuration updates. 164 # Options: 165 # # TickInterval is the time interval between two Node.Tick invocations. 166 # TickInterval: 500ms 167 168 # # ElectionTick is the number of Node.Tick invocations that must pass 169 # # between elections. That is, if a follower does not receive any 170 # # message from the leader of current term before ElectionTick has 171 # # elapsed, it will become candidate and start an election. 172 # # ElectionTick must be greater than HeartbeatTick. 173 # ElectionTick: 10 174 175 # # HeartbeatTick is the number of Node.Tick invocations that must 176 # # pass between heartbeats. That is, a leader sends heartbeat 177 # # messages to maintain its leadership every HeartbeatTick ticks. 178 # HeartbeatTick: 1 179 180 # # MaxInflightBlocks limits the max number of in-flight append messages 181 # # during optimistic replication phase. 182 # MaxInflightBlocks: 5 183 184 # # SnapshotIntervalSize defines number of bytes per which a snapshot is taken 185 # SnapshotIntervalSize: 20 MB 186 Organizations: 187 Policies: 188 Readers: 189 Type: ImplicitMeta 190 Rule: "ANY Readers" 191 Writers: 192 Type: ImplicitMeta 193 Rule: "ANY Writers" 194 Admins: 195 Type: ImplicitMeta 196 Rule: "MAJORITY Admins" 197 BlockValidation: 198 Type: ImplicitMeta 199 Rule: "ANY Writers" 200 Capabilities: 201 <<: *OrdererCapabilities 202 203 Channel: &ChannelDefaults 204 Policies: 205 Readers: 206 Type: ImplicitMeta 207 Rule: "ANY Readers" 208 Writers: 209 Type: ImplicitMeta 210 Rule: "ANY Writers" 211 Admins: 212 Type: ImplicitMeta 213 Rule: "MAJORITY Admins" 214 215 216 Capabilities: 217 <<: *ChannelCapabilities 218 219 Profiles: 220 221 LegalDescriptionGenesis: 222 <<: *ChannelDefaults 223 Orderer: 224 <<: *OrdererDefaults 225 Organizations: 226 - *Orderer 227 Consortiums: 228 LegalDescriptionConsortium: 229 Organizations: 230 - *Org1 231 232 LegalDescriptionChannel: 233 Consortium: LegalDescriptionConsortium 234 Application: 235 <<: *ApplicationDefaults 236 Organizations: 237 - *Org1 238