-
Notifications
You must be signed in to change notification settings - Fork 168
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
intoto: add index on materials digest of slsa provenance #793
Conversation
Signed-off-by: Asra Ali <asraa@google.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome, thanks Asra!
pkg/types/intoto/v0.0.1/entry.go
Outdated
@@ -92,6 +92,14 @@ func (v V001Entry) IndexKeys() ([]string, error) { | |||
result = append(result, alg+":"+ds) | |||
} | |||
} | |||
predicate, err := parseSlsaPredicate(v.env.Payload) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps add a comment that not all in-toto statements contain SLSA predicates, and provide some supporting links if there are?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done! i figure we can extend this to something like "getPredicateMaterials" in case the SPDX or other predicates also include materials with digest sets.
Signed-off-by: Asra Ali asraa@google.com
Summary
Fixes #792
Adds a key to index based on the materials of a SLSA provenance
cc @tiziano88
Ticket Link
Fixes
Release Note