-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-1302] (PA) Add channel create authorization
There is currently no inspection of the channel creation transaction. This means that during a channel creation, the creator could inappropriately specify config, including items like orderer parameters, and the ordering service would silently accept this incorrect parameters. This is especially troublesome from a security perspective, as a specially crafted config tx could potentially trick another user into believe they were participating in a channel with one member when they are actually participating with another. This CR adds this checking by leveraging the existing underlying authorization mechanisms of the configuration transaction. It ensures that the creating members are not only authorized to create the channel, but also ensures that all channel config that is set is done so in accordance with the underlying governance for that config element. This means that a collection of authorized ordering organizations may choose to modifying ordering parameters in a channel creation request while a set of application orgs would not be able to. This CR is somewhat large due to the significant invasive nature of this change, and that the entire end to end must be modified, not just a single component. However, given the increase in function with decrease in complexity, the diff stat is hopefully acceptable. Change-Id: I9bb64d3f70d07eb8a8a4ea4893c71cf1112b4bf7 Signed-off-by: Jason Yellick <jyellick@us.ibm.com> Signed-off-by: Kostas Christidis <kostas@christidis.io>
- Loading branch information
1 parent
8288a7f
commit 312628c
Showing
23 changed files
with
642 additions
and
366 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
Oops, something went wrong.