Skip to content

Commit 1d5064a

Browse files
committed
feat(utm): enhance configuration encryption to support file data type
1 parent e030ea8 commit 1d5064a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/src/main/java/com/park/utmstack/service/application_modules/UtmModuleGroupConfigurationService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public UtmModule updateConfigurationKeys(Long moduleId, List<UtmModuleGroupConfi
6262
for (UtmModuleGroupConfiguration key : keys) {
6363
if (key.getConfRequired() && !StringUtils.hasText(key.getConfValue()))
6464
throw new Exception(String.format("No value was found for required configuration: %1$s (%2$s)", key.getConfName(), key.getConfKey()));
65-
if (key.getConfDataType().equals("password"))
65+
if (key.getConfDataType().equals("password") || key.getConfDataType().equals("file"))
6666
key.setConfValue(CipherUtil.encrypt(key.getConfValue(), System.getenv(Constants.ENV_ENCRYPTION_KEY)));
6767
}
6868
moduleConfigurationRepository.saveAll(keys);

0 commit comments

Comments
 (0)