mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	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 c5754e693f0272b29fc0aa89278a30ee967f12f9) 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.Id; | ||||||
| import javax.persistence.Table; | import javax.persistence.Table; | ||||||
| 
 | 
 | ||||||
|  | import com.cloud.utils.db.Encrypt; | ||||||
|  | 
 | ||||||
| @Entity | @Entity | ||||||
| @Table(name = "usercredentials") | @Table(name = "usercredentials") | ||||||
| public class UserCredentialsVO { | public class UserCredentialsVO { | ||||||
| @ -36,6 +38,7 @@ public class UserCredentialsVO { | |||||||
|     @Column(name = "AccessKey") |     @Column(name = "AccessKey") | ||||||
|     private String accessKey; |     private String accessKey; | ||||||
| 
 | 
 | ||||||
|  |     @Encrypt | ||||||
|     @Column(name = "SecretKey") |     @Column(name = "SecretKey") | ||||||
|     private String secretKey; |     private String secretKey; | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user