Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

separate audit log type for console URL

x032205c32fddbaf499
diff --git a/backend/src/ee/routes/v1/pam-account-routers/pam-account-router.ts b/backend/src/ee/routes/v1/pam-account-routers/pam-account-router.ts
index 697cb8f62b..4dc73cb176 100644
--- a/backend/src/ee/routes/v1/pam-account-routers/pam-account-router.ts
+++ b/backend/src/ee/routes/v1/pam-account-routers/pam-account-router.ts
@@ -669,8 +669,9 @@ export const registerPamAccountRouter = async (server: FastifyZodProvider) => {
orgId: req.permission.orgId,
projectId: req.body.projectId,
event: {
- type: EventType.PAM_ACCOUNT_ACCESS,
+ type: EventType.PAM_ACCOUNT_AWS_CONSOLE_URL_GENERATED,
metadata: {
+ sessionId: req.params.sessionId,
accountId: result.accountId ?? "",
resourceName: result.resourceName,
accountName: result.accountName
diff --git a/backend/src/ee/services/audit-log/audit-log-types.ts b/backend/src/ee/services/audit-log/audit-log-types.ts
index aae5481115..df74348c71 100644
--- a/backend/src/ee/services/audit-log/audit-log-types.ts
+++ b/backend/src/ee/services/audit-log/audit-log-types.ts
@@ -622,6 +622,7 @@ export enum EventType {
PAM_ACCOUNT_LIST = "pam-account-list",
PAM_ACCOUNT_GET = "pam-account-get",
PAM_ACCOUNT_ACCESS = "pam-account-access",
+ PAM_ACCOUNT_AWS_CONSOLE_URL_GENERATED = "pam-account-aws-console-url-generated",
PAM_ACCOUNT_CREATE = "pam-account-create",
PAM_ACCOUNT_UPDATE = "pam-account-update",
PAM_ACCOUNT_DELETE = "pam-account-delete",
@@ -4945,6 +4946,16 @@ interface PamWebAccessSessionTicketCreatedEvent {
};
}
+interface PamAccountAwsConsoleUrlGeneratedEvent {
+ type: EventType.PAM_ACCOUNT_AWS_CONSOLE_URL_GENERATED;
+ metadata: {
+ sessionId: string;
+ accountId: string;
+ resourceName: string;
+ accountName: string;
+ };
+}
+
interface PamAccountCreateEvent {
type: EventType.PAM_ACCOUNT_CREATE;
metadata: {
@@ -6529,6 +6540,7 @@ export type Event =
| PamAccountListEvent
| PamAccountGetEvent
| PamAccountAccessEvent
+ | PamAccountAwsConsoleUrlGeneratedEvent
| PamWebAccessSessionTicketCreatedEvent
| PamAccountCreateEvent
| PamAccountUpdateEvent