Encrypt Password and User values that come from a cube

Post Reply
AnonimusMax
Posts: 60
Joined: Thu Nov 17, 2016 2:13 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2013

Encrypt Password and User values that come from a cube

Post by AnonimusMax »

Hi!
I have a parameters cube, the cube structure is: Month dimension, Year Dimension, Parameters Dimension, Entityes Dimension
In this cube we store the user and the password used in TI processes that load data from Oracle( DB User and Password).
Is there a way that when you open the cube to not see the password in clear (I want it to be encrypted)?
But when all the processes are executed...the password has to be decrypted ( we obtain the password and the user with CellGetS used in the TI process).

Thank you
Wim Gielis
MVP
Posts: 3240
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.1.5
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

Re: Encrypt Password and User values that come from a cube

Post by Wim Gielis »

Isn't that the whole purpose of security ?
Best regards,

Wim Gielis

IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
tomok
MVP
Posts: 2836
Joined: Tue Feb 16, 2010 2:39 pm
OLAP Product: TM1, Palo
Version: Beginning of time thru 10.2
Excel Version: 2003-2007-2010-2013
Location: Atlanta, GA
Contact:

Re: Encrypt Password and User values that come from a cube

Post by tomok »

Who are you trying to hide the information from? Users? If that's the case then just don't give any users READ or WRITE access to the cube. If it is everyone then it is not possible as Admins will still be able to see what's in the cube. What you can do is store the Oracle ID and password in a text file and store that file in a share that has restricted access. Then you just have a wrapper process that opens the Oracle ID file and reads the ID and password, assigns them to a parameter, and then calls whatever process that needs them. You can use this same wrapper process to get the Oracle ID and password for all of your Oracle-related TI processes.
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
AnonimusMax
Posts: 60
Joined: Thu Nov 17, 2016 2:13 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2013

Re: Encrypt Password and User values that come from a cube

Post by AnonimusMax »

Thank you for your replay.

But isn t there a way to encrypt the value from that cell, that when a user opens the cube to not be able to read that information?
I think if you look inside the control cube }ClientProperties , you ll find a field Password witch I think it is encrypted.
I was trying to do the same for my DB pass and user. Is it possible?

Thank you
tomok
MVP
Posts: 2836
Joined: Tue Feb 16, 2010 2:39 pm
OLAP Product: TM1, Palo
Version: Beginning of time thru 10.2
Excel Version: 2003-2007-2010-2013
Location: Atlanta, GA
Contact:

Re: Encrypt Password and User values that come from a cube

Post by tomok »

AnonimusMax wrote:But isn t there a way to encrypt the value from that cell, that when a user opens the cube to not be able to read that information?
No, not as part of TM1. You could encrypt it yourself before storing in the cube but then you'd have to put a routine in your TI to unencrypt whenever using. You might be able to write an unencrypt function in Java and call that from your TI.
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
AnonimusMax
Posts: 60
Joined: Thu Nov 17, 2016 2:13 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2013

Re: Encrypt Password and User values that come from a cube

Post by AnonimusMax »

Thank you for your suggestion! Do you have an example of how to use this java function?

I was thinking of another solution, but I do not know if this is a good one and I wanted to share this idea with you.
In the measure dimension I store the password using a string element. Do you know if there is a custom format to apply for this string element? I was thinking to apply a format that when I open the cube, the cell where I store the password to be blank due to the custom format that is applied, but when the TI reads the value stored, it should read the correct password.

For example...I store the following password: 12$34fTb!
When I open the cube, this value will not be shown even if it has a values, but when TI reads the value , reads not blank spaces, but the real password (12$34fTb!)
User avatar
qml
MVP
Posts: 1097
Joined: Mon Feb 01, 2010 1:01 pm
OLAP Product: TM1 / Planning Analytics
Version: 2.0.9 and all previous
Excel Version: 2007 - 2016
Location: London, UK, Europe

Re: Encrypt Password and User values that come from a cube

Post by qml »

AnonimusMax wrote:I was thinking of another solution, but I do not know if this is a good one and I wanted to share this idea with you.
In the measure dimension I store the password using a string element. Do you know if there is a custom format to apply for this string element? I was thinking to apply a format that when I open the cube, the cell where I store the password to be blank due to the custom format that is applied, but when the TI reads the value stored, it should read the correct password.
It is possible to do that. A custom format of '!' will display a string as empty. This, however, is a classic example of security through obscurity. Anyone with read access will still be able to copy the seemingly-but-not-really-empty value and paste it elsewhere or just slice it to Excel.

Which brings us back to tomok's all-important question: who are you trying to hide the Oracle password from? Once you answer that question we will be able to suggest an appropriate solution.
Kamil Arendt
AnonimusMax
Posts: 60
Joined: Thu Nov 17, 2016 2:13 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2013

Re: Encrypt Password and User values that come from a cube

Post by AnonimusMax »

Hi,

Thank you very much. This worked. I was trying to hide it from admins.
I was trying in parallel with Java, but if i manage to make it work with JAVA it means that i have to change all the TIs that are using ODBC, because in those processes i get my password and user with CellGetS.
User avatar
qml
MVP
Posts: 1097
Joined: Mon Feb 01, 2010 1:01 pm
OLAP Product: TM1 / Planning Analytics
Version: 2.0.9 and all previous
Excel Version: 2007 - 2016
Location: London, UK, Europe

Re: Encrypt Password and User values that come from a cube

Post by qml »

You've now 'protected' the password from admins in a way I can only liken to closing one's eyes in order to make things invisible.

Check out this thread for other ideas on how to do it better. Especially Brian and Paul made some good suggestions.
Kamil Arendt
AnonimusMax
Posts: 60
Joined: Thu Nov 17, 2016 2:13 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2013

Re: Encrypt Password and User values that come from a cube

Post by AnonimusMax »

Ok, i will check :D

Thank you :)
Post Reply