From 54ec22e879b2c2e5c675ad3e33d6d1ff0a1c1c56 Mon Sep 17 00:00:00 2001 From: congqixia Date: Thu, 19 Jan 2023 15:49:44 +0800 Subject: [PATCH] Allow empty AK/SK for minio cfg (#21815) Signed-off-by: Congqi Xia --- internal/util/paramtable/service_param.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/util/paramtable/service_param.go b/internal/util/paramtable/service_param.go index ccd96094cc..f49896dfa7 100644 --- a/internal/util/paramtable/service_param.go +++ b/internal/util/paramtable/service_param.go @@ -604,14 +604,14 @@ func (p *MinioConfig) Init(base *BaseTable) { p.AccessKeyID = ParamItem{ Key: "minio.accessKeyID", Version: "2.0.0", - PanicIfEmpty: true, + PanicIfEmpty: false, // tmp fix, need to be conditional } p.AccessKeyID.Init(base.mgr) p.SecretAccessKey = ParamItem{ Key: "minio.secretAccessKey", Version: "2.0.0", - PanicIfEmpty: true, + PanicIfEmpty: false, // tmp fix, need to be conditional } p.SecretAccessKey.Init(base.mgr)