mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[PR #1878] [MERGED] Added S3fsCred class and moved Credential related processing in it #2223
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#2223
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?
📋 Pull Request Information
Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/1878
Author: @ggtakec
Created: 1/30/2022
Status: ✅ Merged
Merged: 2/13/2022
Merged by: @gaul
Base:
master← Head:cred_class📝 Commits (1)
0f480f2Added S3fsCred class and moved Credential related processing in it📊 Changes
13 files changed (+1254 additions, -917 deletions)
View changed files
📝
src/Makefile.am(+1 -0)📝
src/common.h(+0 -2)📝
src/curl.cpp(+63 -298)📝
src/curl.h(+4 -46)📝
src/curl_util.cpp(+6 -5)📝
src/fdcache.cpp(+6 -5)📝
src/fdcache_entity.cpp(+1 -1)📝
src/fdcache_stat.cpp(+3 -2)📝
src/s3fs.cpp(+68 -556)➕
src/s3fs_cred.cpp(+920 -0)➕
src/s3fs_cred.h(+154 -0)📝
src/s3fs_global.cpp(+0 -2)📝
src/test_curl_util.cpp(+28 -0)📄 Description
Relevant Issue (if applicable)
n/a
Details
In current s3fs, Management of Credential(or AccessKey, Token, etc) processing and options(variables) for server is scattered in s3fs.cpp and S3fsCurl classes, etc.
These variables, functions, etc. should be grouped in new S3fsCred class so that information related to Credentials can be centrally managed.
With this PR code, I didn't change about the logic, I just aggregated those into new S3fsCred class.
NOTE
I think this is necessary in the feture because the code become complicated for the support for aws-sdk-cpp and other providers different from AWS S3.
If necessary, it is possible to modify this class, such as separating it into a base class and a derived class.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.