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

Change annotations fields in ResourceDecriptor from objects to values #251

Merged
merged 2 commits into from
Jun 27, 2023

Conversation

joshuagl
Copy link
Contributor

This change expands support from objects to all JSON values. This allows maximum flexibility for producers and better matches the implicit reading of the spec many, including the SLSA project, had.

Fixes: #242

This change expands support from objects to all JSON values. This
allows maximum flexibility for producers and better matches the implicit
reading of the spec many, including the SLSA project, had.

Fixes: in-toto#242

Signed-off-by: Joshua Lock <[email protected]>
@joshuagl joshuagl requested a review from a team as a code owner June 16, 2023 16:15
Copy link
Contributor

@marcelamelara marcelamelara left a comment

Choose a reason for hiding this comment

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

Thanks @joshuagl ! One change that would be help would be to update/add to the examples of the resource descriptor spec to show a more accurate use of value type fields.

@joshuagl
Copy link
Contributor Author

Whoops, I missed the example. I just pushed 48e03ef to change the existing example. I can try and add one or two more next week if that's desirable?

@marcelamelara
Copy link
Contributor

Thanks! Yeah, I think it would be helpful to have a second example on there that shows different possible values, but I don't think it's crucial. The other thing to consider is how these changes will affect the language bindings/unit tests. But we can resolve that in a separate PR, I figure.

@joshuagl
Copy link
Contributor Author

Thanks! Yeah, I think it would be helpful to have a second example on there that shows different possible values, but I don't think it's crucial.

I agree with the useful but not crucial sentiment here. Can we consider the PR as is? I can file an issue for more examples.

@marcelamelara
Copy link
Contributor

Can we consider the PR as is? I can file an issue for more examples.

I think so. Thanks!

Copy link
Member

@pxp928 pxp928 left a comment

Choose a reason for hiding this comment

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

LGTM. +1 with @marcelamelara comment about adding other examples that shows different possible values. Can be in another PR.

@pxp928 pxp928 merged commit 7480846 into in-toto:main Jun 27, 2023
@joshuagl joshuagl deleted the joshuagl/annotation-value branch June 27, 2023 19:52
joshuagl added a commit to joshuagl/attestation that referenced this pull request Jun 28, 2023
The changes in in-toto#251 to update the type of the annotation value in a
resource descriptor was not reflected in the tests, causing them to
fail. Update the tests to use the new annotation value type.

Signed-off-by: Joshua Lock <[email protected]>
TomHennen added a commit that referenced this pull request Jun 28, 2023
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.

Expand ResourceDescriptor annotations to allow any type?
4 participants