Sunbird-RC / open-saber

Database agnostic, readily scalable APIs to store data!
https://opensaber.io/
MIT License
10 stars 44 forks source link

OS-257 Apply subschema configurations to private fields #426

Closed indrajra closed 3 years ago

indrajra commented 3 years ago

While load definitions, also make a note of the sub-schemas referred and their corresponding definitions. Extend PrivateField class functions to support child level object configurations - this will help in encrypt (write) and decrypt (read) operations.

Testing

  1. Customer has tried this for their own schemas and confirmed one.
  2. Existing schemas load is successful with signatures enabled.
  3. 3 level deep child and array of objects works with encryption/decryption.

TODO: Trying an API based testing to smoothen this.