• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Database username & pwd

 
Meg Adal
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Jboss at present we are keeping the Database username and pwd in db2-ds.xml file in plain text.
Since our database has some importatnt data, from security point we don't want keep the username and pwd in plain text.

Is there any way we can encrypt the same and have Jboss to decrypt and read it?

Thanks in advance.
M.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure about the username, but you can encrypt the password as mentioned at EncryptingDataSourcePasswords
[ March 08, 2007: Message edited by: Jaikiran Pai ]
 
Jan Cumps
Bartender
Posts: 2602
13
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible for you to restrict access to that file to:
- read-only for the OS user that runs JBoss,
- read-write for the system administrator
- no access for the rest of the world?

Regards, Jan
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, but it has a couple of steps. You cannot put the encrypted text into the datasource, so you need to put it somewhere else.

So here are the steps.
http://wiki.jboss.org/wiki/Wiki.jsp?page=EncryptingDataSourcePasswords

Mark
 
Jan Cumps
Bartender
Posts: 2602
13
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
encrypt the password as mentioned at EncryptingDataSourcePasswords

That's a nice one!

Regards, Jan
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wow, three posts all within the same time. Give or take a minute

Mark
 
Meg Adal
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you all for the quick reply
M.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic