|
|
@ -278,23 +278,14 @@ func StartGateway(ctx *cli.Context, gw Gateway) { |
|
|
|
|
|
|
|
|
|
|
|
// Create new notification system.
|
|
|
|
// Create new notification system.
|
|
|
|
globalNotificationSys = NewNotificationSys(globalServerConfig, globalEndpoints) |
|
|
|
globalNotificationSys = NewNotificationSys(globalServerConfig, globalEndpoints) |
|
|
|
if globalEtcdClient != nil && newObject.IsNotificationSupported() { |
|
|
|
if enableConfigOps && newObject.IsNotificationSupported() { |
|
|
|
logger.LogIf(context.Background(), globalNotificationSys.Init(newObject)) |
|
|
|
logger.LogIf(context.Background(), globalNotificationSys.Init(newObject)) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Encryption support checks in gateway mode.
|
|
|
|
// Verify if object layer supports
|
|
|
|
{ |
|
|
|
// - encryption
|
|
|
|
|
|
|
|
// - compression
|
|
|
|
if (globalAutoEncryption || GlobalKMS != nil) && !newObject.IsEncryptionSupported() { |
|
|
|
verifyObjectLayerFeatures("gateway "+gatewayName, newObject) |
|
|
|
logger.Fatal(errInvalidArgument, |
|
|
|
|
|
|
|
"Encryption support is requested but (%s) gateway does not support encryption", gw.Name()) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if GlobalGatewaySSE.IsSet() && GlobalKMS == nil { |
|
|
|
|
|
|
|
logger.Fatal(uiErrInvalidGWSSEEnvValue(nil).Msg("MINIO_GATEWAY_SSE set but KMS is not configured"), |
|
|
|
|
|
|
|
"Unable to start gateway with SSE") |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Once endpoints are finalized, initialize the new object api.
|
|
|
|
// Once endpoints are finalized, initialize the new object api.
|
|
|
|
globalObjLayerMutex.Lock() |
|
|
|
globalObjLayerMutex.Lock() |
|
|
|