diff --git a/cmd/common-main.go b/cmd/common-main.go index be3f4a1a0..70abf6d29 100644 --- a/cmd/common-main.go +++ b/cmd/common-main.go @@ -685,16 +685,6 @@ func loadEnvVarsFromFiles() { } } - if env.IsSet(kms.EnvKMSSecretKeyFile) { - kmsSecret, err := readFromSecret(env.Get(kms.EnvKMSSecretKeyFile, "")) - if err != nil { - logger.Fatal(err, "Unable to read the KMS secret key inherited from secret file") - } - if kmsSecret != "" { - os.Setenv(kms.EnvKMSSecretKey, kmsSecret) - } - } - if env.IsSet(config.EnvConfigEnvFile) { ekvs, err := minioEnvironFromFile(env.Get(config.EnvConfigEnvFile, "")) if err != nil && !os.IsNotExist(err) {