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

GCP: temporary hack to proxy read requests to GCS #70

Merged
merged 2 commits into from
Jul 17, 2024

Conversation

AlCutter
Copy link
Collaborator

This PR allows an easy way for the hammer to get access to the log static resources by proxying read requests into GCS reads.

b, err := storage.Get(r.Context(), resource)
if err != nil {
klog.V(1).Infof("Get: %v", err)
w.WriteHeader(http.StatusBadRequest)
Copy link
Contributor

Choose a reason for hiding this comment

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

Classic denial of any responsibility here :-)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's probably your fault, to be fair. :)

@AlCutter AlCutter merged commit d613ec4 into transparency-dev:main Jul 17, 2024
4 checks passed
@AlCutter AlCutter deleted the hammer_serve_hack branch July 17, 2024 16:30
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