Skip to content

docs: list the S3 permissions sccache needs - #3063

Merged
sylvestre merged 1 commit into
mozilla:mainfrom
puretechteam:docs/s3-permissions-1335
Nov 24, 2026
Merged

sylvestre merged 1 commit into
mozilla:mainfrom
puretechteam:docs/s3-permissions-1335

Conversation

@puretechteam

Copy link
Copy Markdown
Contributor

Fixes #1335

Adds a Permissions section to docs/S3.md with a minimal IAM policy. sccache only calls
GetObject and PutObject (opendal writes each entry in one request), plus the startup read and
write of .sccache_check. s3:ListBucket is in the policy because S3 answers a missing object
with 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 AWS
GetObject reference; I have not run it against a real bucket with this exact policy.

@codecov-commenter

codecov-commenter commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.98%. Comparing base (0e8f184) to head (1c830cb).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sylvestre
sylvestre merged commit 1c7b8fc into mozilla:main Nov 24, 2026
51 checks passed
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.

Add S3 permissions required in documentation

3 participants