Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

In Jira DC, need to hide password in groovy code

David Whitlock July 17, 2023

Hello, is there a way in Jira DC to hide a password being used in a JMWE groovy validator code?

2 answers

1 accepted

0 votes
Answer accepted
Florian Bonniec
Community Champion
July 17, 2023

Hi @David Whitlock 

 

I do not think so but base on the usage you may have solution that do not require to store the password.

ex; https://library.adaptavist.com/entity/get-request-using-trusted-request-factory

Reagrds

1 vote
David Fischer
Community Champion
July 17, 2023

Hi @David Whitlock ,

there are a few approaches. For example, you could save the password on a file in your Jira Home and read it from your Groovy script. You could also have it as a Java property added to your startup script. But generally, if you need a password, it'll need to be stored somewhere, and even though you can obfuscate it (or even encrypt it), the decryption code will need to be in Groovy so it will not be fully protected.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.20.10
TAGS
AUG Leaders

Atlassian Community Events