Using LogProxy to download logs for splunk ingestion
When you are using LogProxy to replicate the logs from collibra to local instance, how to encrypt the user/password ? The readme in logproxy says:
The COLLIBRA_ENCRYPT_KEY environment variable defines the private key used to decrypt the user/password.
It must be set if you’re passing in user/password wrapped with ![text]. These tokens denote the text is
encrypted.
From logproxy.sh
export COLLIBRA_ENCRYPT_KEY=changeme
java -jar bin/console-logproxy-5.7.9-FINAL.jar -host localhost -port 4402 -user Admin -password admin -ssl false -polltime 30 -logProxyDir C:/Sandbox/logProxy
I encrypted the user/password using aes256 and the key ( changeme ), but it did not work. What encryption should be used for this to work?
thanks.
rajmenattamai
Posted 3 years ago · Edited 1 year ago·Last reply 3 years ago
3 comments
rajmenattamai
OP3 years ago · EditedThis worked for me.
Got the password manager zip from collibra.
Avoid special characters in the password, and use long password.
Encrypted the user and password using the above and used wrap option. Encrypted strings will be in the following format ![randomstring] . While using this in the logproxy’s shell script the ! needs to be escaped.
Used the following command in the encrypt.sh file in log proxy.
export COLLIBRA_ENCRYPT_KEY=changeme ( this should be same as the one used for encrypting the user,password using password manager )
java -jar bin/console-logproxy-2023.02-FINAL.jar -host {yourcollibrahost} -port 443 -password \ENCRYPEDPASSWORD -user \ENCRYPTEDUSERNAME -ssl true -polltime 30 -logProxyDir /tmp/collibralogs
escape the leading ! in the encrypted user/password with \. Do not use quotes around them.
Tom Friesen
·3 years ago · EditedAny update on this, @rajasekaran.menattamai.commonsecuritization.com? (Actually… @john.dorney: can you help us out?)
Tom Friesen
·3 years ago · EditedWelcome to Data CItitzens, Raj. From my administrator:
We’re running into this exactly now as well! Anyone? @spring-team.collibra.com?