Skip to content

Commit 753cf52

Browse files
haipham23igorlukanin
authored andcommitted
fix: getting secret_key from env
1 parent 4062cd7 commit 753cf52

File tree

1 file changed

+2
-1
lines changed
  • rust/cubestore/cubestore/src/remotefs

1 file changed

+2
-1
lines changed

rust/cubestore/cubestore/src/remotefs/s3.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ fn spawn_creds_refresh_loop(
189189

190190
(Some(access_key), Some(secret_key))
191191
} else {
192-
(role_or_access_key, None)
192+
let secret_key = env::var("CUBESTORE_AWS_SECRET_ACCESS_KEY").ok();
193+
(role_or_access_key, secret_key)
193194
};
194195

195196
let c = match Credentials::new(

0 commit comments

Comments
 (0)