Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make AmMemberOf to use only the mspIDs in collection policy #4244

Merged
merged 1 commit into from
May 31, 2023

Conversation

cendhu
Copy link
Contributor

@cendhu cendhu commented May 30, 2023

Type of change

  • Bug fix

Description

#4229

Additional details

Related issues

@cendhu cendhu requested a review from a team as a code owner May 30, 2023 18:25
@cendhu cendhu closed this May 30, 2023
@cendhu cendhu reopened this May 30, 2023
return false, nil
}
if err := accessPolicy.EvaluateSignedData([]*protoutil.SignedData{&m.selfSignedData}); err != nil {
if collectionPolicyConfig.GetSignaturePolicy() == nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe print in warning that this is nil?

denyeart
denyeart previously approved these changes May 30, 2023
Copy link
Contributor

@denyeart denyeart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix looks reasonable given we never added policy support for collections.

With the fix, I am not able to reproduce in local environment (basically the same test as the new integration test).

@cendhu cendhu changed the title [wip] Make AmMemberOf to use only the mspIDs in collection policy Make AmMemberOf to use only the mspIDs in collection policy May 31, 2023
Signed-off-by: senthil <cendhu@gmail.com>
@denyeart denyeart merged commit 494b8b8 into hyperledger:main May 31, 2023
25 checks passed
@denyeart
Copy link
Contributor

@Mergifyio backport release-2.5

@mergify
Copy link

mergify bot commented May 31, 2023

backport release-2.5

✅ Backports have been created

@denyeart
Copy link
Contributor

https://github.com/Mergifyio backport release-2.2

@mergify
Copy link

mergify bot commented May 31, 2023

backport release-2.2

✅ Backports have been created

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

Successfully merging this pull request may close these issues.

None yet

3 participants