-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-5669] SatisfiesPrincipal extended support
This change-set does the following: - It adds support for MSPPrincipal.Role.Client/Peer/Orderer to identity#SatisfiesPrinciapl. - It enforces that administrators of an MSP are clients Tests have been added to verify the change-set Change-Id: I9663df5ba242db505c4d5fcbbed19c050825f97f Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
- Loading branch information
Showing
16 changed files
with
433 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIICETCCAbigAwIBAgIQZddB0WG9CC+fM24ExJi2TTAKBggqhkjOPQQDAjBpMQsw | ||
CQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy | ||
YW5jaXNjbzEUMBIGA1UEChMLZXhhbXBsZS5jb20xFzAVBgNVBAMTDmNhLmV4YW1w | ||
bGUuY29tMB4XDTE3MDgxNTAyMTAzMFoXDTI3MDgxMzAyMTAzMFowXjELMAkGA1UE | ||
BhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBGcmFuY2lz | ||
Y28xEjAQBgNVBAsMCU9VX2NsaWVudDEOMAwGA1UEAxMFcGVlcjAwWTATBgcqhkjO | ||
PQIBBggqhkjOPQMBBwNCAARQ0e5cIZjSKwVNq2ua/hFezvYgsqBYeRHKo+ooUEaI | ||
9Gni/7m9NHfy5BP/8jizmpAw0B2DP9U2oOSskHnEH6ozo00wSzAOBgNVHQ8BAf8E | ||
BAMCB4AwDAYDVR0TAQH/BAIwADArBgNVHSMEJDAigCDzBa8g+ch+NQUz2wrrYdbZ | ||
i6z5+nUH88XquRiv4ZbhrjAKBggqhkjOPQQDAgNHADBEAiAXfvQKCOlw8Qhu+Kgl | ||
WoTFYJiu09Ti8avULBA4kqdXpwIgXSfA8qdRUUsxQ9uUnwu7PbK9YIS7ERWRB0T1 | ||
Yhjnu5g= | ||
-----END CERTIFICATE----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIICLzCCAdWgAwIBAgIQbjjR/DkfNMHkSfydFAcwBzAKBggqhkjOPQQDAjBpMQsw | ||
CQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy | ||
YW5jaXNjbzEUMBIGA1UEChMLZXhhbXBsZS5jb20xFzAVBgNVBAMTDmNhLmV4YW1w | ||
bGUuY29tMB4XDTE3MDgxNTAyMTAzMFoXDTI3MDgxMzAyMTAzMFowaTELMAkGA1UE | ||
BhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBGcmFuY2lz | ||
Y28xFDASBgNVBAoTC2V4YW1wbGUuY29tMRcwFQYDVQQDEw5jYS5leGFtcGxlLmNv | ||
bTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABLLFDYqD6GH3vMtS7E1s1PDPmYRN | ||
dYS5g4RCU/7rY/2cD9ZiFp+0hv2tewnIWPaRkGpmQg16RmxQcjVBVSJXwTujXzBd | ||
MA4GA1UdDwEB/wQEAwIBpjAPBgNVHSUECDAGBgRVHSUAMA8GA1UdEwEB/wQFMAMB | ||
Af8wKQYDVR0OBCIEIPMFryD5yH41BTPbCuth1tmLrPn6dQfzxeq5GK/hluGuMAoG | ||
CCqGSM49BAMCA0gAMEUCIQCvMhfCQgQj4Zf/qaA0kVKOvdyP/8ubxWk8yaB8todx | ||
SwIgCW1SVtEhqyCCk2/JKn7EFIbOwr2/1PsgxyDUOA7WnqQ= | ||
-----END CERTIFICATE----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Copyright IBM Corp. All Rights Reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
NodeOUs: | ||
Enable: true | ||
ClientOUIdentifier: | ||
OrganizationalUnitIdentifier: "OU_client" | ||
PeerOUIdentifier: | ||
OrganizationalUnitIdentifier: "OU_peer" | ||
OrdererOUIdentifier: | ||
OrganizationalUnitIdentifier: "OU_orderer" |
5 changes: 5 additions & 0 deletions
5
...ata/nodeous5/keystore/012ba73f50e24826785f48d1e60dcb972cfc2c5df7c41cdc0ecbbd52b02ca248_sk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-----BEGIN PRIVATE KEY----- | ||
MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgtB2spI0XSZlUFpFr | ||
oKarKXD+XrE8qYatbwivuiEbznuhRANCAARQ0e5cIZjSKwVNq2ua/hFezvYgsqBY | ||
eRHKo+ooUEaI9Gni/7m9NHfy5BP/8jizmpAw0B2DP9U2oOSskHnEH6oz | ||
-----END PRIVATE KEY----- |
5 changes: 5 additions & 0 deletions
5
...ata/nodeous5/keystore/47e79b836df4b16212176f607b37d95f97ecfdcdc658b7e6eaeab251251a01aa_sk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-----BEGIN PRIVATE KEY----- | ||
MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQg7Sbw+MrH0R4iw1Ly | ||
omN3QyKoj30iWP0mssxCvVe9mdChRANCAASgkPNAlBuRv9/LHbwExyFAXc3KT2DF | ||
c1aRgawkqctuhj1NIiFUdoPtjpBR3as67Dh3Z9yY6chTs6LFz2DOSU6+ | ||
-----END PRIVATE KEY----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIICEzCCAbmgAwIBAgIQIsUAZioeSk3X+G9d205DQjAKBggqhkjOPQQDAjBpMQsw | ||
CQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy | ||
YW5jaXNjbzEUMBIGA1UEChMLZXhhbXBsZS5jb20xFzAVBgNVBAMTDmNhLmV4YW1w | ||
bGUuY29tMB4XDTE3MDgxNTAyMTAzMFoXDTI3MDgxMzAyMTAzMFowXzELMAkGA1UE | ||
BhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBGcmFuY2lz | ||
Y28xEzARBgNVBAsMCk9VX29yZGVyZXIxDjAMBgNVBAMTBXBlZXIwMFkwEwYHKoZI | ||
zj0CAQYIKoZIzj0DAQcDQgAEUNHuXCGY0isFTatrmv4RXs72ILKgWHkRyqPqKFBG | ||
iPRp4v+5vTR38uQT//I4s5qQMNAdgz/VNqDkrJB5xB+qM6NNMEswDgYDVR0PAQH/ | ||
BAQDAgeAMAwGA1UdEwEB/wQCMAAwKwYDVR0jBCQwIoAg8wWvIPnIfjUFM9sK62HW | ||
2Yus+fp1B/PF6rkYr+GW4a4wCgYIKoZIzj0EAwIDSAAwRQIhAPpkgs5sLN3iO/J2 | ||
TqoFfq0gWWmrJOz2AY2KesJh4+oUAiAkkYE/ub1ktBxpJPJWSsPXS/XO/hvUg7Sc | ||
vqacmSoaiA== | ||
-----END CERTIFICATE----- |
Oops, something went wrong.