Commit 94df26d
s3: fix rclone ignoring static credentials when env_auth=true
The SDKv2 conversion introduced a regression to do with setting
credentials with env_auth=true. The rclone documentation explicitly
states that env_auth only applies if secret_access_key and
access_key_id are blank and users had been relying on that.
However after the SDKv2 conversion we were ignoring static credentials
if env_auth=true.
This fixes the problem by ignoring env_auth=true if secret_access_key
and access_key_id are both provided. This brings rclone back into line
with the documentation and users expectations.
Fixes rclone#80671 parent 4ee1c14 commit 94df26d
1 file changed
+9
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3052 | 3052 | | |
3053 | 3053 | | |
3054 | 3054 | | |
| 3055 | + | |
| 3056 | + | |
| 3057 | + | |
| 3058 | + | |
| 3059 | + | |
| 3060 | + | |
| 3061 | + | |
3055 | 3062 | | |
3056 | 3063 | | |
3057 | | - | |
| 3064 | + | |
3058 | 3065 | | |
3059 | 3066 | | |
3060 | 3067 | | |
| |||
3079 | 3086 | | |
3080 | 3087 | | |
3081 | 3088 | | |
3082 | | - | |
3083 | | - | |
3084 | | - | |
3085 | | - | |
3086 | | - | |
3087 | | - | |
3088 | | - | |
| 3089 | + | |
3089 | 3090 | | |
3090 | 3091 | | |
3091 | 3092 | | |
| |||
0 commit comments