-
Notifications
You must be signed in to change notification settings - Fork 29
DOCSP-45366 Encryption #89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
43bcf10
61f4332
e4aec01
c863f4c
d67a292
213cfac
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,102 @@ | ||||||||||
# start-encryption-schema | ||||||||||
class Patient | ||||||||||
include Mongoid::Document | ||||||||||
include Mongoid::Timestamps | ||||||||||
|
||||||||||
encrypt_with key_id: '<Your Data Encryption Key>' | ||||||||||
|
||||||||||
# This field is not encrypted | ||||||||||
field :category, type: String | ||||||||||
|
||||||||||
# This field is encrypted using AEAD_AES_256_CBC_HMAC_SHA_512-Random | ||||||||||
# algorithm. | ||||||||||
|
# This field is encrypted using AEAD_AES_256_CBC_HMAC_SHA_512-Random | |
# algorithm. | |
# This field is encrypted by using the | |
# AEAD_AES_256_CBC_HMAC_SHA_512-Random algorithm |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
key_vault_client = Mongo::Client.new('<Your connection URI>') | |
key_vault_client = Mongo::Client.new('<connection string>') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Q: does this code example mean that all
returns all documents but querying only returns encrypted documents?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right. So apparently all
isn't considered a query operation, the way I understood it
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
.. _mongoid-security: | ||
|
||
================ | ||
Secure Your Data | ||
================ | ||
|
||
.. facet:: | ||
:name: genre | ||
:values: reference | ||
|
||
.. meta:: | ||
:keywords: ruby framework, odm, security | ||
|
||
.. toctree:: | ||
:caption: Secure Your Data | ||
|
||
Client-Side Field Level Encryption </security/encryption> | ||
|
||
|
||
In this section, you can learn how to secure your data when using {+odm+}. | ||
|
||
- :ref:`Client-Side Field Level Encryption <mongoid-encryption>` Learn how to encrypt your data with {+odm+}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.