Skip to content

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

fix: typings

Daniel Hougaardf2d340213fda
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 c722fbfd1b..7e39893115 100644
--- a/backend/src/ee/services/audit-log/audit-log-types.ts
+++ b/backend/src/ee/services/audit-log/audit-log-types.ts
@@ -51,6 +51,11 @@ import { WorkflowIntegration } from "@app/services/workflow-integration/workflow
import { KmipPermission } from "../kmip/kmip-enum";
import { AcmeChallengeType, AcmeIdentifierType } from "../pki-acme/pki-acme-schemas";
import { ApprovalStatus } from "../secret-approval-request/secret-approval-request-types";
+import {
+ TAWSAuthDetails,
+ TKubernetesAuthDetails,
+ TOidcAuthDetails
+} from "@app/services/identity-access-token/identity-access-token-types";
export type TListProjectAuditLogDTO = {
filter: {
@@ -708,6 +713,10 @@ interface IdentityActorMetadata {
identityId: string;
name: string;
permission?: Record<string, unknown>;
+
+ aws?: TAWSAuthDetails;
+ kubernetes?: TKubernetesAuthDetails;
+ oidc?: TOidcAuthDetails;
}
interface ScimClientActorMetadata {}
diff --git a/backend/src/services/identity-access-token/identity-access-token-types.ts b/backend/src/services/identity-access-token/identity-access-token-types.ts
index e7b73a8c1a..a8a62a9e0c 100644
--- a/backend/src/services/identity-access-token/identity-access-token-types.ts
+++ b/backend/src/services/identity-access-token/identity-access-token-types.ts
@@ -2,29 +2,35 @@ export type TRenewAccessTokenDTO = {
accessToken: string;
};
+export type TOidcAuthDetails = {
+ claims: Record<string, string>;
+};
+
+export type TAWSAuthDetails = {
+ accountId: string;
+ arn: string;
+ userId: string;
+
+ // Derived from ARN
+ partition: string; // "aws", "aws-gov", "aws-cn"
+ service: string; // "iam", "sts"
+ resourceType: string; // "user" or "role"
+ resourceName: string;
+};
+
+export type TKubernetesAuthDetails = {
+ namespace: string;
+ name: string;
+};
+
export type TIdentityAccessTokenJwtPayload = {
identityId: string;
clientSecretId: string;
identityAccessTokenId: string;
authTokenType: string;
identityAuth: {
- oidc?: {
- claims: Record<string, string>;
- };
- kubernetes?: {
- namespace: string;
- name: string;
- };
- aws?: {
- accountId: string;
- arn: string;
- userId: string;
-
- // Derived from ARN
- partition: string; // "aws", "aws-gov", "aws-cn"
- service: string; // "iam", "sts"
- resourceType: string; // "user" or "role"
- resourceName: string;
- };
+ oidc?: TOidcAuthDetails;
+ kubernetes?: TKubernetesAuthDetails;
+ aws?: TAWSAuthDetails;
};
};