-
Notifications
You must be signed in to change notification settings - Fork 552
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
Add support to specify credentials for S3 explicitly #2210
base: main
Are you sure you want to change the base?
Add support to specify credentials for S3 explicitly #2210
Conversation
src/cache/s3.rs
Outdated
builder.access_key_id(access_key_id); | ||
} | ||
|
||
if let Some(secret_access_key) = secret_access_key { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO, we should load password from env only with the login for preventing usage password from another account
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure that I understood what you meant.
You mean we should have checks to bail if only one of these are specified? None of them or both should be specified in order to work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we can do it in this case.
d5f4f48
to
fae1fa3
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2210 +/- ##
==========================================
+ Coverage 30.91% 40.86% +9.94%
==========================================
Files 53 55 +2
Lines 20112 20707 +595
Branches 9755 9827 +72
==========================================
+ Hits 6217 8461 +2244
- Misses 7922 8102 +180
+ Partials 5973 4144 -1829 ☔ View full report in Codecov by Sentry. |
987eb66
to
0923a45
Compare
0923a45
to
987eb66
Compare
Closes #2164
No breaking changes, because if environment variables (
SCCACHE_AWS_ACCESS_KEY_ID
,SCCACHE_AWS_SECRET_ACCESS_KEY
) or file configuration for credentials are not specified, sccache will try to load credentials from environment (includingAWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
)