I am working on automation to rotate access keys for AWS we use inside various workflows that interact with the cloud. We currently store out Access Keys/Secret Keys in LOGIN objects on the system and would like to write a workflow that creates a new access key for the service account and then automatically updates the LOGIN object with the new access key before disabling the old access key.
I obviously utilize the GET_LOGIN function to pull usernames and passwords for me custom login type of AWS. But am not finding anywhere a function that would allow you to set new username/password for a target Name/Type inside the LOGIN object.
Is this possible?
I would check out the script function: MODIFY_OBJECT
Looks like the parameter ADD can be used to update the password if the entry already exists.
If you're comfortable using the Java APIs, you could also use LoginDefinition.setPassword().
I guess using the Java API, as mentioned by Michael, is the only way to do the in an automated way.
I've tried to use the java api for login object password update in version 12.3.4.For this I used LOGIN_Object.jar which is available in Marketplace.
Update itself of the login object works fine. But unfortunately, the inserted password seems to be corrupted.
Does someone knows if there is a special trick?
Content of Password:
Is setPassword() not compatible with login objects of Type "PASSWORD"?