From 3ef59d28218bbec7aa232618ecf08e766b9b3601 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Sun, 21 Jul 2024 14:39:15 -0700 Subject: [PATCH] do not set KMSSecretKey env from KMSSecretKeyFile (#20122) fixes #20121 --- cmd/common-main.go | 10 ---------- 1 file changed, 10 deletions(-) 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) {