mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[PR #1917] [MERGED] Changed handling the credential in S3fsCred more robust #2253
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#2253
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/1917
Author: @ggtakec
Created: 2/23/2022
Status: ✅ Merged
Merged: 3/2/2022
Merged by: @gaul
Base:
master← Head:s3fscred_for_robust📝 Commits (1)
db338bfChanged handling the credential in S3fsCred more robust📊 Changes
5 files changed (+423 additions, -237 deletions)
View changed files
📝
src/curl.cpp(+90 -125)📝
src/curl.h(+8 -8)📝
src/s3fs.cpp(+5 -11)📝
src/s3fs_cred.cpp(+285 -59)📝
src/s3fs_cred.h(+35 -34)📄 Description
Relevant Issue (if applicable)
#1878, etc
Details
This PR makes the process of handling s3fs Credentials more concealed and robust to the S3fsCred class.
Also, the acquisition of
access key id/secret/tokenis aggregated in the CheckIAMCredentialUpdate method.And, until now the process of reacquiring the Token was not exclusively controlled, but it has been changed to use the
AutoLockobject.In #1890, s3fs received a PUT request's response 500 and tried to retry(
### retrying ...), after that s3fs caught a segfault.In the process of retry, insertAuthHeaders () is called by S3fsCurl :: RequestPerform method, and no log is output after that.
If insertAuthHeaders () is involved in this segfault, it may be fixed in this PR.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
std::unique_ptr#2418