Browse Source

kms: Expose API when bucket federation is enabled (#20143)

kms: Expose API available when bucket federation is enabled

When bucket federation feature is enabled, KMS API will not work, such
as `mc admin kms key list`

The commit will fix the issue by disabling bucket forwarding when this
is a KMS request.
pull/20158/head
Anis Eleuch 1 year ago
committed by GitHub
parent
commit
33c101544d
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      cmd/generic-handlers.go

2
cmd/generic-handlers.go

@ -469,7 +469,7 @@ func setBucketForwardingMiddleware(h http.Handler) http.Handler {
}
if globalDNSConfig == nil || !globalBucketFederation ||
guessIsHealthCheckReq(r) || guessIsMetricsReq(r) ||
guessIsRPCReq(r) || guessIsLoginSTSReq(r) || isAdminReq(r) {
guessIsRPCReq(r) || guessIsLoginSTSReq(r) || isAdminReq(r) || isKMSReq(r) {
h.ServeHTTP(w, r)
return
}

Loading…
Cancel
Save