Best practice to pass DB password as Parameter

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
chetan.c
Participant
Posts: 112
Joined: Tue Jan 17, 2012 2:09 am
Location: Bangalore

Best practice to pass DB password as Parameter

Post by chetan.c »

Hi,

I would like to know what is the best practice to securely pass the DB password to a job.

Currently I have it defined as Environment variable(encrypted).
Is this the best way to do it?

All the other required parameters are fetched from the table.

Thanks,
Chetan.C
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

As long as you keep the password in encrypted fields so that they are not easily visible then you've done as much as possible. I like to keep such passwords as encrypted project-level environment variables.
dspwr11
Premium Member
Premium Member
Posts: 1
Joined: Tue May 29, 2012 8:06 am
Location: Bangalore

Post by dspwr11 »

Thanks Arnd.
One step short of crazy..
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

In version 8.7 you can encrypt the password using the encrypt.sh utility and use that encrypted password directly on the dsjob command line or in the file referred to by that command's -file option.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chetan.c
Participant
Posts: 112
Joined: Tue Jan 17, 2012 2:09 am
Location: Bangalore

Post by chetan.c »

Thanks Ray.
I'm currently using it to encrypt the Datastage password.
Will extend it to the DB password too.

Thanks,
Chetan.C
chetan.c
Participant
Posts: 112
Joined: Tue Jan 17, 2012 2:09 am
Location: Bangalore

Post by chetan.c »

Just encrypted the password and used it in the job.Its working fine.
Thanks Arnd and Ray.
Post Reply