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
}
},
{
+5 -3
View File
@@ -22,7 +22,7 @@ const secretBlindIndexDataSchema = new Schema<ISecretBlindIndexData>(
ref: 'Workspace',
required: true
},
encryptedSaltCiphertext: {
encryptedSaltCiphertext: { // TODO: make these select: false
type: String,
required: true
},
@@ -37,7 +37,8 @@ const secretBlindIndexDataSchema = new Schema<ISecretBlindIndexData>(
algorithm: {
type: String,
enum: [ALGORITHM_AES_256_GCM],
required: true
required: true,
select: false
},
keyEncoding: {
type: String,
@@ -45,7 +46,8 @@ const secretBlindIndexDataSchema = new Schema<ISecretBlindIndexData>(
ENCODING_SCHEME_UTF8,
ENCODING_SCHEME_BASE64
],
required: true
required: true,
select: false
}
}