Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Masking/Hashing/Hidding Passwords in Scriptrunner

Phil P January 23, 2018

I have a script that is making a REST call to another platform(ServiceNow). Currently I'm just using basic authentication in my script which is fine but the username and password are being stored in plain text in the script.

I would like to have the password encrypted somehow but don't really know how to go about it.

Any help would be great!

1 answer

Suggest an answer

Log in or Sign up to answer
1 vote
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 23, 2018

I think you could save the username and the password in a file somewhere in the server where your Jira instance is installed and read the file during your script execution. It would let you not to save password in your script which is not good considering that the script must be saved in a version control system.

TAGS
AUG Leaders

Atlassian Community Events