Search code examples
encryptionstorage

PieCloudDB's data storage encryption


PieCloudDB supports data storage encryption, but where is the default key of the storage encryption?

How can I access this encryption key?


Solution

  • PieCloudDB supports TDE(Transparent Data Encryption),the encryption key is stored in the metadata. You can log in to metadata cluster using "fdbcli" command and execute the following command to get the key value:

    listternants 
    
    usetenant keytest; ###designate the corresponding tenant 
    
    writenmode on ###open write mode 
    
    ###execute the following "get" command, querying the value of master key. 
    
    get\x00\x12\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00 
    

    enter image description here