|
@@ -92,12 +92,20 @@ public class PropertyController {
|
|
|
|
|
|
if (!adminSession.getUser().hasRole(env.getType().getRole())) {
|
|
|
for (PropertyItem item : list) {
|
|
|
+
|
|
|
if (item.getKey().contains("secret") || item.getKey().contains("password")) {
|
|
|
|
|
|
if (!(item.getValue().startsWith("${") && item.getValue().endsWith("}"))) {
|
|
|
item.setValue("***");
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ else if (item.getKey().startsWith("com.qmth.fss") && item.getKey().endsWith("config")) {
|
|
|
+ if (item.getValue().startsWith("oss")) {
|
|
|
+ String value = item.getValue();
|
|
|
+ item.setValue("oss://***" + value.substring(value.indexOf("@")));
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
return list;
|