mirror of
https://github.com/minio/minio
synced 2024-09-06 00:37:25 +00:00
remove legacy master_key support by June (#12153)
Signed-off-by: Harshavardhana <harsha@minio.io>
This commit is contained in:
parent
2966823818
commit
26544848ea
|
@ -345,8 +345,8 @@ func handleCommonEnvVars() {
|
|||
logger.Fatal(err, "Unable to parse the KMS secret key inherited from the shell environment")
|
||||
}
|
||||
} else if env.IsSet(config.EnvKMSMasterKey) {
|
||||
logger.LogIf(GlobalContext, errors.New("legacy KMS configuration"), fmt.Sprintf("The environment variable %q is deprecated and will be removed in the future", config.EnvKMSMasterKey))
|
||||
|
||||
// FIXME: remove this block by June 2021
|
||||
logger.LogIf(GlobalContext, fmt.Errorf("legacy KMS configuration, this environment variable %q is deprecated and will be removed by June 2021", config.EnvKMSMasterKey))
|
||||
v := strings.SplitN(env.Get(config.EnvKMSMasterKey, ""), ":", 2)
|
||||
if len(v) != 2 {
|
||||
logger.Fatal(errors.New("invalid "+config.EnvKMSMasterKey), "Unable to parse the KMS secret key inherited from the shell environment")
|
||||
|
|
Loading…
Reference in a new issue