mirror of https://github.com/apache/cloudstack.git
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>
(cherry picked from commit c5754e693f)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
6ccb9b1fc3
commit
64816dbfbd
|
|
@ -23,6 +23,8 @@ import javax.persistence.GenerationType;
|
|||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
import com.cloud.utils.db.Encrypt;
|
||||
|
||||
@Entity
|
||||
@Table(name = "usercredentials")
|
||||
public class UserCredentialsVO {
|
||||
|
|
@ -36,6 +38,7 @@ public class UserCredentialsVO {
|
|||
@Column(name = "AccessKey")
|
||||
private String accessKey;
|
||||
|
||||
@Encrypt
|
||||
@Column(name = "SecretKey")
|
||||
private String secretKey;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue