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

Replace predicate file path with io.Reader #904

Merged
merged 1 commit into from
Oct 16, 2021

Conversation

luhring
Copy link
Contributor

@luhring luhring commented Oct 16, 2021

Summary

Per a discussion with @dekkagaijin, this PR makes an incremental change to help consumers of cosign's attestation functions, specifically by allowing the caller of attestation.GenerateStatement to provide any io.Reader implementation as the statement's predicate, rather than having the caller provide a file path. This allows consumers to control the source of the predicate bytes, which is particularly valuable for non-file predicate sources, such as bytes existing only in memory.

Ticket Link

(Takes one step forward on #844)

Release Note

NONE

Copy link
Member

@dlorenc dlorenc left a comment

Choose a reason for hiding this comment

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

Thanks!

@dlorenc dlorenc merged commit 19300db into sigstore:main Oct 16, 2021
@github-actions github-actions bot added this to the v1.3.0 milestone Oct 16, 2021
@luhring luhring deleted the attest-io-reader branch October 30, 2021 22:28
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.

2 participants