mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-24 21:06:02 +03:00
[PR #2806] [MERGED] Abort requests when SSE headers cannot be set #2802
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#2802
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/2806
Author: @CarstenGrohmann
Created: 2/22/2026
Status: ✅ Merged
Merged: 2/22/2026
Merged by: @ggtakec
Base:
master← Head:add_missing_returns📝 Commits (1)
a76f84dAbort requests when SSE headers cannot be set📊 Changes
1 file changed (+18 additions, -9 deletions)
View changed files
📝
src/curl.cpp(+18 -9)📄 Description
AddSseRequestHead()returned true even when the SSE-C key lookup failed, and all eight callers logged a warning but continued without encryption. If something goes wrong with SSE setup, data would be sent unencrypted.In practice the error path is unreachable today because startup validation in
FinalCheckSse()prevents s3fs from running with SSE-C and an empty key list. But the code should not rely on that -- ifAddSseRequestHeadfails, the request must not proceed.Return false from
AddSseRequestHeadon SSE-C key failure and abort with-EIOat all call sites, consistent with howPreHeadRequestalready handles this case.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.