The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
DB password in a Macro
Hi
I use rapidminer 5.3 and I would like to use macro to define my url connection. For each connection I use %{dbUrl} as database url, %{dbUser} as database user and finaly %{dbPassword} as database password.
As the password is crypted, I can't see it in the gui and the xml is <parameter key="password"value="wmozxlSaf/NIcEbFJ1ZcnUdjsnoxdWvWq7MeuIaWnCs="/>
This method works well as long as i stay in the same computer. The issue is that this method doesn't work as soon as i try to copy the process or run it on another computer or server. After some search, i think this is due to the crypted password value which seems to belong to the computer.
Is there a way to prevent the password being crypted?
Thanks for your help
Jean-Philippe
I use rapidminer 5.3 and I would like to use macro to define my url connection. For each connection I use %{dbUrl} as database url, %{dbUser} as database user and finaly %{dbPassword} as database password.
As the password is crypted, I can't see it in the gui and the xml is <parameter key="password"value="wmozxlSaf/NIcEbFJ1ZcnUdjsnoxdWvWq7MeuIaWnCs="/>
This method works well as long as i stay in the same computer. The issue is that this method doesn't work as soon as i try to copy the process or run it on another computer or server. After some search, i think this is due to the crypted password value which seems to belong to the computer.
Is there a way to prevent the password being crypted?
Thanks for your help
Jean-Philippe
0
Answers
I think it's fair as it stops naughty people copying your process to their computer and then using it with access however they wish, but I do think that the ability to load a database connection file would be a nice feature to see in a later version of the ReadDatabase operator especially for cases where processes and connections need to be shared in this way.
In the short term I'd say you can quickly make a database connection using the Execute Script operator and return the data as an example set, but this is not ideal.
Unfortunately I don't have MySQL on my laptop at the moment or time to debug properly, but this might work (or is also just as likely to give errors).
It's based on this example of using the Execute Script operator to generate an example set by Haddock: https://rapid-i.com/rapidforum/index.php/topic,2214.msg8755.html#msg8755
And the first example here on making an SQL connection using Groovy: http://groovy.codehaus.org/Database+features
Good luck!
Thanks for your reply.
By browsing the source code, i find out the the password encryption belongs to the cypher.key file which can be found in the home directory.
The thing I still need to discover is there this file can be found in rapidanalytics.
Share the encryption keys between platform could be a solution for me.