This is regarding on the rundeck access to the oracle database. I understand rundeck would require the user id and password to be configured in the "rundeck-config.properties" as plain text in order to access oracle database.
As per our security policy, it does not allow us to configure password as plain text So I just want to check any type of encryption that it support to keep password in the encrypted way as suppose to be in plain text.
Appreciate your response on this. Thank you.
Sathish
--
You received this message because you are subscribed to the Google Groups "rundeck-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rundeck-discu...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Groovy Configurationimport my.company.encryption.BlowfishCodecdataSource {username = "foo"
password = "438uodf9s872398783r"
passwordEncryptionCodec = BlowfishCodec}
Encryption Logic in java
import java.security.*;
import javax.crypto.*;import javax.crypto.spec.*;class BlowfishCodec {static encode(target) {
def cipher = getCipher(Cipher.ENCRYPT_MODE)return cipher.doFinal(target.bytes).encodeBase64()
}static decode(target) {
def cipher = getCipher(Cipher.DECRYPT_MODE)return new String(cipher.doFinal(target.decodeBase64()))
}private static getCipher(mode) {
def keySpec = new PBEKeySpec(getPassword())
def cipher = Cipher.getInstance("Blowfish")
def keyFactory = SecretKeyFactory.getInstance("Blowfish")
cipher.init(mode, keyFactory.generateSecret(keySpec))
}private static getPassword() { "secret".toCharArray() }
static void main(args) {
if(args) {
println encode(args[0]) } }}
}}}