From 2b68c807166711a7cde6a349ed7e216fbdf41b06 Mon Sep 17 00:00:00 2001 From: Jason Yellick Date: Sun, 24 Feb 2019 20:53:26 -0500 Subject: [PATCH] FAB-14317 Add default policies to org3 Configtxgen was failing to print the org definition for org3 because it was missing the required policies for the org definition. This caused a failure in the CI test for adding an org. Because it will be needed in the future, this CR also adds the new lifecycle endorsement and general endorsement policies to the configtx.yamls as well. Change-Id: Ie53165231cf8afe6377b51a28625797b15ca78ec Signed-off-by: Jason Yellick --- first-network/configtx.yaml | 12 ++++++++++++ first-network/org3-artifacts/configtx.yaml | 14 ++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/first-network/configtx.yaml b/first-network/configtx.yaml index 918042cf97..028614d039 100644 --- a/first-network/configtx.yaml +++ b/first-network/configtx.yaml @@ -64,6 +64,9 @@ Organizations: Admins: Type: Signature Rule: "OR('Org1MSP.admin')" + Endorsement: + Type: Signature + Rule: "OR('Org1MSP.peer')" # leave this flag set to true. AnchorPeers: @@ -96,6 +99,9 @@ Organizations: Admins: Type: Signature Rule: "OR('Org2MSP.admin')" + Endorsement: + Type: Signature + Rule: "OR('Org2MSP.peer')" AnchorPeers: # AnchorPeers defines the location of peers which can be used @@ -190,6 +196,12 @@ Application: &ApplicationDefaults Admins: Type: ImplicitMeta Rule: "MAJORITY Admins" + LifecycleEndorsement: + Type: ImplicitMeta + Rule: "MAJORITY Endorsement" + Endorsement: + Type: ImplicitMeta + Rule: "MAJORITY Endorsement" Capabilities: <<: *ApplicationCapabilities diff --git a/first-network/org3-artifacts/configtx.yaml b/first-network/org3-artifacts/configtx.yaml index ab3c81a7af..3d528c582a 100644 --- a/first-network/org3-artifacts/configtx.yaml +++ b/first-network/org3-artifacts/configtx.yaml @@ -29,3 +29,17 @@ Organizations: # encoded in the genesis block in the Application section context - Host: peer0.org3.example.com Port: 11051 + + Policies: + Readers: + Type: Signature + Rule: "OR('Org3MSP.admin', 'Org3MSP.peer', 'Org3MSP.client')" + Writers: + Type: Signature + Rule: "OR('Org3MSP.admin', 'Org3MSP.client')" + Admins: + Type: Signature + Rule: "OR('Org3MSP.admin')" + Endorsement: + Type: Signature + Rule: "OR('Org3MSP.peer')"