mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
do not set KMSSecretKey env from KMSSecretKeyFile (#20122)
fixes #20121
This commit is contained in:
parent
23db4958f5
commit
3ef59d2821
@ -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) {
|
if env.IsSet(config.EnvConfigEnvFile) {
|
||||||
ekvs, err := minioEnvironFromFile(env.Get(config.EnvConfigEnvFile, ""))
|
ekvs, err := minioEnvironFromFile(env.Get(config.EnvConfigEnvFile, ""))
|
||||||
if err != nil && !os.IsNotExist(err) {
|
if err != nil && !os.IsNotExist(err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user