PostList

2018년 8월 17일 금요일

Participant does not have 'READ' access to resource

IBM Hyperledger Fabric issue.

problem:

t: Participant 'org.acme.airline.participant.ACMENetworkAdmin#johnd' does not have 'READ' access to resource 'org.hyperledger.composer.system.Network#airline@0.0.2-deploy.3'





solution:

This is because yo generator generates permission.acl by default.
Therefore, add access rule to the permission.acl file as below.


permissions.acl

rule NetworkAdminUser2 {
    description: "Grant business network administrators full access to user resources"
    participant: "org.acme.airline.participant.ACMENetworkAdmin"
    operation: ALL
    resource: "**"
    action: ALLOW
}

rule NetworkAdminSystem2 {
    description: "Grant business network administrators full access to system resources"
    participant: "org.acme.airline.participant.ACMENetworkAdmin"
    operation: ALL
    resource: "org.hyperledger.composer.system.**"
    action: ALLOW
}





댓글 없음:

댓글 쓰기