Checkpoint add metadata to secret and secret version data structure

This commit is contained in:
Tuan Dang
2023-08-23 16:30:42 +07:00
parent 5b342409e3
commit 8b381b2b80
4 changed files with 27 additions and 5 deletions
+6
View File
@@ -31,6 +31,9 @@ export interface ISecret {
keyEncoding: "utf8" | "base64";
tags?: string[];
folder?: string;
metadata?: {
[key: string]: string;
}
}
const secretSchema = new Schema<ISecret>(
@@ -131,6 +134,9 @@ const secretSchema = new Schema<ISecret>(
type: String,
default: "root",
},
metadata: {
type: Schema.Types.Mixed
}
},
{
timestamps: true,