update KMS docs indicating deprecation of AUTO_ENCRYPTION env

This commit is contained in:
Harshavardhana
2020-09-13 16:23:18 -07:00
parent 74a7889a3e
commit 9d95937018
2 changed files with 16 additions and 17 deletions

View File

@@ -455,7 +455,7 @@ func lookupConfigs(s config.Config, setDriveCount int) {
// Enable auto-encryption if enabled
globalAutoEncryption = kmsCfg.AutoEncryption
if globalAutoEncryption {
if globalAutoEncryption && !globalIsGateway {
logger.LogIf(ctx, fmt.Errorf("%s env is deprecated please migrate to using `mc encrypt` at bucket level", crypto.EnvKMSAutoEncryption))
}