Checkpoint finish preliminary support for ROOT_ENCRYPTION_KEY

This commit is contained in:
Tuan Dang
2023-05-06 22:07:59 +03:00
parent 3d3d7c9821
commit 87e047a152
54 changed files with 1876 additions and 1568 deletions
+4 -2
View File
@@ -57,7 +57,8 @@ const botSchema = new Schema<IBot>(
algorithm: { // the encryption algorithm used
type: String,
enum: [ALGORITHM_AES_256_GCM],
required: true
required: true,
select: false
},
keyEncoding: {
type: String,
@@ -65,7 +66,8 @@ const botSchema = new Schema<IBot>(
ENCODING_SCHEME_UTF8,
ENCODING_SCHEME_BASE64
],
required: true
required: true,
select: false
}
},
{