cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How hybris reads database credentials from local.properties. ?

Former Member
0 Likes
840

Hi,

Can someone explain How hybris reads database credentials from local.properties. ? is there any way to encreprt/decrept these properties.

Thanks, -Devraj

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

You should be able to use the ConfigurationService from the Service Layer, to extend it, to use JASYPT. Again, it depends on how/where you manage to store the private keys.

Answers (1)

Answers (1)

Former Member
0 Likes

Database credentials from local.properties are read (plain text). However, you can secure that in your production environment, with additional implementation work on part of IT (assuming you have full control). You can also use JNDI. Please see https://help.hybris.com/6.2.0/hcd/c8145542c2564bb29f6cf2fb6fe67b90.html subsection Database connection details and JNDI.

Former Member
0 Likes

You can also use libraries like Jasypt or any commercial custom solution specifically designed around passwords in properties files.

Former Member
0 Likes

Thanks a lot Prashant, Actually i was looking for the class/method name that reads database properties from local.properties so that i can use jasypt and decrept the value there.

Need the class name to override.