Informix

 View Only
Expand all | Collapse all

dbexport encrypted, how to?

  • 1.  dbexport encrypted, how to?

    Posted Thu October 24, 2019 04:37 PM
    Hi,

    As I have seen over version 14.10 we can have encrypted databases, as on my backup scripts I use dbexport is it possible to decrypt on command? There are any option for that?

    SP

    ------------------------------
    Sergio Peres
    AIRC
    Coimbra
    ------------------------------

    #Informix


  • 2.  RE: dbexport encrypted, how to?

    IBM Champion
    Posted Thu October 24, 2019 05:18 PM
    Sergio:

    The database exports created by dbexport are NOT encrypted, regardless of whether there is Encryption At Rest (EAR) enabled on the server or not! So, no "decryption" is needed.

    Note that EAR encrypts the storage at the storage level and in flight between the server and storage. Once the data is in memory it is no longer encrypted so the data that dbexport, like all of the clients, sees is plain text.

    Art

    Art S. Kagel, President and Principal Consultant
    ASK Database Management


    Disclaimer: Please keep in mind that my own opinions are my own opinions and do not reflect on the IIUG, nor any other organization with which I am associated either explicitly, implicitly, or by inference.  Neither do those opinions reflect those of other individuals affiliated with any entity with which I am affiliated nor those of the entities themselves.








  • 3.  RE: dbexport encrypted, how to?

    Posted Thu October 24, 2019 06:58 PM
    Thanks for the reply,
    My questions are regarding the information I have seen on presentation about the possibility of export encryption?
    Is it possible? As I don't see any option on dbexport or dbimport for that how can I do it?

    SP

    ------------------------------
    Sergio Peres
    AIRC
    Coimbra
    ------------------------------



  • 4.  RE: dbexport encrypted, how to?

    Posted Thu October 24, 2019 09:51 PM
    The dbexport command does not seem to have an option to provide encryption functionality.
    If you want to encrypt the dbexport output, you can also use pipe.


    mkfifo pipe.1
    cat pipe.1 | gzip> file.unl.gz << You should use a utility that encrypts this way.

    dbexport -t /work1/INFORMIX/1410FC2/skjeong/test/pipe.1 -b 16 -s 24000 stores_demo


    Or is there a hidden option for encryption in the dbexport / dbimport command?

    I referenced Mike Walker's webcast material.
    https://www.advancedatatools.com/Downloads/AdvancedDataTools-Webcast-DB_Migrations_2_MikeWalker.pdf

    ------------------------------
    SangGyu Jeong
    Software Engineer
    Infrasoft
    Seoul Korea, Republic of
    ------------------------------



  • 5.  RE: dbexport encrypted, how to?

    Posted Fri October 25, 2019 06:11 AM
    Thanks for your reply,

    My question is related with data encryption feature, as far I remember we can have dbexport's now encrypted.
    This is one interesting feature but my doubts are related with data migration to another servers, how can we do it and what are the requirements for that feature.

    SP

    ------------------------------
    Sergio Peres
    AIRC
    Coimbra
    ------------------------------



  • 6.  RE: dbexport encrypted, how to?

    IBM Champion
    Posted Fri October 25, 2019 02:59 AM
    Hi Sergio,

    any details on or pointer to the presentation you're referring to?

     Andreas

    ------------------------------
    Andreas Legner
    ------------------------------



  • 7.  RE: dbexport encrypted, how to?

    Posted Fri October 25, 2019 06:07 AM
    Hi Andreas,

    Thanks for your reply,
    The information I have was seen on Lisbon presentation about 14.10.xC2, and I am interested about this feature regarding GDPR requirements.
    As I use dbexport on daily backups, I would like to encrypt my exports but I have some doubts about this procedure and also requirements. As it is related with data encryption is neeeded any special license? As we use workgroup edition is it possible?

    Best regards,

    SP

    ------------------------------
    Sergio Peres
    AIRC
    Coimbra
    ------------------------------



  • 8.  RE: dbexport encrypted, how to?

    IBM Champion
    Posted Fri October 25, 2019 06:24 AM
    Sergio:

    The only thing that I am aware of that's related to the question that is new in 14.10.xC1 is that archives taken with onbar and ontape (as well as archecker and onlog for reading) can encrypt and decrypt dbspaces and logical logs at restore time using remote key stores. I don't remember anything about dbexport encrypting anything. I believe that encrypting the archives themselves is scheduled for some future release. Can someone from HCL weigh in on this?

    Integrated Encryption

    The Informix Backup and Restore utilities (On-Bar, ontape, archecker, onlog) now have the capability to internally encrypt and decrypt dbspace, blobspace, smart blobspace and logical log backup data, using Remote Key Store servers that provide access to state of the art resources (entropy sources, key generators, centralized key management and rotation, etc. ) which are difficult to simulate in a stand-alone machine.

    The same utilities also offer a simple way to encrypt and decrypt data using a locally provided static encryption key.

    Art

    Art S. Kagel, President and Principal Consultant
    ASK Database Management


    Disclaimer: Please keep in mind that my own opinions are my own opinions and do not reflect on the IIUG, nor any other organization with which I am associated either explicitly, implicitly, or by inference.  Neither do those opinions reflect those of other individuals affiliated with any entity with which I am affiliated nor those of the entities themselves.








  • 9.  RE: dbexport encrypted, how to?

    Posted Fri October 25, 2019 09:18 AM
    This was Scott Picket's "Informix Roadshow". I don't think dbexport encryption is mentioned there.
    Regards

    ------------------------------
    FERNANDO NUNES
    ------------------------------



  • 10.  RE: dbexport encrypted, how to?

    Posted Fri October 25, 2019 09:27 AM
    No, the mention was about export encrypted data.

    ------------------------------
    Sergio Peres
    AIRC
    Coimbra
    ------------------------------



  • 11.  RE: dbexport encrypted, how to?

    Posted Fri October 25, 2019 07:19 AM
    HI Sergio,

    the question would be why do you use dbexport for backup ? The theory says that dbexport is not considered as a backup tool for a number of reasons, including that it cannot be done as a hot backup.

    Nowadays onbar with PSM is very easy to configure and use, it has a lot of advantages including backup encryption, point in time recovery and management of your backup media.

    If you need to recover partial data ( i.e databases or tables) from onbar, this is where the archecker can help you: yes you will need to do a bit of scripting to do so, but far from difficult.

    Maybe an interesting feature request to implement in HQ, i.e recover a table or a database from HQ ? ( @Gustavo C alias Mr Onbar)​

    Or do you have solid reasons not to use onbar ?
    Cumprimentos
    Eric

    ------------------------------
    [eric] [Verceletto] []
    [Founder]
    [kandooerp.org]
    [Pont l'Abbé] [France]
    [+33 626 52 50 68]
    ------------------------------



  • 12.  RE: dbexport encrypted, how to?

    Posted Fri October 25, 2019 09:02 AM

    Sounds like there is too much confusion about this topic.
    Currently we can encrypt dbspaces and that's called Encryption ar Rest (EaR). Any tool that accesses the data will see the data as non-encrypted. The encryption is transparent to all applications. The purpose of this type of encryption it to help in compliance regulations (like GDPR) and to avoid data access outside the database interfaces (if someone tries to access the data using OS tools, or if a customer needs to dispose a system and is concerned with data protection etc.). Note that even the communication between the database server and the client is not encrypted by EaR (we can use SSL for that).
    dbexport is just a database "client", so it will get the unencrypted data and will write it to disk. If there is a need to encrypt the data written by dbexport, then it can be done in several ways:
    1- Native OS filesystem encryption
    2- External file/filesystem encryption (using a tool like InfoSphere Guardium Data Encryption)
    3- Manually using openssl tools, after the data is written

    Someone suggested a pipe, but dbexport creates and writes to several files, so I don't know how a pipe could help.

    Apart from this we can also encrypt the backup images made with the backup utilities (dbexport is not intended for backups)

    Specifically for Sérgio, if you decide to use encryption at rest, that doesn't change anything for dbexport (data written by dbexport will be unencrypted)

    If you need to encrypt the data written by dbexport, then consider one of the three methods above.

    Regards.



    ------------------------------
    FERNANDO NUNES
    ------------------------------



  • 13.  RE: dbexport encrypted, how to?

    Posted Fri October 25, 2019 09:23 AM
    Thanks for your reply Fernando,

    I was wrong about funcionality, considering the data encryption I thought that as stated in the roadshow the data would be encrypted.
    Your explanation help me to understand about the features.

    Best regards,

    SP

    ------------------------------
    Sergio Peres
    AIRC
    Coimbra
    ------------------------------



  • 14.  RE: dbexport encrypted, how to?

    Posted Fri October 25, 2019 11:21 AM
    EaR will encypt the data on Informix dbspaces. If you try a "strings" command on a non-encrypted chunk you'll get the text it can find in there (names, addresses etc.). Not in a friendly format, but it means that anyone with some understanding of the Informix page format could extract the information.
    But the database server will transparently unencrypt it when a client request is done (SELECT) and will encrypt it again on writing (each time a page is written (INSERTs,UPDATEs,DELETEs etc.).
    That's why it's called "transparent" data encryption, because it can be put in place without any change in the way we interact with the database... result sets, backup images, any administrative interaction with the server etc. will not notice the data is encrypted.

    Additionally, another feature allows us to encrypt the backup images. Nothing similar exists for dbexport.

    All this is included... no extra cost. But if the requirement is to encrypt the data so that no one can see it without the key, then EaR is not the answer for that (assuming there is an answer that can be implemented.... but that's another story....)

    ------------------------------
    FERNANDO NUNES
    ------------------------------



  • 15.  RE: dbexport encrypted, how to?

    Posted Fri October 25, 2019 11:04 AM
    Thanks for mentioning the use of pipe.
    I've tested it more and running dbexport through a pipe doesn't seem to be a safe backup method.
    Strictly, of course, I think dbexport is closer to a migration tool than onbar and ontape.
    As you said, it would be better to use an encryption utility (openssl etc ..) on the files extracted by dbexport.

    ------------------------------
    SangGyu Jeong
    Software Engineer
    Infrasoft
    Seoul Korea, Republic of
    ------------------------------



  • 16.  RE: dbexport encrypted, how to?

    Posted Fri October 25, 2019 09:15 AM
    Hi Eric,

    Thanks for your reply, we use dbexport as often need to use databases over different informix versions,I know that isn't the corerct way to do backups but I don't know any other tool to permit version downgrade/upgrade.

    SP

    ------------------------------
    Sergio Peres
    AIRC
    Coimbra
    ------------------------------



  • 17.  RE: dbexport encrypted, how to?

    Posted Fri October 25, 2019 11:48 AM
    Sergio,


    just curious on the reasons why you have to upgrade downgrade ? 
    Would "cdr migrate server" be an option ? I should work with any version starting 11.70 and above 

    Else, again, with archecker and "a little bit of scripting", it would allow you to have decent backups and what you need

    ------------------------------
    [eric] [Verceletto] []
    [Founder]
    [kandooerp.org]
    [Pont l'Abbé] [France]
    [+33 626 52 50 68]
    ------------------------------



  • 18.  RE: dbexport encrypted, how to?

    Posted Fri October 25, 2019 11:54 AM
    @Fernando Nunes are we talking about reviving ON-LINE Secure ?

    Maybe not a stupid idea if we consider that many customers want more and more security ....​

    ------------------------------
    [eric] [Verceletto] []
    [Founder]
    [kandooerp.org]
    [Pont l'Abbé] [France]
    [+33 626 52 50 68]
    ------------------------------



  • 19.  RE: dbexport encrypted, how to?

    Posted Fri October 25, 2019 12:01 PM

    You would have to describe it to me... I'm getting old, but I'm not that old :P

    Seriously.... I don't know what "ONLINE-Secure" is. The current alternative to EaR would be column encryption... or tokenization.

    Informix can do column encryption, but the way we do it, makes it unusable in most situations. The way some other databases do it makes it unsecure. So basically I'm not a big fan of it :)



    ------------------------------
    FERNANDO NUNES
    ------------------------------