mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 21:51:56 +00:00
misc: audit logs for slack integration management
This commit is contained in:
@@ -16,10 +16,10 @@ export async function up(knex: Knex): Promise<void> {
|
||||
tb.binary("encryptedBotAccessToken").notNullable();
|
||||
tb.string("slackBotId").notNullable();
|
||||
tb.string("slackBotUserId").notNullable();
|
||||
tb.boolean("isAccessRequestNotificationEnabled").defaultTo(false);
|
||||
tb.string("accessRequestChannels").defaultTo("");
|
||||
tb.boolean("isSecretRequestNotificationEnabled").defaultTo(false);
|
||||
tb.string("secretRequestChannels").defaultTo("");
|
||||
tb.boolean("isAccessRequestNotificationEnabled").notNullable().defaultTo(false);
|
||||
tb.string("accessRequestChannels").notNullable().defaultTo("");
|
||||
tb.boolean("isSecretRequestNotificationEnabled").notNullable().defaultTo(false);
|
||||
tb.string("secretRequestChannels").notNullable().defaultTo("");
|
||||
tb.timestamps(true, true, true);
|
||||
});
|
||||
|
||||
|
||||
@@ -19,10 +19,10 @@ export const SlackIntegrationsSchema = z.object({
|
||||
encryptedBotAccessToken: zodBuffer,
|
||||
slackBotId: z.string(),
|
||||
slackBotUserId: z.string(),
|
||||
isAccessRequestNotificationEnabled: z.boolean().nullable().optional(),
|
||||
accessRequestChannels: z.string().nullable().optional(),
|
||||
isSecretRequestNotificationEnabled: z.boolean().nullable().optional(),
|
||||
secretRequestChannels: z.string().nullable().optional(),
|
||||
isAccessRequestNotificationEnabled: z.boolean().default(false),
|
||||
accessRequestChannels: z.string().default(""),
|
||||
isSecretRequestNotificationEnabled: z.boolean().default(false),
|
||||
secretRequestChannels: z.string().default(""),
|
||||
createdAt: z.date(),
|
||||
updatedAt: z.date()
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user