Skip to content

Commit fc62148

Browse files
committed
FAB2044: Allow OUs to be contained in MSP description
This change-sets does the following: 1. Addresses point A) of the JIRA item by modifying the involved protobufs JIRA: https://jira.hyperledger.org/browse/FAB-2400 Change-Id: I94717ac1842875ed9520e2dd062bd533f68554a5 Signed-off-by: Angelo De Caro <[email protected]>
1 parent f145efe commit fc62148

File tree

4 files changed

+110
-50
lines changed

4 files changed

+110
-50
lines changed

protos/common/msp_principal.pb.go

+29-24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protos/common/msp_principal.proto

+4-1
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,13 @@ message OrganizationUnit {
8787
// refers to
8888
string msp_identifier = 1;
8989

90-
// OrganizationUnitIdentifier defines the organization unit under the
90+
// OrganizationUnitIdentifier defines the organizational unit under the
9191
// MSP identified with MSPIdentifier
9292
string organizational_unit_identifier = 2;
9393

94+
// CertifiersIdentifier is the hash of certificates chain of trust
95+
// related to this organizational unit
96+
bytes certifiers_identifier = 3;
9497
}
9598

9699
// MSPRole governs the organization of the Principal

protos/msp/mspconfig.pb.go

+59-25
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protos/msp/mspconfig.proto

+18
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ message FabricMSPConfig {
7373
// this peer is to use, and which is to be imported by the
7474
// MSP defined before
7575
SigningIdentityInfo signing_identity = 6;
76+
77+
// OrganizationalUnitIdentifiers holds one or more
78+
// fabric organizational unit identifiers that belong to
79+
// this MSP configuration
80+
repeated FabricOUIdentifier organizational_unit_identifiers = 7;
7681
}
7782

7883
// SigningIdentityInfo represents the configuration information
@@ -103,3 +108,16 @@ message KeyInfo {
103108
// properly encoded key bytes, prefixed by the type of the key
104109
bytes key_material = 2;
105110
}
111+
112+
// FabricOUIdentifier represents an organizazional unit and
113+
// its related chain of trust identifier.
114+
message FabricOUIdentifier {
115+
116+
// CertifiersIdentifier is the hash of certificates chain of trust
117+
// related to this organizational unit
118+
bytes certifiers_identifier = 1;
119+
120+
// OrganizationUnitIdentifier defines the organizational unit under the
121+
// MSP identified with MSPIdentifier
122+
string organizational_unit_identifier = 2;
123+
}

0 commit comments

Comments
 (0)