Add tags support for secrets

This commit is contained in:
Maidul Islam
2023-02-05 12:54:42 -08:00
parent 8ae43cdcf6
commit 9f9273bb02
9 changed files with 221 additions and 26 deletions
+6
View File
@@ -23,6 +23,7 @@ export interface ISecret {
secretCommentIV?: string;
secretCommentTag?: string;
secretCommentHash?: string;
tags?: string[];
}
const secretSchema = new Schema<ISecret>(
@@ -47,6 +48,11 @@ const secretSchema = new Schema<ISecret>(
type: Schema.Types.ObjectId,
ref: 'User'
},
tags: {
ref: 'Tag',
type: [Schema.Types.ObjectId],
default: []
},
environment: {
type: String,
required: true