Skip to content

Commit

Permalink
Add doc links to chaincode access control (#4576)
Browse files Browse the repository at this point in the history
Add doc links to chaincode access control in the private data doc.

Signed-off-by: David Enyeart <[email protected]>
(cherry picked from commit 9b717af)
  • Loading branch information
denyeart authored and mergify[bot] committed Dec 18, 2023
1 parent e276334 commit d437014
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/source/private-data-arch.rst
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ Since implicit private data collections are not explicitly defined,
it is not possible to set the additional collection properties. Specifically,
``memberOnlyRead`` and ``memberOnlyWrite`` are not available,
meaning that access control for clients reading data from or writing data to
an implicit private data collection must be encoded in the chaincode on the organization's peer.
an implicit private data collection must be encoded in the `chaincode logic <chaincode4ade.html#chaincode-access-control>`_
on the organization's peer.
Furthermore, ``blockToLive`` is not available, meaning that private data is never automatically purged.

The properties ``requiredPeerCount`` and ``maxPeerCount`` can however be set in the peer's core.yaml
Expand Down Expand Up @@ -325,8 +326,8 @@ configuration definitions and how to set them, refer back to the
.. note:: If you would like more granular access control, you can set
``memberOnlyRead`` and ``memberOnlyWrite`` to false (implicit collections always
behave as if ``memberOnlyRead`` and ``memberOnlyWrite`` are false). You can then apply your
own access control logic in chaincode, for example by calling the GetCreator()
chaincode API or using the client identity
own `access control logic in chaincode <chaincode4ade.html#chaincode-access-control>`_,
for example by calling the GetCreator() chaincode API or using the client identity
`chaincode library <https://godoc.org/github.com/hyperledger/fabric-chaincode-go/shim#ChaincodeStub.GetCreator>`__ .

Querying Private Data
Expand Down

0 comments on commit d437014

Please sign in to comment.