无值不替换为*

dev
truthhun 6 months ago
parent d2e68ba422
commit 87267ef477

@ -103,7 +103,7 @@ func (s *ConfigAPIService) ListConfig(ctx context.Context, req *pb.ListConfigReq
} }
for idx, cfg := range configs { for idx, cfg := range configs {
if cfg.IsSecret { if cfg.IsSecret && cfg.Value != "" {
configs[idx].Value = "******" configs[idx].Value = "******"
} }
} }

Loading…
Cancel
Save