Skip to content

Commit c5754e6

Browse files
Prachi Damleyadvr
authored andcommitted
CS-20680: The user's secret key is not encrypted in the UserCredentialsVO class
Changes: -Added annotation to encrypt the secret key while persisting to the DB Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 0d36f2e commit c5754e6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎awsapi/src/com/cloud/bridge/model/UserCredentialsVO.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
import javax.persistence.Id;
2424
import javax.persistence.Table;
2525

26+
import com.cloud.utils.db.Encrypt;
27+
2628
@Entity
2729
@Table(name = "usercredentials")
2830
public class UserCredentialsVO {
@@ -36,6 +38,7 @@ public class UserCredentialsVO {
3638
@Column(name = "AccessKey")
3739
private String accessKey;
3840

41+
@Encrypt
3942
@Column(name = "SecretKey")
4043
private String secretKey;
4144

0 commit comments

Comments
 (0)