Skip to content
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

Schema creator may miss encryption on entity field. #4454

Closed
christophstrobl opened this issue Jul 18, 2023 · 0 comments
Closed

Schema creator may miss encryption on entity field. #4454

christophstrobl opened this issue Jul 18, 2023 · 0 comments
Assignees
Labels
type: bug A general bug

Comments

@christophstrobl
Copy link
Member

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" } }
    }
}
@christophstrobl christophstrobl added the type: bug A general bug label Jul 18, 2023
@christophstrobl christophstrobl self-assigned this Jul 18, 2023
sxhinzvc added a commit that referenced this issue Aug 3, 2023
…pe property values are not encrypted as expected.

Closes #4454
Original Pull Request: #4455
sxhinzvc added a commit that referenced this issue Aug 7, 2023
…pe property values are not encrypted as expected.

Closes #4454
Original Pull Request: #4455
sxhinzvc added a commit that referenced this issue Aug 7, 2023
…pe property values are not encrypted as expected.

Closes #4454
Original Pull Request: #4455
sxhinzvc added a commit that referenced this issue Aug 7, 2023
…pe property values are not encrypted as expected.

Closes #4454
Original Pull Request: #4455
sxhinzvc added a commit that referenced this issue Aug 8, 2023
…pe property values are not encrypted as expected.

Closes #4454
Original Pull Request: #4455
@christophstrobl christophstrobl added this to the 4.0.9 (2022.0.9) milestone Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
1 participant