We set up Hyperledger Fabric
and added two channels
(for two different applications). We also registered two users
in our Organization (one for each application). We should restrict access to each channel
so only the corresponding user can read and write based on affiliation or OU
of the user.
We checked Hyperledger Fabric
documentation on channel policies
and did not find any indication on how to use OU or affiliation
(i.e. conditions that go beyond "must be member of orgX").
From what I've read so far, I got the impression that restrictions within the organization can only be enforced in chaincode
, but not by using policies (this is also indicated in this question).
Is this really the way to go? Is there no possibility to restrict access to either a OU
or an attribute like affiliation
by just using the channel policy
?