Skip to content
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

AWS session token support #1

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

michallula
Copy link

Relevant Issue

Where to put aws_session_token information s3fs-fuse#651

Details

AWS Session Token support

src/curl.cpp Outdated
@@ -1194,6 +1195,17 @@ bool S3fsCurl::SetAccessKey(const char* AccessKeyId, const char* SecretAccessKey
return true;
}

bool S3fsCurl::SetAccessKeyWithSessionToken(const char* AccessKeyId, const char* SecretAccessKey, const char* SessionToken)
{
if((!S3fsCurl::is_ibm_iam_auth && (!AccessKeyId || '\0' == AccessKeyId[0])) || !SecretAccessKey || '\0' == SecretAccessKey[0] || !SessionToken || '\0' == SessionToken[0]){
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add multiple lines
bool accessKey = !AccessKeyId || '\0' == AccessKeyId[0])
...
if (!S3fsCurl::is_ibm_iam_auth && accessKey || SecretAccess

src/s3fs.cpp Outdated
@@ -4680,6 +4710,10 @@ static int my_fuse_opt_proc(void* data, const char* arg, int key, struct fuse_ar
is_ibm_iam_auth = true;
return 0;
}
if (0 == strcmp(arg, "use_session_token")) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why cannot we use STR2NCMP macro as is used bellow?

ggtakec and others added 3 commits April 9, 2019 23:29
Remove custom cppcheck from ppc64le Travis config
Mostly small fixes but also some reordering.  References s3fs-fuse#929.  Found
via:

diff -u <(man --no-hyphenation doc/man/s3fs.1 | tr -s ' ' '\n' | sed '/^-o$/d' ) <(src/s3fs --help | tr -s ' ' '\n' | sed '/^-$/d')
@michallula michallula force-pushed the master branch 4 times, most recently from 560a524 to a8e88df Compare April 14, 2019 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants