Skip to content

Encryption schema is being loaded multiple times #501

Description

@d-klotz

The encryption schema is currently being loaded multiple time during the lambda invocation. Ideally this schema should be loaded once and then re-used by the methods that need it.

Currently it is initialized in the documentdb-encryption-service.js via loadCustomEncryptionSchema() and in prisma.js also via loadCustomEncryptionSchema()

Frigg logs:

[Frigg] Registered custom encryption schema for models: User
[Frigg] Field-level encryption enabled using AES
[Frigg] Registered custom encryption schema for models: User
[Frigg] Registered custom encryption schema for models: User
[Frigg] Registered custom encryption schema for models: User
[Frigg] Registered custom encryption schema for models: User

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions