Even if the password is in the .sh script, the java command that the shell script executes will still be visible in the process tree ('ps' output on Unix).
Is there a way to have the java programs read a property file where the password (and username) could be stored?
I would think an environment variable might be more useful. An environment variable can be used in the sh/bat file too, but probably it gets resolved too early to help in your case. So probably need the program to also look for a specific environment variable if the password is not set or is a special value. Please create an issue. Why would you need this for user?
Thanks. I opened CSOAP-153.
Setting the user in the config file is not necessary. The idea, however, was that a config file could be more general-purpose than just holding a password. It could be used to set any setting that the CLI program would normally require on the command-line.
Either implemention, environment variable or config file, is fine for me.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Heya, Hipchat friends! We’re so happy you’re checking out Stride. Whether you know it or not, you have been instrumental in making Stride come to life. Every feature, design, and functionality...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs