Skip to content

Schema creator may miss encryption on entity field. #4454

Closed
@christophstrobl

Description

@christophstrobl

The schema creator may miss to wrap JsonSchemaProperty into EncryptedJsonSchemaProperty for properties that are considered entities.

The following input

@Encrypted(algorithm = ...)
class X {
    // ...
    @Encrypted Y yValue;
}
class Y {
    String value;
}

should create a schema as follows.

{
    "encryptMetadata" : { "algorithm" : "..." }, 
    "type" : "object", 
    "properties" : {
        "yValue" : { "encrypt" : { "bsonType": "object" } }
    }
}

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions