How to import the keys and secrets from Azure Key Vault in my katalon

Hi All,

I want to that how to import the keys and secrets from Azure Key Vault in my katalon so I can save my imported secrets to Global Variable during the execution for the usage.

Any help will be appreciated.

1 Like

Hi there, :wave:

Thank you very much for your topic! It may take a little while before Katalon team member or others forum members respond to you.

In the meantime, you can double-check your post to see if you can add any extra information i.e. error logs, HTML codes, screenshots, etc. Check out this posting guide to help us help you better!

Thanks! :sunglasses:
Katalon Community team

I have the same question as @svc_irs_ktln_prod, any updates from the Katalon team @system ?

My team has a web application that requires elevated/admin credentials and I cannot have the creds simply stored within Katalon Studio if at all possible.

Just a note that @system is a smart-less bot. I’m not sure if it is still going. People that may give you an update to help could be @Elly_Tran or @vu.tran.

Katalon has a feature to encrypt text; main menu Help > Encrypt Text. I’m not sure if that would be secure enough for you. I put my username along with my encrypted password (which needs to be changed every 90 days) in a spreadsheet in my personal folder. Yes, a Senior Network person could get access, but not just anybody with less creds as that was the way it was set up.

Maybe like:
	/**
	 * sign into NNN using the references in the spreadsheet
	 */
	@Keyword
	def signIntoNNN(String pathway) {
         // get username and password from spreadsheet
		FileInputStream fis = new FileInputStream (pathway)
		XSSFWorkbook workbook = new XSSFWorkbook (fis)

		XSSFSheet sheet = workbook.getSheet("Sheet1")

		// cell A2
		Row row = sheet.getRow(1)
		Cell cell = row.getCell(0)
		GlobalVariable.gUsername = cell.getStringCellValue()

		// cell A3
		row = sheet.getRow(2)
		cell = row.getCell(0)
		GlobalVariable.gPassword = cell.getStringCellValue()

		fis.close()

		// WebUI.comment(GlobalVariable.gUsername)
		// WebUI.comment(GlobalVariable.gPassword)

        WebUI.waitForElementVisible(findTestObject('myPage/input_Sign in_UserName'), 10)
		WebUI.setText(findTestObject('myPage/input_Sign in_UserName'), GlobalVariable.gUsername)
		WebUI.verifyElementAttributeValue(findTestObject('myPage/input_Sign in_UserName'), "value", GlobalVariable.gUsername, 10)

		WebUI.setEncryptedText(findTestObject('myPage/input_Sign in_Password'), GlobalVariable.gPassword)

		WebUI.click(findTestObject('myPage/span_Sign in'))
		WebUI.waitForPageLoad(10)
	}

From Azure point of view, Katalon Studio is a kind of “Java Application”. So you want to import keys and secrets from Azure Key Valut into your Java Application named “Katalon Studio”.

Microsoft published the following article. Just do as it tells you.

If you require an out-of-box solution provided by Katalon, raise an officail support ticket to Katalon and ask them.

1 Like