mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #1122] profile option is not sufficient to authenticate #594
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#594
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ooverandout on GitHub (Aug 7, 2019).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1122
sf3s: 1.85
Linux Mint 19.2
Hi! I am trying to run s3fs the same way as I am running aws cli with profile name. However, while profile name is sufficient with aws cli to trigger my MFA authorization and proceed with command, s3fs seems just to not see inside the bucket. Also, profile option seems to use my profile setup from credentials, instead of ~/.aws/config:
@gaul commented on GitHub (Aug 7, 2019):
Try using s3fs 1.85. 1.82 does not include the
-o profileoption.@ooverandout commented on GitHub (Aug 7, 2019):
Hi ! I use 1.85, please read my post once more (I have updated it some Time ago)
@OJFord commented on GitHub (May 29, 2020):
I have the same issue, with
--version:To be clear, OP & I are using an aws/config (not a credentials) file, and in my case it specifies an external process to execute in order to retrieve the credentials:
so there is no file
~/.aws/credentials.https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sourcing-external.html
Additionally, the error pointing at~/.aws(expanded) suggests that it's ignoring theAWS_CONFIG_FILEenvironment variable, which in my case points at$XDG_CONFIG_HOME/aws, which is different to that default from the error message.https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html
Edit: Actually, I might be wrong about the last bit, since I see
AWS_CONFIG_FILEpoints directly at the.../aws/config, and there's a separateAWS_SHARED_CREDENTIALS_FILE, which of course I haven't set because I don't have one, so that would be correct to be looking in the default credentials location, if only I hadn't specified acredential_processin myAWS_CONFIG_FILE.@gaul commented on GitHub (Jul 25, 2021):
This might not be difficult to implement:
https://docs.aws.amazon.com/sdkref/latest/guide/setting-global-credential_process.html
Essentially s3fs just runs the process on startup and periodically renews it based on
Expiration.@OJFord commented on GitHub (Jul 25, 2021):
@gaul I assume this is only an issue because it's not just delegated to the SDK? (I haven't used the C++ one, but as I understand they're all generated from the same; in Go, Python, and Rust I've just made whatever call without being explicit about authentication, and it works as expected looking for credentials according to precedence in the docs.) Is there a reason it can't be?
Edit: Ah actually, I haven't done much more than search 'Aws.h', but it looks like the SDK might not be used in s3fs at all?
Edit 2: 🤦🏻 now I see #1068 'consider using AWS SDK' linked above. Sorry.
@gaul commented on GitHub (Jul 29, 2021):
Unfortunately s3fs does not use the AWS SDK. The historical reason for this is that s3fs was written in 2007 and the SDK in 2015. But using the SDK requires a fair amount of rewriting, imposes some environment restrictions, and most (all?) distributions don't have the library which creates headaches for our packagers.