mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #1860] AWS CLI credentials other than $ HOME or less #946
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#946
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 @ggtakec on GitHub (Jan 14, 2022).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1860
There is a request to read the credential information(and region information) from the files(.aws/credential and config), which are the configure files of AWS CLI.
Those are different from the format of the passwd-s3fs file, but with the same credential information.
I would like to consider whether or not this should be supported.
@ggtakec commented on GitHub (Jan 14, 2022):
Duplicate of #1122.
@siketyan commented on GitHub (Jan 14, 2022):
@ggtakec
You s3fs-fuse already supports .aws/credentials file to read credentials from
$HOMEe.g./home/$USER/.aws/credentials.The option I suggested is to read this file from other location.
Background:
In MSYS2 environment, getting the home directory returns "/home/$USER" instead of "C:\Users$USER" for their compatibility. This behaviour blocks s3fs-fuse on Windows to read the file out of MSYS2 shell.
@ggtakec commented on GitHub (Jan 14, 2022):
Reopen this.
@gaul commented on GitHub (Jan 21, 2022):
We should follow the precedent of AWS CLI (and related SDKs) as closely as possible:
https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html#cli-configure-files-where
As I understand it
get_access_keysshould consider%UserProfile%when using Windows. In addition to consistency, this will allow the project to transition to the AWS C++ SDK some day #1068.@ggtakec commented on GitHub (Jan 22, 2022):
For Windows, let's use
%UserProfile%instead of$HOME.(After #1855 pr)