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

feat(attestation): enable predicate chainloop.dev/attestation/v0.2 with in-toto ResourceDescriptors #107

Merged
merged 4 commits into from
May 9, 2023

Conversation

migmartri
Copy link
Member

@migmartri migmartri commented May 8, 2023

Enable new predicate v02 which contains in-toto 1.0 resource descriptors #60

It makes updates in the code to improve extensibility in the event of future changes of the predicate.

Signed-off-by: Miguel Martinez Trivino <[email protected]>
CreatedAt *time.Time `json:"createdAt"`
Envelope *dsse.Envelope `json:"envelope"`
statement *in_toto.Statement
predicateV1 *chainloop.ProvenancePredicateV01
Copy link
Member Author

Choose a reason for hiding this comment

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

the predicate is not needed in fact since we are already providing the materials and env variables denormalized

}

return item, nil
}

func extractPredicateV1(statement *in_toto.Statement) (*chainloop.ProvenancePredicateV01, error) {
Copy link
Member Author

Choose a reason for hiding this comment

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

moved to renderer.chainloop

Signed-off-by: Miguel Martinez Trivino <[email protected]>
Signed-off-by: Miguel Martinez Trivino <[email protected]>
Signed-off-by: Miguel Martinez Trivino <[email protected]>
@migmartri migmartri marked this pull request as ready for review May 9, 2023 12:59
@migmartri migmartri changed the title feat(attestation): enable predicate v2 feat(attestation): enable predicate chainloop.dev/attestation/v0.2 with in-toto ResourceDescriptors May 9, 2023
@migmartri migmartri merged commit ed28f86 into chainloop-dev:main May 9, 2023
@migmartri migmartri deleted the 60-handle-new-format branch May 9, 2023 13:05
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.

1 participant