Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p>MongoDB doesn't support DB encryption.</p> </blockquote> <p>As at MongoDB 2.4, there is no built-in support for encryption of data at rest. The <a href="http://docs.mongodb.org/manual/security/" rel="nofollow">Security</a> section of the MongoDB manual covers other aspects of security such as encrypting the data sent over the network as well as access and network control.</p> <blockquote> <p>Therefore, if i want to encrypt data, encrypt data on the client side.</p> </blockquote> <p>If you want to encrypt the data in flight, you could use SSL support and follow other best practices for securing your MongoDB deployment.</p> <p>If you want to encrypt the data at rest, there are complementary open source and commercial products that can provide transparent disk or key-based encryption for MongoDB. Some examples: Linux Unified Key Setup (LUKS), Gazzang, TrueCrypt, BitLocker.</p> <blockquote> <p>In that case, I cannot use $near function.</p> </blockquote> <p>If you use one of the aforementioned "transparent" encryption products you can have full access to MongoDB's geospatial functionality. From the MongoDB server's point of view it is reading data from a block device and does not need to understand the encryption.</p> <p>If you want to encrypt the geospatial coordinates <em>within</em> a MongoDB document, you will not be able to build any useful geo indexes on the encrypted lat/long values.</p> <blockquote> <p>In U.S. user GPS data must have encrypted?</p> </blockquote> <p>I'm not aware of this requirement. You could always separate "geospatial" data (latitude and longitude) needed for searches from the full GPS data (lat/long/altitude/satellite?) and apply some some of encryption in your application for the "extra sensitive" data.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload