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

Only include Attestation data if attestation storage enabled #494

Merged
merged 1 commit into from
Nov 16, 2021

Conversation

lkatalin
Copy link
Contributor

Signed-off-by: Lily Sturmann lsturman@redhat.com

Summary

This adds a check for whether attestation storage is enabled before including attestation info for a GET request.

Ticket Link

Fixes #493

Release Note

    NONE

LogID: *e.LogID,
}

if viper.GetBool("enable_attestation_storage") {
Copy link
Member

Choose a reason for hiding this comment

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

I dont think this command line option would be given in the CLI; I think the best way to do this would be to see if e.Attestation != nil in the response

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bobcallaway Thanks, good point, I agree that is more direct and I just updated the code and re-pushed. I was originally using some of the api/entries.go code as an example.

Signed-off-by: Lily Sturmann <lsturman@redhat.com>
@lkatalin
Copy link
Contributor Author

Hmm, looks like I just ran unit tests locally and not the e2e tests. I will fix this. I'm new to go so I missed that those weren't getting run when I tested locally.

@lkatalin
Copy link
Contributor Author

Hmm, looks like I just ran unit tests locally and not the e2e tests. I will fix this. I'm new to go so I missed that those weren't getting run when I tested locally.

Never mind, looks like the tests pass.

@dlorenc dlorenc merged commit 0047a75 into sigstore:main Nov 16, 2021
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.

GET request results in memory error on local Rekor server
3 participants