Skip to content
This repository has been archived by the owner on Jan 22, 2020. It is now read-only.

How to manage role based access in Chaincode #117

Open
rushikeshacharya opened this issue Nov 23, 2018 · 1 comment
Open

How to manage role based access in Chaincode #117

rushikeshacharya opened this issue Nov 23, 2018 · 1 comment

Comments

@rushikeshacharya
Copy link

I want to put restriction on uses according to their role to call chaincode functions. For eg. In tunaFish example I do not want the Regulator or Restaurateur to call a function recordTuna. So how do I manage this.
Can we restrict this access in chaincode or do we have to manange this at application side?

@vishal3152
Copy link

You should handle this in the chaincode. Attribute-based access control can be of help here. You can query the role attribute in your chaincode and put access restriction as required.

https://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants