mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 10:35:17 +00:00
Finish preliminary v2 audit logs
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { EventType, UserAgentType } from "./enums";
|
||||
|
||||
export const eventToNameMap: { [K in EventType]: string } = {
|
||||
[EventType.GET_SECRETS]: "Get Secrets",
|
||||
[EventType.GET_SECRET]: "Get Secret",
|
||||
[EventType.CREATE_SECRET]: "Create Secret",
|
||||
[EventType.UPDATE_SECRET]: "Update Secret",
|
||||
[EventType.DELETE_SECRET]: "Delete Secret",
|
||||
};
|
||||
|
||||
export const userAgentTTypeoNameMap: { [K in UserAgentType]: string } = {
|
||||
[UserAgentType.WEB]: "Web",
|
||||
[UserAgentType.CLI]: "CLI",
|
||||
[UserAgentType.K8_OPERATOR]: "K8s operator",
|
||||
[UserAgentType.OTHER]: "Other",
|
||||
};
|
||||
Reference in New Issue
Block a user