Skip to content

Commit

Permalink
Merge pull request #161 from FederatedAI/develop-1.11.0
Browse files Browse the repository at this point in the history
Develop 1.11.0
  • Loading branch information
idwenwen authored Apr 11, 2023
2 parents 94da5f5 + 113e24d commit e778f31
Show file tree
Hide file tree
Showing 7 changed files with 304 additions and 54 deletions.
8 changes: 8 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Release 1.11.0

#### Major Features and Improvements
**Major Features**

* Binning component display optimization
* Password configuration item allows encryption

# Release 1.10.0

#### Major Features and Improvements
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>fateboard</groupId>
<artifactId>fateboard</artifactId>
<version>1.10.0</version>
<version>1.11.0</version>

<parent>
<groupId>org.springframework.boot</groupId>
Expand All @@ -21,7 +21,7 @@

<properties>
<druid.version>1.1.10</druid.version>
<druid.version>1.1.10</druid.version>
<!-- <druid.version>1.1.10</druid.version>-->
<lombok.version>1.18.24</lombok.version>
<jasypt.version>2.0.0</jasypt.version>

Expand Down
2 changes: 1 addition & 1 deletion resources-front-end/src/transform/fn/binningDataHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export default function(data, header, type, partyId, role, Currentrole, skipStat
monotonicity: skipStatic ? '-' : (Currentrole === 'host' ? '-' : (data[key].isWoeMonotonic ? data[key].isWoeMonotonic.toString() : 'false')),
partyid: partyId,
role,
binning_count: data[key].splitPoints.length || data[key].ivArray.length
binning_count: parseFloat(data[key].binNums)
})
options.push({
value: key,
Expand Down
2 changes: 1 addition & 1 deletion resources-front-end/src/views/job-dashboard/log/Logs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export default {
getInstanceIdFromFlow() {
return getInstanceId().then((res) => {
const result = []
for (const [instance] of Object.entries(res.data)) {
for (const instance of Object.values(res.data)) {
if (instance.host === window.location.host) {
this.currentInstanceId = instance.instance_id
}
Expand Down
12 changes: 12 additions & 0 deletions src/main/java/com/webank/ai/fate/board/services/UserService.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
package com.webank.ai.fate.board.services;

import com.webank.ai.fate.board.pojo.UserDTO;
import com.webank.ai.fate.board.utils.StandardRSAUtils;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
Expand Down Expand Up @@ -63,6 +65,16 @@ public boolean checkUser(String username, String password) {
updateConfig();
String usernameValue = getValue("server.board.login.username");
String passwordValue = getValue("server.board.login.password");
String privateKey = getValue("server.board.encrypt.private_key");
String encrypted = getValue("server.board.encrypt.enable");
if (StringUtils.isNotBlank(privateKey) && "true".equalsIgnoreCase(encrypted)) {
try {
passwordValue = StandardRSAUtils.decryptByPrivateKey(passwordValue, privateKey);
} catch (Exception e) {
logger.error("decrypt password error");
return false;
}
}

if (!username.equals(usernameValue)) {
return false;
Expand Down
Loading

0 comments on commit e778f31

Please sign in to comment.