Repository navigation
docs: list the S3 permissions sccache needs - #3063
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3063 +/- ##
==========================================
- Coverage 79.99% 79.98% -0.01%
==========================================
Files 76 76
Lines 47373 47373
==========================================
- Hits 37894 37893 -1
- Misses 9479 9480 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1335
Adds a Permissions section to
docs/S3.mdwith a minimal IAM policy. sccache only callsGetObjectandPutObject(opendal writes each entry in one request), plus the startup read andwrite of
.sccache_check.s3:ListBucketis in the policy because S3 answers a missing objectwith 403 instead of 404 without it: every miss then counts as a read error, and the startup check
fails on an empty bucket. The section also covers read-only caches, the key prefix, SSE-KMS with a
customer-managed key, and
SCCACHE_S3_NO_CREDENTIALS.Docs only. I worked this out from
src/cache/storage.rs, opendal's S3 service and the AWSGetObject reference; I have not run it against a real bucket with this exact policy.