mirror of
				https://github.com/minio/minio.git
				synced 2025-10-30 00:05:02 -04:00 
			
		
		
		
	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.
This commit is contained in:
		
							parent
							
								
									21cf29330e
								
							
						
					
					
						commit
						33c101544d
					
				| @ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user