Skip to content

Instantly share code, notes, and snippets.

@kennwhite
Created October 28, 2019 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kennwhite/598dad16e170406409e147d2734950b4 to your computer and use it in GitHub Desktop.
Save kennwhite/598dad16e170406409e147d2734950b4 to your computer and use it in GitHub Desktop.
JSON Schema example for CSFE using metadata and json pointer keyId
{
"bsonType" : "object",
"encryptMetadata" : {
"keyId" : "/userid",
"algorithm" : "AEAD_AES_256_CBC_HMAC_SHA_512-Random"
},
"properties" : {
"ssn" : {
"encrypt" : {
"bsonType" : "string"
}
},
"mobile" : {
"encrypt" : {
"bsonType" : "string"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment