[GH-ISSUE #1860] AWS CLI credentials other than $ HOME or less #946

Open
opened 2026-03-04 01:50:08 +03:00 by kerem · 5 comments
Owner

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.

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. - Related - #1855
Author
Owner

@ggtakec commented on GitHub (Jan 14, 2022):

Duplicate of #1122.

<!-- gh-comment-id:1013312052 --> @ggtakec commented on GitHub (Jan 14, 2022): Duplicate of #1122.
Author
Owner

@siketyan commented on GitHub (Jan 14, 2022):

@ggtakec
You s3fs-fuse already supports .aws/credentials file to read credentials from $HOME e.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.

<!-- gh-comment-id:1013312455 --> @siketyan commented on GitHub (Jan 14, 2022): @ggtakec You s3fs-fuse already supports .aws/credentials file to read credentials from `$HOME` e.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.
Author
Owner

@ggtakec commented on GitHub (Jan 14, 2022):

Reopen this.

<!-- gh-comment-id:1013315633 --> @ggtakec commented on GitHub (Jan 14, 2022): Reopen this.
Author
Owner

@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_keys should consider %UserProfile% when using Windows. In addition to consistency, this will allow the project to transition to the AWS C++ SDK some day #1068.

<!-- gh-comment-id:1018506027 --> @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_keys` should consider `%UserProfile%` when using Windows. In addition to consistency, this will allow the project to transition to the AWS C++ SDK some day #1068.
Author
Owner

@ggtakec commented on GitHub (Jan 22, 2022):

For Windows, let's use %UserProfile% instead of $HOME.(After #1855 pr)

<!-- gh-comment-id:1019151436 --> @ggtakec commented on GitHub (Jan 22, 2022): For Windows, let's use `%UserProfile%` instead of `$HOME`.(After #1855 pr)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#946
No description provided.