mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
enable SSE-KMS pass-through on S3 gateway (#7788)
This commit relaxes the restriction that the MinIO gateway does not accept SSE-KMS headers. Now, the S3 gateway allows SSE-KMS headers for PUT and MULTIPART PUT requests and forwards them to the S3 gateway backend (AWS). This is considered SSE pass-through mode. Fixes #7753
This commit is contained in:
committed by
kannappanr
parent
35c38e4bd8
commit
98d3913a1e
@@ -2135,7 +2135,7 @@ func registerBucketLevelFunc(bucket *mux.Router, api objectAPIHandlers, apiFunct
|
||||
func registerAPIFunctions(muxRouter *mux.Router, objLayer ObjectLayer, apiFunctions ...string) {
|
||||
if len(apiFunctions) == 0 {
|
||||
// Register all api endpoints by default.
|
||||
registerAPIRouter(muxRouter, true)
|
||||
registerAPIRouter(muxRouter, true, false)
|
||||
return
|
||||
}
|
||||
// API Router.
|
||||
@@ -2176,7 +2176,7 @@ func initTestAPIEndPoints(objLayer ObjectLayer, apiFunctions []string) http.Hand
|
||||
registerAPIFunctions(muxRouter, objLayer, apiFunctions...)
|
||||
return muxRouter
|
||||
}
|
||||
registerAPIRouter(muxRouter, true)
|
||||
registerAPIRouter(muxRouter, true, false)
|
||||
return muxRouter
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user