improvement: include secret metadata in audit logs

This commit is contained in:
Scott Wilson
2025-01-31 17:31:17 -08:00
parent ccee0f5428
commit 6d0534b165
6 changed files with 35 additions and 10 deletions
@@ -325,6 +325,7 @@ interface GetSecretEvent {
secretId: string;
secretKey: string;
secretVersion: number;
secretMetadata?: unknown;
};
}
@@ -336,6 +337,7 @@ interface CreateSecretEvent {
secretId: string;
secretKey: string;
secretVersion: number;
secretMetadata?: unknown;
};
}
@@ -344,7 +346,7 @@ interface CreateSecretBatchEvent {
metadata: {
environment: string;
secretPath: string;
secrets: Array<{ secretId: string; secretKey: string; secretVersion: number }>;
secrets: Array<{ secretId: string; secretKey: string; secretVersion: number; secretMetadata?: unknown }>;
};
}
@@ -356,6 +358,7 @@ interface UpdateSecretEvent {
secretId: string;
secretKey: string;
secretVersion: number;
secretMetadata?: unknown;
};
}
@@ -364,7 +367,7 @@ interface UpdateSecretBatchEvent {
metadata: {
environment: string;
secretPath: string;
secrets: Array<{ secretId: string; secretKey: string; secretVersion: number }>;
secrets: Array<{ secretId: string; secretKey: string; secretVersion: number; secretMetadata?: unknown }>;
};
}