@@ -79,17 +79,26 @@ Profiles:
79
79
<< : *OrdererDefaults
80
80
Organizations :
81
81
- << : *SampleOrg
82
- AdminPrincipal : Role.MEMBER
82
+ Policies :
83
+ Admins :
84
+ Type : Signature
85
+ Rule : " OR('SampleOrg.member')"
83
86
Application :
84
87
<< : *ApplicationDefaults
85
88
Organizations :
86
89
- << : *SampleOrg
87
- AdminPrincipal : Role.MEMBER
90
+ Policies :
91
+ Admins :
92
+ Type : Signature
93
+ Rule : " OR('SampleOrg.member')"
88
94
Consortiums :
89
95
SampleConsortium :
90
96
Organizations :
91
97
- << : *SampleOrg
92
- AdminPrincipal : Role.MEMBER
98
+ Policies :
99
+ Admins :
100
+ Type : Signature
101
+ Rule : " OR('SampleOrg.member')"
93
102
94
103
# SampleDevModeKafka defines a configuration that differs from the
95
104
# SampleDevModeSolo one only in that it uses the Kafka-based orderer.
@@ -100,17 +109,26 @@ Profiles:
100
109
OrdererType : kafka
101
110
Organizations :
102
111
- << : *SampleOrg
103
- AdminPrincipal : Role.MEMBER
112
+ Policies :
113
+ Admins :
114
+ Type : Signature
115
+ Rule : " OR('SampleOrg.member')"
104
116
Application :
105
117
<< : *ApplicationDefaults
106
118
Organizations :
107
119
- << : *SampleOrg
108
- AdminPrincipal : Role.MEMBER
120
+ Policies :
121
+ Admins :
122
+ Type : Signature
123
+ Rule : " OR('SampleOrg.member')"
109
124
Consortiums :
110
125
SampleConsortium :
111
126
Organizations :
112
127
- << : *SampleOrg
113
- AdminPrincipal : Role.MEMBER
128
+ Policies :
129
+ Admins :
130
+ Type : Signature
131
+ Rule : " OR('SampleOrg.member')"
114
132
115
133
# SampleSingleMSPChannel defines a channel with only the sample org as a
116
134
# member. It is designed to be used in conjunction with SampleSingleMSPSolo
@@ -149,11 +167,25 @@ Organizations:
149
167
# MSPDir is the filesystem path which contains the MSP configuration.
150
168
MSPDir : msp
151
169
152
- # AdminPrincipal dictates the type of principal used for an
153
- # organization's Admins policy. Today, only the values of Role.ADMIN and
154
- # Role.MEMBER are accepted, which indicates a principal of role type
155
- # ADMIN and role type MEMBER respectively.
156
- AdminPrincipal : Role.ADMIN
170
+ # Policies defines the set of policies at this level of the config tree
171
+ # For organization policies, their canonical path is usually
172
+ # /Channel/<Application|Orderer>/<OrgName>/<PolicyName>
173
+ Policies :
174
+ Readers :
175
+ Type : Signature
176
+ Rule : " OR('SampleOrg.member')"
177
+ # If your MSP is configured with the new NodeOUs, you might
178
+ # want to use a more specific rule like the following:
179
+ # Rule: "OR('SampleOrg.admin', 'SampleOrg.peer')"
180
+ Writers :
181
+ Type : Signature
182
+ Rule : " OR('SampleOrg.member')"
183
+ # If your MSP is configured with the new NodeOUs, you might
184
+ # want to use a more specific rule like the following:
185
+ # Rule: "OR('SampleOrg.admin', 'SampleOrg.client'')"
186
+ Admins :
187
+ Type : Signature
188
+ Rule : " OR('SampleOrg.admin')"
157
189
158
190
# AnchorPeers defines the location of peers which can be used for
159
191
# cross-org gossip communication. Note, this value is only encoded in
@@ -171,6 +203,23 @@ Organizations:
171
203
#
172
204
# ###############################################################################
173
205
Channel : &ChannelDefaults
206
+ # Policies defines the set of policies at this level of the config tree
207
+ # For Channel policies, their canonical path is
208
+ # /Channel/<PolicyName>
209
+ Policies :
210
+ # Who may invoke the 'Deliver' API
211
+ Readers :
212
+ Type : ImplicitMeta
213
+ Rule : " ANY Readers"
214
+ # Who may invoke the 'Broadcast' API
215
+ Writers :
216
+ Type : ImplicitMeta
217
+ Rule : " ANY Writers"
218
+ # By default, who may modify elements at this config level
219
+ Admins :
220
+ Type : ImplicitMeta
221
+ Rule : " MAJORITY Admins"
222
+
174
223
175
224
# Capabilities describes the channel level capabilities, see the
176
225
# dedicated Capabilities section elsewhere in this file for a full
@@ -238,13 +287,31 @@ Orderer: &OrdererDefaults
238
287
# network.
239
288
Organizations :
240
289
290
+ # Policies defines the set of policies at this level of the config tree
291
+ # For Orderer policies, their canonical path is
292
+ # /Channel/Orderer/<PolicyName>
293
+ Policies :
294
+ Readers :
295
+ Type : ImplicitMeta
296
+ Rule : " ANY Readers"
297
+ Writers :
298
+ Type : ImplicitMeta
299
+ Rule : " ANY Writers"
300
+ Admins :
301
+ Type : ImplicitMeta
302
+ Rule : " MAJORITY Admins"
303
+ # BlockValidation specifies what signatures must be included in the block
304
+ # from the orderer for the peer to validate it.
305
+ BlockValidation :
306
+ Type : ImplicitMeta
307
+ Rule : " ANY Writers"
308
+
241
309
# Capabilities describes the orderer level capabilities, see the
242
310
# dedicated Capabilities section elsewhere in this file for a full
243
311
# description
244
312
Capabilities :
245
313
<< : *OrdererCapabilities
246
314
247
-
248
315
# ###############################################################################
249
316
#
250
317
# APPLICATION
@@ -259,6 +326,20 @@ Application: &ApplicationDefaults
259
326
# network.
260
327
Organizations :
261
328
329
+ # Policies defines the set of policies at this level of the config tree
330
+ # For Application policies, their canonical path is
331
+ # /Channel/Application/<PolicyName>
332
+ Policies :
333
+ Readers :
334
+ Type : ImplicitMeta
335
+ Rule : " ANY Readers"
336
+ Writers :
337
+ Type : ImplicitMeta
338
+ Rule : " ANY Writers"
339
+ Admins :
340
+ Type : ImplicitMeta
341
+ Rule : " MAJORITY Admins"
342
+
262
343
# Capabilities describes the application level capabilities, see the
263
344
# dedicated Capabilities section elsewhere in this file for a full
264
345
# description
0 commit comments