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

Validate generic headers #87

Merged
merged 1 commit into from
Jul 11, 2022
Merged

Conversation

qmuntal
Copy link
Contributor

@qmuntal qmuntal commented Jul 6, 2022

This PR validates that the Common COSE Headers Parameters have to correct type.

The change has been quite disruptive for our test cases, because we were using headers containing invalid parameters. Most of the test changes are related to fixing those tests.

This PR does not validate counter signature nor x509 common parameters, as go-cose currently does not expose the CBOR types which are contained in those parameters.

Fix #82

Signed-off-by: qmuntal qmuntaldiaz@microsoft.com

Signed-off-by: qmuntal <qmuntaldiaz@microsoft.com>
Copy link
Contributor

@shizhMSFT shizhMSFT left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@thomas-fossati thomas-fossati left a comment

Choose a reason for hiding this comment

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

awesome work.

@yogeshbdeshpande yogeshbdeshpande merged commit 33ff2e9 into veraison:main Jul 11, 2022
@qmuntal qmuntal deleted the headers branch July 11, 2022 16:09
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.

Header types are not validated
4 participants