diff --git a/bddtests/orderer/configuration_pb2.py b/bddtests/orderer/configuration_pb2.py index 22bd3432a57..07a0bafe5e4 100644 --- a/bddtests/orderer/configuration_pb2.py +++ b/bddtests/orderer/configuration_pb2.py @@ -20,7 +20,7 @@ name='orderer/configuration.proto', package='orderer', syntax='proto3', - serialized_pb=_b('\n\x1borderer/configuration.proto\x12\x07orderer\x1a\x13\x63ommon/common.proto\"\x1d\n\rConsensusType\x12\x0c\n\x04type\x18\x01 \x01(\t\"$\n\tBatchSize\x12\x17\n\x0fmaxMessageCount\x18\x01 \x01(\r\"\x1f\n\x0c\x42\x61tchTimeout\x12\x0f\n\x07timeout\x18\x01 \x01(\t\"0\n\x0e\x43reationPolicy\x12\x0e\n\x06policy\x18\x01 \x01(\t\x12\x0e\n\x06\x64igest\x18\x02 \x01(\x0c\"\x1d\n\rIngressPolicy\x12\x0c\n\x04name\x18\x01 \x01(\t\"!\n\rChainCreators\x12\x10\n\x08policies\x18\x01 \x03(\t\"\x1f\n\x0cKafkaBrokers\x12\x0f\n\x07\x62rokers\x18\x01 \x03(\tB.Z,github.com/hyperledger/fabric/protos/ordererb\x06proto3') + serialized_pb=_b('\n\x1borderer/configuration.proto\x12\x07orderer\x1a\x13\x63ommon/common.proto\"\x1d\n\rConsensusType\x12\x0c\n\x04type\x18\x01 \x01(\t\"$\n\tBatchSize\x12\x17\n\x0fmaxMessageCount\x18\x01 \x01(\r\"\x1f\n\x0c\x42\x61tchTimeout\x12\x0f\n\x07timeout\x18\x01 \x01(\t\"0\n\x0e\x43reationPolicy\x12\x0e\n\x06policy\x18\x01 \x01(\t\x12\x0e\n\x06\x64igest\x18\x02 \x01(\x0c\"\x1d\n\rIngressPolicy\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x1c\n\x0c\x45gressPolicy\x12\x0c\n\x04name\x18\x01 \x01(\t\"!\n\rChainCreators\x12\x10\n\x08policies\x18\x01 \x03(\t\"\x1f\n\x0cKafkaBrokers\x12\x0f\n\x07\x62rokers\x18\x01 \x03(\tB.Z,github.com/hyperledger/fabric/protos/ordererb\x06proto3') , dependencies=[common_dot_common__pb2.DESCRIPTOR,]) _sym_db.RegisterFileDescriptor(DESCRIPTOR) @@ -190,6 +190,37 @@ ) +_EGRESSPOLICY = _descriptor.Descriptor( + name='EgressPolicy', + full_name='orderer.EgressPolicy', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='orderer.EgressPolicy.name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=244, + serialized_end=272, +) + + _CHAINCREATORS = _descriptor.Descriptor( name='ChainCreators', full_name='orderer.ChainCreators', @@ -216,8 +247,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=244, - serialized_end=277, + serialized_start=274, + serialized_end=307, ) @@ -247,8 +278,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=279, - serialized_end=310, + serialized_start=309, + serialized_end=340, ) DESCRIPTOR.message_types_by_name['ConsensusType'] = _CONSENSUSTYPE @@ -256,6 +287,7 @@ DESCRIPTOR.message_types_by_name['BatchTimeout'] = _BATCHTIMEOUT DESCRIPTOR.message_types_by_name['CreationPolicy'] = _CREATIONPOLICY DESCRIPTOR.message_types_by_name['IngressPolicy'] = _INGRESSPOLICY +DESCRIPTOR.message_types_by_name['EgressPolicy'] = _EGRESSPOLICY DESCRIPTOR.message_types_by_name['ChainCreators'] = _CHAINCREATORS DESCRIPTOR.message_types_by_name['KafkaBrokers'] = _KAFKABROKERS @@ -294,6 +326,13 @@ )) _sym_db.RegisterMessage(IngressPolicy) +EgressPolicy = _reflection.GeneratedProtocolMessageType('EgressPolicy', (_message.Message,), dict( + DESCRIPTOR = _EGRESSPOLICY, + __module__ = 'orderer.configuration_pb2' + # @@protoc_insertion_point(class_scope:orderer.EgressPolicy) + )) +_sym_db.RegisterMessage(EgressPolicy) + ChainCreators = _reflection.GeneratedProtocolMessageType('ChainCreators', (_message.Message,), dict( DESCRIPTOR = _CHAINCREATORS, __module__ = 'orderer.configuration_pb2' diff --git a/bddtests/steps/bootstrap_util.py b/bddtests/steps/bootstrap_util.py index 59343125a03..56d581f15e6 100644 --- a/bddtests/steps/bootstrap_util.py +++ b/bddtests/steps/bootstrap_util.py @@ -229,6 +229,7 @@ class BootstrapHelper: KEY_CHAIN_CREATORS = "ChainCreators" KEY_ACCEPT_ALL_POLICY = "AcceptAllPolicy" KEY_INGRESS_POLICY = "IngressPolicy" + KEY_EGRESS_POLICY = "EgressPolicy" KEY_BATCH_SIZE = "BatchSize" DEFAULT_MODIFICATION_POLICY_ID = "DefaultModificationPolicy" @@ -296,6 +297,13 @@ def encodeChainCreators(self): value=orderer_dot_configuration_pb2.ChainCreators(policies=BootstrapHelper.DEFAULT_CHAIN_CREATORS).SerializeToString()) return self.signConfigItem(configItem) + def encodeEgressPolicy(self): + configItem = self.getConfigItem( + commonConfigType=common_dot_configuration_pb2.ConfigurationItem.ConfigurationType.Value("Orderer"), + key=BootstrapHelper.KEY_EGRESS_POLICY, + value=orderer_dot_configuration_pb2.EgressPolicy(name=BootstrapHelper.KEY_ACCEPT_ALL_POLICY).SerializeToString()) + return self.signConfigItem(configItem) + def encodeIngressPolicy(self): configItem = self.getConfigItem( commonConfigType=common_dot_configuration_pb2.ConfigurationItem.ConfigurationType.Value("Orderer"), diff --git a/orderer/common/bootstrap/provisional/envelope.go b/orderer/common/bootstrap/provisional/envelope.go index 366bae619dd..cfe360abf63 100644 --- a/orderer/common/bootstrap/provisional/envelope.go +++ b/orderer/common/bootstrap/provisional/envelope.go @@ -29,6 +29,7 @@ func (cbs *commonBootstrapper) makeGenesisConfigEnvelope() *cb.ConfigurationEnve cbs.encodeChainCreators(), cbs.encodeAcceptAllPolicy(), cbs.encodeIngressPolicy(), + cbs.encodeEgressPolicy(), cbs.lockDefaultModificationPolicy(), ) } @@ -42,6 +43,7 @@ func (kbs *kafkaBootstrapper) makeGenesisConfigEnvelope() *cb.ConfigurationEnvel kbs.encodeChainCreators(), kbs.encodeAcceptAllPolicy(), kbs.encodeIngressPolicy(), + kbs.encodeEgressPolicy(), kbs.lockDefaultModificationPolicy(), ) } diff --git a/orderer/common/bootstrap/provisional/item.go b/orderer/common/bootstrap/provisional/item.go index 5ba16b748a3..d7e205c23f7 100644 --- a/orderer/common/bootstrap/provisional/item.go +++ b/orderer/common/bootstrap/provisional/item.go @@ -85,6 +85,16 @@ func (cbs *commonBootstrapper) encodeIngressPolicy() *cb.SignedConfigurationItem return &cb.SignedConfigurationItem{ConfigurationItem: utils.MarshalOrPanic(configItem), Signatures: nil} } +func (cbs *commonBootstrapper) encodeEgressPolicy() *cb.SignedConfigurationItem { + configItemKey := sharedconfig.EgressPolicyKey + configItemValue := utils.MarshalOrPanic(&ab.EgressPolicy{Name: AcceptAllPolicyKey}) + modPolicy := configtx.DefaultModificationPolicyID + + configItemChainHeader := utils.MakeChainHeader(cb.HeaderType_CONFIGURATION_ITEM, msgVersion, cbs.chainID, epoch) + configItem := utils.MakeConfigurationItem(configItemChainHeader, cb.ConfigurationItem_Orderer, lastModified, modPolicy, configItemKey, configItemValue) + return &cb.SignedConfigurationItem{ConfigurationItem: utils.MarshalOrPanic(configItem), Signatures: nil} +} + func (cbs *commonBootstrapper) lockDefaultModificationPolicy() *cb.SignedConfigurationItem { // Lock down the default modification policy to prevent any further policy modifications configItemKey := configtx.DefaultModificationPolicyID diff --git a/orderer/common/sharedconfig/sharedconfig.go b/orderer/common/sharedconfig/sharedconfig.go index de4917fec51..a312aaaa403 100644 --- a/orderer/common/sharedconfig/sharedconfig.go +++ b/orderer/common/sharedconfig/sharedconfig.go @@ -48,6 +48,9 @@ const ( // IngressPolicyKey is the cb.ConfigurationItem type key name for the IngressPolicy message IngressPolicyKey = "IngressPolicy" + + // EgressPolicyKey is the cb.ConfigurationItem type key name for the EgressPolicy message + EgressPolicyKey = "EgressPolicy" ) var logger = logging.MustGetLogger("orderer/common/sharedconfig") @@ -77,6 +80,9 @@ type Manager interface { // IngressPolicy returns the name of the policy to validate incoming broadcast messages against IngressPolicy() string + + // EgressPolicy returns the name of the policy to validate incoming broadcast messages against + EgressPolicy() string } type ordererConfig struct { @@ -86,6 +92,7 @@ type ordererConfig struct { chainCreators []string kafkaBrokers []string ingressPolicy string + egressPolicy string } // ManagerImpl is an implementation of Manager and configtx.ConfigHandler @@ -135,6 +142,11 @@ func (pm *ManagerImpl) IngressPolicy() string { return pm.config.ingressPolicy } +// EgressPolicy returns the name of the policy to validate incoming deliver seeks against +func (pm *ManagerImpl) EgressPolicy() string { + return pm.config.egressPolicy +} + // BeginConfig is used to start a new configuration proposal func (pm *ManagerImpl) BeginConfig() { if pm.pendingConfig != nil { @@ -212,6 +224,12 @@ func (pm *ManagerImpl) ProposeConfig(configItem *cb.ConfigurationItem) error { return fmt.Errorf("Unmarshaling error for IngressPolicy: %s", err) } pm.pendingConfig.ingressPolicy = ingressPolicy.Name + case EgressPolicyKey: + egressPolicy := &ab.EgressPolicy{} + if err := proto.Unmarshal(configItem.Value, egressPolicy); err != nil { + return fmt.Errorf("Unmarshaling error for EgressPolicy: %s", err) + } + pm.pendingConfig.egressPolicy = egressPolicy.Name case KafkaBrokersKey: kafkaBrokers := &ab.KafkaBrokers{} if err := proto.Unmarshal(configItem.Value, kafkaBrokers); err != nil { diff --git a/orderer/common/sharedconfig/sharedconfig_test.go b/orderer/common/sharedconfig/sharedconfig_test.go index a365f2c8cfb..2eba43a1843 100644 --- a/orderer/common/sharedconfig/sharedconfig_test.go +++ b/orderer/common/sharedconfig/sharedconfig_test.go @@ -339,3 +339,44 @@ func TestIngressPolicy(t *testing.T) { t.Fatalf("IngressPolicy should have ended as %s but was %s", endPolicy, nowPolicy) } } + +func TestEgressPolicy(t *testing.T) { + endPolicy := "foo" + invalidMessage := + &cb.ConfigurationItem{ + Type: cb.ConfigurationItem_Orderer, + Key: EgressPolicyKey, + Value: []byte("Garbage Data"), + } + validMessage := &cb.ConfigurationItem{ + Type: cb.ConfigurationItem_Orderer, + Key: EgressPolicyKey, + Value: utils.MarshalOrPanic(&ab.EgressPolicy{Name: endPolicy}), + } + m := NewManagerImpl() + m.BeginConfig() + + err := m.ProposeConfig(validMessage) + if err != nil { + t.Fatalf("Error applying valid config: %s", err) + } + + m.CommitConfig() + m.BeginConfig() + + err = m.ProposeConfig(invalidMessage) + if err == nil { + t.Fatalf("Should have failed on invalid message") + } + + err = m.ProposeConfig(validMessage) + if err != nil { + t.Fatalf("Error re-applying valid config: %s", err) + } + + m.CommitConfig() + + if nowPolicy := m.EgressPolicy(); nowPolicy != endPolicy { + t.Fatalf("EgressPolicy should have ended as %s but was %s", endPolicy, nowPolicy) + } +} diff --git a/orderer/mocks/sharedconfig/sharedconfig.go b/orderer/mocks/sharedconfig/sharedconfig.go index 4508b4b0a7b..ca6e246f782 100644 --- a/orderer/mocks/sharedconfig/sharedconfig.go +++ b/orderer/mocks/sharedconfig/sharedconfig.go @@ -33,6 +33,8 @@ type Manager struct { KafkaBrokersVal []string // IngressPolicyVal is returned as the result of IngressPolicy() IngressPolicyVal string + // EgressPolicyVal is returned as the result of EgressPolicy() + EgressPolicyVal string } // ConsensusType returns the ConsensusTypeVal @@ -64,3 +66,8 @@ func (scm *Manager) KafkaBrokers() []string { func (scm *Manager) IngressPolicy() string { return scm.IngressPolicyVal } + +// EgressPolicy returns the EgressPolicyVal +func (scm *Manager) EgressPolicy() string { + return scm.EgressPolicyVal +} diff --git a/protos/orderer/ab.pb.go b/protos/orderer/ab.pb.go index 87b40cc4418..efbbdf49a67 100644 --- a/protos/orderer/ab.pb.go +++ b/protos/orderer/ab.pb.go @@ -23,6 +23,7 @@ It has these top-level messages: BatchTimeout CreationPolicy IngressPolicy + EgressPolicy ChainCreators KafkaBrokers KafkaMessage diff --git a/protos/orderer/configuration.pb.go b/protos/orderer/configuration.pb.go index 42a31b8a350..13748632fc3 100644 --- a/protos/orderer/configuration.pb.go +++ b/protos/orderer/configuration.pb.go @@ -75,6 +75,16 @@ func (m *IngressPolicy) String() string { return proto.CompactTextStr func (*IngressPolicy) ProtoMessage() {} func (*IngressPolicy) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} } +// IngressPolicy is the name of the policy which incoming Deliver messages are filtered against +type EgressPolicy struct { + Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` +} + +func (m *EgressPolicy) Reset() { *m = EgressPolicy{} } +func (m *EgressPolicy) String() string { return proto.CompactTextString(m) } +func (*EgressPolicy) ProtoMessage() {} +func (*EgressPolicy) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{5} } + type ChainCreators struct { // A list of policies, any of which may be specified as the chain creation // policy in a chain creation request @@ -84,7 +94,7 @@ type ChainCreators struct { func (m *ChainCreators) Reset() { *m = ChainCreators{} } func (m *ChainCreators) String() string { return proto.CompactTextString(m) } func (*ChainCreators) ProtoMessage() {} -func (*ChainCreators) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{5} } +func (*ChainCreators) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{6} } // Carries a list of bootstrap brokers, i.e. this is not the exclusive set of // brokers an ordering service @@ -97,7 +107,7 @@ type KafkaBrokers struct { func (m *KafkaBrokers) Reset() { *m = KafkaBrokers{} } func (m *KafkaBrokers) String() string { return proto.CompactTextString(m) } func (*KafkaBrokers) ProtoMessage() {} -func (*KafkaBrokers) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{6} } +func (*KafkaBrokers) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{7} } func init() { proto.RegisterType((*ConsensusType)(nil), "orderer.ConsensusType") @@ -105,6 +115,7 @@ func init() { proto.RegisterType((*BatchTimeout)(nil), "orderer.BatchTimeout") proto.RegisterType((*CreationPolicy)(nil), "orderer.CreationPolicy") proto.RegisterType((*IngressPolicy)(nil), "orderer.IngressPolicy") + proto.RegisterType((*EgressPolicy)(nil), "orderer.EgressPolicy") proto.RegisterType((*ChainCreators)(nil), "orderer.ChainCreators") proto.RegisterType((*KafkaBrokers)(nil), "orderer.KafkaBrokers") } @@ -112,24 +123,25 @@ func init() { func init() { proto.RegisterFile("orderer/configuration.proto", fileDescriptor1) } var fileDescriptor1 = []byte{ - // 301 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x5c, 0x91, 0x41, 0x4b, 0xc3, 0x40, - 0x10, 0x85, 0x89, 0x96, 0xd6, 0x2e, 0xad, 0xc2, 0x0a, 0x12, 0xea, 0xa5, 0xc4, 0x4b, 0x40, 0x69, - 0x0e, 0xe2, 0x5d, 0x9a, 0x93, 0x88, 0x20, 0xb1, 0x27, 0x6f, 0x9b, 0x74, 0x92, 0x2c, 0x6d, 0x76, - 0xc2, 0xcc, 0x06, 0x8c, 0xbf, 0x5e, 0xb2, 0xd9, 0xf6, 0xe0, 0x29, 0xef, 0x9b, 0x99, 0xbc, 0x7d, - 0xb3, 0x2b, 0xee, 0x91, 0xf6, 0x40, 0x40, 0x49, 0x81, 0xa6, 0xd4, 0x55, 0x47, 0xca, 0x6a, 0x34, - 0x9b, 0x96, 0xd0, 0xa2, 0x9c, 0xf9, 0xe6, 0xea, 0xb6, 0xc0, 0xa6, 0x41, 0x93, 0x8c, 0x9f, 0xb1, - 0x1b, 0x3d, 0x88, 0x65, 0x8a, 0x86, 0xc1, 0x70, 0xc7, 0xbb, 0xbe, 0x05, 0x29, 0xc5, 0xc4, 0xf6, - 0x2d, 0x84, 0xc1, 0x3a, 0x88, 0xe7, 0x99, 0xd3, 0xd1, 0x8b, 0x98, 0x6f, 0x95, 0x2d, 0xea, 0x2f, - 0xfd, 0x0b, 0x32, 0x16, 0x37, 0x8d, 0xfa, 0xf9, 0x00, 0x66, 0x55, 0x41, 0x8a, 0x9d, 0xb1, 0x6e, - 0x76, 0x99, 0xfd, 0x2f, 0x47, 0xb1, 0x58, 0xb8, 0xdf, 0x76, 0xba, 0x01, 0xec, 0xac, 0x0c, 0xc5, - 0xcc, 0x8e, 0xd2, 0xbb, 0x9f, 0x30, 0x7a, 0x15, 0xd7, 0x29, 0x81, 0x4b, 0xfd, 0x89, 0x47, 0x5d, - 0xf4, 0xf2, 0x4e, 0x4c, 0x5b, 0xa7, 0xfc, 0xa8, 0xa7, 0xa1, 0xbe, 0xd7, 0x15, 0xb0, 0x0d, 0x2f, - 0xd6, 0x41, 0xbc, 0xc8, 0x3c, 0x0d, 0x7b, 0xbc, 0x99, 0x8a, 0x80, 0xd9, 0x1b, 0x48, 0x31, 0x31, - 0xaa, 0x39, 0xef, 0x31, 0xe8, 0xe8, 0x51, 0x2c, 0xd3, 0x5a, 0x69, 0xe3, 0xce, 0x42, 0x62, 0xb9, - 0x12, 0x57, 0xce, 0x57, 0x03, 0x87, 0xc1, 0xfa, 0x32, 0x9e, 0x67, 0x67, 0x1e, 0xd2, 0xbf, 0xab, - 0xf2, 0xa0, 0xb6, 0x84, 0x07, 0x20, 0x1e, 0xd2, 0xe7, 0xa3, 0xf4, 0xa3, 0x27, 0xdc, 0x6e, 0xbe, - 0x9f, 0x2a, 0x6d, 0xeb, 0x2e, 0xdf, 0x14, 0xd8, 0x24, 0x75, 0xdf, 0x02, 0x1d, 0x61, 0x5f, 0x01, - 0x25, 0xa5, 0xca, 0x49, 0x17, 0x89, 0xbb, 0x6a, 0x4e, 0xfc, 0x43, 0xe4, 0x53, 0xc7, 0xcf, 0x7f, - 0x01, 0x00, 0x00, 0xff, 0xff, 0x3f, 0xf2, 0x2b, 0x29, 0xb7, 0x01, 0x00, 0x00, + // 308 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x84, 0x91, 0x41, 0x4b, 0xc3, 0x40, + 0x10, 0x85, 0x89, 0x96, 0xd6, 0x0e, 0xad, 0xc2, 0x0a, 0x12, 0xea, 0xa5, 0xc4, 0x4b, 0x40, 0x69, + 0x0e, 0xe2, 0x5d, 0x1a, 0x3c, 0x88, 0x08, 0x12, 0x7b, 0xf2, 0xb6, 0x49, 0xa7, 0xc9, 0xd2, 0x66, + 0x27, 0xcc, 0x6e, 0xc0, 0xf8, 0xeb, 0x25, 0x9b, 0x6d, 0x0f, 0x5e, 0x3c, 0xe5, 0x7d, 0x33, 0x2f, + 0xb3, 0xf3, 0x18, 0xb8, 0x25, 0xde, 0x22, 0x23, 0x27, 0x05, 0xe9, 0x9d, 0x2a, 0x5b, 0x96, 0x56, + 0x91, 0x5e, 0x35, 0x4c, 0x96, 0xc4, 0xc4, 0x37, 0x17, 0xd7, 0x05, 0xd5, 0x35, 0xe9, 0x64, 0xf8, + 0x0c, 0xdd, 0xe8, 0x0e, 0xe6, 0x29, 0x69, 0x83, 0xda, 0xb4, 0x66, 0xd3, 0x35, 0x28, 0x04, 0x8c, + 0x6c, 0xd7, 0x60, 0x18, 0x2c, 0x83, 0x78, 0x9a, 0x39, 0x1d, 0x3d, 0xc1, 0x74, 0x2d, 0x6d, 0x51, + 0x7d, 0xaa, 0x1f, 0x14, 0x31, 0x5c, 0xd5, 0xf2, 0xfb, 0x1d, 0x8d, 0x91, 0x25, 0xa6, 0xd4, 0x6a, + 0xeb, 0xbc, 0xf3, 0xec, 0x6f, 0x39, 0x8a, 0x61, 0xe6, 0x7e, 0xdb, 0xa8, 0x1a, 0xa9, 0xb5, 0x22, + 0x84, 0x89, 0x1d, 0xa4, 0x9f, 0x7e, 0xc4, 0xe8, 0x19, 0x2e, 0x53, 0x46, 0xb7, 0xf5, 0x07, 0x1d, + 0x54, 0xd1, 0x89, 0x1b, 0x18, 0x37, 0x4e, 0x79, 0xab, 0xa7, 0xbe, 0xbe, 0x55, 0x25, 0x1a, 0x1b, + 0x9e, 0x2d, 0x83, 0x78, 0x96, 0x79, 0xea, 0x73, 0xbc, 0xea, 0x92, 0xd1, 0x18, 0x3f, 0x40, 0xc0, + 0x48, 0xcb, 0xfa, 0x94, 0xa3, 0xd7, 0x51, 0x04, 0xb3, 0x97, 0xff, 0x3c, 0xf7, 0x30, 0x4f, 0x2b, + 0xa9, 0xb4, 0xdb, 0x87, 0xd8, 0x88, 0x05, 0x5c, 0xb8, 0xb7, 0x15, 0x9a, 0x30, 0x58, 0x9e, 0xc7, + 0xd3, 0xec, 0xc4, 0x7d, 0xc2, 0x37, 0xb9, 0xdb, 0xcb, 0x35, 0xd3, 0x1e, 0xd9, 0xf4, 0x09, 0xf3, + 0x41, 0x7a, 0xeb, 0x11, 0xd7, 0xab, 0xaf, 0x87, 0x52, 0xd9, 0xaa, 0xcd, 0x57, 0x05, 0xd5, 0x49, + 0xd5, 0x35, 0xc8, 0x07, 0xdc, 0x96, 0xc8, 0xc9, 0x4e, 0xe6, 0xac, 0x8a, 0xc4, 0x9d, 0xc3, 0x24, + 0xfe, 0x58, 0xf9, 0xd8, 0xf1, 0xe3, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd9, 0x31, 0x29, 0x3f, + 0xdb, 0x01, 0x00, 0x00, } diff --git a/protos/orderer/configuration.proto b/protos/orderer/configuration.proto index 4462a18e2ef..493155bf1fa 100644 --- a/protos/orderer/configuration.proto +++ b/protos/orderer/configuration.proto @@ -66,6 +66,11 @@ message IngressPolicy { string name = 1; } +// EgressPolicy is the name of the policy which incoming Deliver messages are filtered against +message EgressPolicy { + string name = 1; +} + message ChainCreators { // A list of policies, any of which may be specified as the chain creation // policy in a chain creation request