Masking/Hashing/Hidding Passwords in Scriptrunner

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

This widget could not be displayed.
Alexey Matveev Community Champion Jan 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.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

206 views 1 3
Join discussion

Atlassian User Groups

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!

Find my local user group

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

Groups near you