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

Add validations to the gateway apis to signal malformed proposal. #3572

Merged
merged 2 commits into from
Aug 8, 2022

Conversation

C0rWin
Copy link
Contributor

@C0rWin C0rWin commented Aug 6, 2022

* Bug fix

While the new peer gateway service tries to extract channel and chaincode information from the signed proposal, it doesn't check the proposal fields for validity. Therefore malformed proposal might end up crashing peer service. This commit adds validation to the parameters extracted from the proposal.

andrew-coleman and others added 2 commits July 15, 2022 10:48
Additional argument validatation and consistently use getters to safely traverse proto structures.

Signed-off-by: andrew-coleman <[email protected]>
While new peer gateway service is trying to extract channel and
chaincode information from the signed proposal it doesn't check
the proposal fields for validity and therefore malformed proposal
might end up with crashing peer service. This commit adds
validation to the parameters extracted from the proposal.

Signed-off-by: Artem Barger <[email protected]>
@C0rWin C0rWin requested a review from a team as a code owner August 6, 2022 21:41
@denyeart denyeart merged commit 7478f53 into hyperledger:main Aug 8, 2022
@denyeart
Copy link
Contributor

denyeart commented Aug 8, 2022

@Mergifyio backport release-2.5

@denyeart
Copy link
Contributor

denyeart commented Aug 8, 2022

@Mergifyio backport release-2.4

@mergify
Copy link

mergify bot commented Aug 8, 2022

backport release-2.5

✅ Backports have been created

@mergify
Copy link

mergify bot commented Aug 8, 2022

backport release-2.4

✅ 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.

3 participants