-
Notifications
You must be signed in to change notification settings - Fork 556
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
Don't silently swallow forbidden AWS GET requests (sscache S3 always cache miss) #225
Comments
S3 doesn't return 404s for missing objects, it always returns 403s, which is forbidden. |
If I have list access, it will return a 404 for missing objects. If I don't have access, that is a misconfiguration ;) |
@jechase That is great to hear. In our case making the cache public was an acceptable outcome, but if we ever need a private cache I know where I'll be looking :) |
This was referenced Dec 28, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We were recently debugging an issue with
sccache
where all of our compilations were missing the cache (even though we were successfully writing to the cache.) Inspecting the log revealed that sccache was receiving a FORBIDDEN response and deciding this was a cache miss. It would be much better if these problems were logged as a separate statistic so that it would be more easy to diagnose when they occur. Extra brownie points if the statistics page gives suggestions for debugging these types of errors.For anyone else dealing with this issue, the problem is that sccache does not apply AWS credentials when performing a
GET
request, so your bucket needs to be readable from the public, otherwise sccache will not be able to see it. Maybe this is an independent bug, but making our bucket public solved the problem for us.The text was updated successfully, but these errors were encountered: