Skip to content

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

fix: lint

Tre Dubravaace75fc6a6a5
diff --git a/backend/src/services/identity-access-token/identity-access-token-revocation-dal.ts b/backend/src/services/identity-access-token/identity-access-token-revocation-dal.ts
index 3fb3aa6c43..8a3e6c62a2 100644
--- a/backend/src/services/identity-access-token/identity-access-token-revocation-dal.ts
+++ b/backend/src/services/identity-access-token/identity-access-token-revocation-dal.ts
@@ -41,13 +41,15 @@ export const identityAccessTokenRevocationDALFactory = (db: TDbClient) => {
identityId: string;
}): Promise<TRevocationRow[]> => {
try {
- return (await db
- .replicaNode()(TableName.IdentityAccessTokenRevocation)
- .select("id", "identityId", "revokedAt", "createdAt")
- .where("expiresAt", ">", db.fn.now())
- .where("identityId", identityId)
- // Revoke-all uses identityId as id
- .whereIn("id", [tokenId, identityId])) as TRevocationRow[];
+ return (
+ (await db
+ .replicaNode()(TableName.IdentityAccessTokenRevocation)
+ .select("id", "identityId", "revokedAt", "createdAt")
+ .where("expiresAt", ">", db.fn.now())
+ .where("identityId", identityId)
+ // Revoke-all uses identityId as id
+ .whereIn("id", [tokenId, identityId])) as TRevocationRow[]
+ );
} catch (error) {
throw new DatabaseError({ error, name: "IdentityAccessTokenRevocationFindActiveForToken" });
}
diff --git a/backend/src/services/identity-access-token/identity-access-token-service.test.ts b/backend/src/services/identity-access-token/identity-access-token-service.test.ts
index 2741484fab..bae1e153bb 100644
--- a/backend/src/services/identity-access-token/identity-access-token-service.test.ts
+++ b/backend/src/services/identity-access-token/identity-access-token-service.test.ts
@@ -4,7 +4,8 @@ import { IdentityAuthMethod } from "@app/db/schemas";
import { crypto } from "@app/lib/crypto";
import { IPType, TIp } from "@app/lib/ip";
-import { signIdentityAccessToken } from "./identity-access-token-fns";
+import { AuthTokenType } from "../auth/auth-type";
+import { signIdentityAccessToken, verifyAccessTokenJwt } from "./identity-access-token-fns";
import { identityAccessTokenServiceFactory } from "./identity-access-token-service";
import { TIdentityAccessTokenJwtPayload } from "./identity-access-token-types";
@@ -29,11 +30,13 @@ vi.mock("@app/lib/logger", () => ({
const createService = ({
trustedIps = [],
membership = { isActive: true },
- activeRevocations = []
+ activeRevocations = [],
+ tokenRow = null
}: {
trustedIps?: TIp[] | null;
membership?: { isActive: boolean } | null;
activeRevocations?: Array<{ id: string; identityId: string; revokedAt?: Date | null; createdAt: Date }>;
+ tokenRow?: Record<string, unknown> | null;
} = {}) => {
const keyStore = {
getItem: vi.fn().mockResolvedValue(null),
@@ -53,7 +56,7 @@ const createService = ({
};
const service = identityAccessTokenServiceFactory({
- identityAccessTokenDAL: { findOne: vi.fn() } as never,
+ identityAccessTokenDAL: { findOne: vi.fn().mockResolvedValue(tokenRow) } as never,
identityAccessTokenRevocationDAL: identityAccessTokenRevocationDAL as never,
identityDAL: identityDAL as never,
orgDAL: orgDAL as never,
@@ -78,7 +81,7 @@ const createTokenClaims = (
ipRestrictionEnabled: false,
clientSecretId: "",
identityAccessTokenId: "token-id",
- authTokenType: "identity-access-token",
+ authTokenType: AuthTokenType.IDENTITY_ACCESS_TOKEN,
accessTokenTTL: 0,
accessTokenMaxTTL: 0,
accessTokenPeriod: 0,
@@ -87,6 +90,41 @@ const createTokenClaims = (
...overrides
});
+const signLegacyAccessToken = (overrides: Partial<TIdentityAccessTokenJwtPayload> = {}) =>
+ crypto.jwt().sign(
+ {
+ identityId: "identity-id",
+ identityName: "identity-name",
+ orgId: "org-id",
+ rootOrgId: "root-org-id",
+ parentOrgId: "parent-org-id",
+ clientSecretId: "",
+ identityAccessTokenId: "legacy-token-id",
+ authTokenType: AuthTokenType.IDENTITY_ACCESS_TOKEN,
+ identityAuth: {},
+ ...overrides
+ },
+ AUTH_SECRET,
+ {
+ jwtid: "legacy-token-id",
+ expiresIn: MAX_AGE
+ }
+ );
+
+const createLegacyTokenRow = (overrides: Record<string, unknown> = {}) => ({
+ id: "legacy-token-id",
+ identityId: "identity-id",
+ authMethod: IdentityAuthMethod.UNIVERSAL_AUTH,
+ accessTokenTTL: 3600,
+ accessTokenMaxTTL: 7200,
+ accessTokenPeriod: 0,
+ isAccessTokenRevoked: false,
+ createdAt: new Date(NOW_SECONDS * 1000),
+ identityOrgId: "org-id",
+ identityName: "identity-name",
+ ...overrides
+});
+
describe("identityAccessTokenServiceFactory", () => {
let previousFipsEnabled: string | undefined;
@@ -215,6 +253,33 @@ describe("identityAccessTokenServiceFactory", () => {
expect(keyStore.incrementBy).toHaveBeenCalledWith("identity-token-uses-remaining:identity-id:token-id", -1);
});
+ test("reseeds a lost Redis usage counter from JWT claims", async () => {
+ const { service, keyStore } = createService();
+ keyStore.getItem.mockResolvedValue(null);
+
+ await expect(
+ service.fnValidateIdentityAccessTokenFast(createTokenClaims({ numUsesLimit: 3 }), "10.0.0.1")
+ ).resolves.toMatchObject({
+ identityId: "identity-id"
+ });
+ expect(keyStore.setItemWithExpiry).toHaveBeenCalledWith(
+ "identity-token-uses-remaining:identity-id:token-id",
+ MAX_AGE,
+ 2
+ );
+ expect(keyStore.incrementBy).not.toHaveBeenCalled();
+ });
+
+ test("does not require Redis counters for unlimited-use tokens", async () => {
+ const { service, keyStore } = createService();
+
+ await expect(service.fnValidateIdentityAccessTokenFast(createTokenClaims(), "10.0.0.1")).resolves.toMatchObject({
+ identityId: "identity-id"
+ });
+ expect(keyStore.setItemWithExpiry).not.toHaveBeenCalled();
+ expect(keyStore.incrementBy).not.toHaveBeenCalled();
+ });
+
test("rejects exhausted Redis usage counters", async () => {
const { service, keyStore } = createService();
keyStore.getItem.mockResolvedValue("0");
@@ -250,6 +315,176 @@ describe("identityAccessTokenServiceFactory", () => {
await expect(service.renewAccessToken({ accessToken })).rejects.toThrow("token has been revoked");
});
+ test("renews active new-format tokens and the renewed JWT authenticates", async () => {
+ const { accessToken } = signIdentityAccessToken({
+ identityAccessTokenId: "token-id",
+ identityId: "identity-id",
+ identityName: "identity-name",
+ authMethod: IdentityAuthMethod.UNIVERSAL_AUTH,
+ orgId: "org-id",
+ rootOrgId: "root-org-id",
+ parentOrgId: "parent-org-id",
+ clientSecretId: "",
+ numUsesLimit: 0,
+ ipRestrictionEnabled: false,
+ ttlSeconds: 3600,
+ accessTokenTTL: 3600,
+ accessTokenMaxTTL: 7200,
+ accessTokenPeriod: 0,
+ creationEpoch: NOW_SECONDS,
+ identityAuth: {}
+ });
+ const { service } = createService();
+
+ const renewed = await service.renewAccessToken({ accessToken });
+ const renewedClaims = verifyAccessTokenJwt(renewed.accessToken);
+
+ expect(renewed.expiresIn).toBe(3600);
+ expect(renewedClaims).toMatchObject({
+ jti: "token-id",
+ identityId: "identity-id",
+ authMethod: IdentityAuthMethod.UNIVERSAL_AUTH,
+ accessTokenTTL: 3600,
+ accessTokenMaxTTL: 7200,
+ creationEpoch: NOW_SECONDS
+ });
+ await expect(service.fnValidateIdentityAccessTokenFast(renewedClaims, "10.0.0.1")).resolves.toMatchObject({
+ identityId: "identity-id"
+ });
+ });
+
+ test("rejects renewal when identity-wide PG revocation is after token iat", async () => {
+ const { accessToken } = signIdentityAccessToken({
+ identityAccessTokenId: "token-id",
+ identityId: "identity-id",
+ identityName: "identity-name",
+ authMethod: IdentityAuthMethod.UNIVERSAL_AUTH,
+ orgId: "org-id",
+ rootOrgId: "root-org-id",
+ parentOrgId: "parent-org-id",
+ clientSecretId: "",
+ numUsesLimit: 0,
+ ipRestrictionEnabled: false,
+ ttlSeconds: 3600,
+ accessTokenTTL: 3600,
+ accessTokenMaxTTL: 7200,
+ accessTokenPeriod: 0,
+ creationEpoch: NOW_SECONDS,
+ identityAuth: {}
+ });
+ const { service } = createService({
+ activeRevocations: [
+ {
+ id: "identity-id",
+ identityId: "identity-id",
+ revokedAt: new Date((NOW_SECONDS + 10) * 1000),
+ createdAt: new Date((NOW_SECONDS + 10) * 1000)
+ }
+ ]
+ });
+
+ await expect(service.renewAccessToken({ accessToken })).rejects.toThrow("identity tokens have been revoked");
+ });
+
+ test("rejects renewal when Redis usage counter is exhausted", async () => {
+ const { accessToken } = signIdentityAccessToken({
+ identityAccessTokenId: "token-id",
+ identityId: "identity-id",
+ identityName: "identity-name",
+ authMethod: IdentityAuthMethod.UNIVERSAL_AUTH,
+ orgId: "org-id",
+ rootOrgId: "root-org-id",
+ parentOrgId: "parent-org-id",
+ clientSecretId: "",
+ numUsesLimit: 2,
+ ipRestrictionEnabled: false,
+ ttlSeconds: 3600,
+ accessTokenTTL: 3600,
+ accessTokenMaxTTL: 7200,
+ accessTokenPeriod: 0,
+ creationEpoch: NOW_SECONDS,
+ identityAuth: {}
+ });
+ const { service, keyStore } = createService();
+ keyStore.getItem.mockResolvedValue("0");
+
+ await expect(service.renewAccessToken({ accessToken })).rejects.toThrow("Cannot renew exhausted access token");
+ });
+
+ test("authenticates legacy tokens with fast-path claims", async () => {
+ const { service } = createService();
+ const legacyToken = signLegacyAccessToken();
+ const legacyClaims = verifyAccessTokenJwt(legacyToken);
+
+ await expect(service.fnValidateIdentityAccessTokenFast(legacyClaims, "10.0.0.1")).resolves.toMatchObject({
+ identityId: "identity-id",
+ orgId: "org-id"
+ });
+ });
+
+ test("renews legacy tokens from their PG row into new-format tokens", async () => {
+ const { service } = createService({ tokenRow: createLegacyTokenRow() });
+ const legacyToken = signLegacyAccessToken();
+
+ const renewed = await service.renewAccessToken({ accessToken: legacyToken });
+ const renewedClaims = verifyAccessTokenJwt(renewed.accessToken);
+
+ expect(renewed.expiresIn).toBe(3600);
+ expect(renewedClaims).toMatchObject({
+ jti: "legacy-token-id",
+ identityId: "identity-id",
+ authMethod: IdentityAuthMethod.UNIVERSAL_AUTH,
+ accessTokenTTL: 3600,
+ accessTokenMaxTTL: 7200,
+ accessTokenPeriod: 0,
+ creationEpoch: NOW_SECONDS
+ });
+ });
+
+ test("rejects legacy renewal when the PG row is missing", async () => {
+ const { service } = createService({ tokenRow: null });
+ const legacyToken = signLegacyAccessToken();
+
+ await expect(service.renewAccessToken({ accessToken: legacyToken })).rejects.toThrow(
+ "Cannot renew revoked or unknown access token"
+ );
+ });
+
+ test("rejects legacy renewal when the PG row is revoked", async () => {
+ const { service } = createService({
+ tokenRow: createLegacyTokenRow({ isAccessTokenRevoked: true })
+ });
+ const legacyToken = signLegacyAccessToken();
+
+ await expect(service.renewAccessToken({ accessToken: legacyToken })).rejects.toThrow(
+ "Cannot renew revoked or unknown access token"
+ );
+ });
+
+ test("rejects legacy renewal when the row maxTTL budget is exhausted", async () => {
+ const { service } = createService({
+ tokenRow: createLegacyTokenRow({
+ accessTokenTTL: 3600,
+ accessTokenMaxTTL: 3600,
+ createdAt: new Date((NOW_SECONDS - 3600) * 1000)
+ })
+ });
+ const legacyToken = signLegacyAccessToken();
+
+ await expect(service.renewAccessToken({ accessToken: legacyToken })).rejects.toThrow("has reached its max TTL");
+ });
+
+ test("rejects legacy JWTs without exp after MAX_MACHINE_IDENTITY_TOKEN_AGE", async () => {
+ const { service } = createService();
+
+ await expect(
+ service.fnValidateIdentityAccessTokenFast(
+ createTokenClaims({ exp: undefined, iat: NOW_SECONDS - MAX_AGE - 1 }),
+ "10.0.0.1"
+ )
+ ).rejects.toThrow("exceeded max age");
+ });
+
test("checks current trusted IPs even when the token was issued without IP restrictions", async () => {
const { service, identityDAL } = createService({
trustedIps: [{ ipAddress: "10.0.0.0", prefix: 24, type: IPType.IPV4 }]
diff --git a/backend/src/services/identity-access-token/identity-access-token-service.ts b/backend/src/services/identity-access-token/identity-access-token-service.ts
index 7b86da6bae..62b51423ff 100644
--- a/backend/src/services/identity-access-token/identity-access-token-service.ts
+++ b/backend/src/services/identity-access-token/identity-access-token-service.ts
@@ -235,7 +235,12 @@ export const identityAccessTokenServiceFactory = ({
if (remainingFromState === null) {
// Counter was lost (Redis flush). Re-seed from the JWT's numUsesLimit claim
// and allow this request; subsequent requests decrement the live counter.
- await setUsesRemaining(token.identityId, token.jti, token.numUsesLimit - 1, appCfg.MAX_MACHINE_IDENTITY_TOKEN_AGE);
+ await setUsesRemaining(
+ token.identityId,
+ token.jti,
+ token.numUsesLimit - 1,
+ appCfg.MAX_MACHINE_IDENTITY_TOKEN_AGE
+ );
} else {
const remaining = await keyStore.incrementBy(
KeyStorePrefixes.IdentityTokenUsesRemaining(token.identityId, token.jti),
diff --git a/backend/src/services/identity-v2/identity-service.ts b/backend/src/services/identity-v2/identity-service.ts
index 002241c3ec..144c634e3c 100644
--- a/backend/src/services/identity-v2/identity-service.ts
+++ b/backend/src/services/identity-v2/identity-service.ts
@@ -209,10 +209,8 @@ export const identityV2ServiceFactory = ({
throw new BadRequestError({ message: "Cannot delete identity while delete protection is enabled" });
}
- // Set the identity-wide revocation epoch in Redis before removing the
- // row so that any JWT issued for this identity (with iat < now) is
- // immediately rejected on the auth path. The revoke also async-mirrors
- // a sentinel row to PG for the boot-time hydrator.
+ // Set the identity-wide PG revocation epoch before removing the row so
+ // any JWT issued for this identity (with iat < now) is rejected.
await identityAccessTokenService.revokeAllTokensForIdentity(dto.selector.identityId);
const deletedIdentity = await identityDAL.deleteById(dto.selector.identityId);
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAliCloudAuthForm.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAliCloudAuthForm.tsx
index c669a23f4f..9e9cf6dcbb 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAliCloudAuthForm.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAliCloudAuthForm.tsx
@@ -83,10 +83,7 @@ export const IdentityAliCloudAuthForm = ({
enabled: isUpdate
});
- const resolver = useMemo(
- () => zodResolver(buildSchema(maxAccessTokenTTL)),
- [maxAccessTokenTTL]
- );
+ const resolver = useMemo(() => zodResolver(buildSchema(maxAccessTokenTTL)), [maxAccessTokenTTL]);
const {
control,
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAwsAuthForm.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAwsAuthForm.tsx
index 02cb0082cc..a98ac666fd 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAwsAuthForm.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAwsAuthForm.tsx
@@ -85,10 +85,7 @@ export const IdentityAwsAuthForm = ({
enabled: isUpdate
});
- const resolver = useMemo(
- () => zodResolver(buildSchema(maxAccessTokenTTL)),
- [maxAccessTokenTTL]
- );
+ const resolver = useMemo(() => zodResolver(buildSchema(maxAccessTokenTTL)), [maxAccessTokenTTL]);
const {
control,
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAzureAuthForm.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAzureAuthForm.tsx
index c1d0a5b7cd..370c236881 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAzureAuthForm.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAzureAuthForm.tsx
@@ -86,10 +86,7 @@ export const IdentityAzureAuthForm = ({
enabled: isUpdate
});
- const resolver = useMemo(
- () => zodResolver(buildSchema(maxAccessTokenTTL)),
- [maxAccessTokenTTL]
- );
+ const resolver = useMemo(() => zodResolver(buildSchema(maxAccessTokenTTL)), [maxAccessTokenTTL]);
const {
control,
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityGcpAuthForm.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityGcpAuthForm.tsx
index 7c7523425e..88e0033178 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityGcpAuthForm.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityGcpAuthForm.tsx
@@ -89,10 +89,7 @@ export const IdentityGcpAuthForm = ({
enabled: isUpdate
});
- const resolver = useMemo(
- () => zodResolver(buildSchema(maxAccessTokenTTL)),
- [maxAccessTokenTTL]
- );
+ const resolver = useMemo(() => zodResolver(buildSchema(maxAccessTokenTTL)), [maxAccessTokenTTL]);
const {
control,
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityJwtAuthForm.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityJwtAuthForm.tsx
index 3dc0c40080..9941b703ec 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityJwtAuthForm.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityJwtAuthForm.tsx
@@ -124,10 +124,7 @@ export const IdentityJwtAuthForm = ({
enabled: isUpdate
});
- const resolver = useMemo(
- () => zodResolver(buildSchema(maxAccessTokenTTL)),
- [maxAccessTokenTTL]
- );
+ const resolver = useMemo(() => zodResolver(buildSchema(maxAccessTokenTTL)), [maxAccessTokenTTL]);
const {
watch,
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityKubernetesAuthForm.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityKubernetesAuthForm.tsx
index 7346bae982..66583adf28 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityKubernetesAuthForm.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityKubernetesAuthForm.tsx
@@ -175,10 +175,7 @@ export const IdentityKubernetesAuthForm = ({
const { hasOrgRole } = useOrgPermission();
const isOrgAdmin = hasOrgRole(OrgMembershipRole.Admin);
- const resolver = useMemo(
- () => zodResolver(buildSchema(maxAccessTokenTTL)),
- [maxAccessTokenTTL]
- );
+ const resolver = useMemo(() => zodResolver(buildSchema(maxAccessTokenTTL)), [maxAccessTokenTTL]);
const {
control,
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityLdapAuthForm.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityLdapAuthForm.tsx
index a8f867e325..5889cd8219 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityLdapAuthForm.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityLdapAuthForm.tsx
@@ -187,10 +187,7 @@ export const IdentityLdapAuthForm = ({
enabled: isUpdate
});
- const resolver = useMemo(
- () => zodResolver(buildSchema(maxAccessTokenTTL)),
- [maxAccessTokenTTL]
- );
+ const resolver = useMemo(() => zodResolver(buildSchema(maxAccessTokenTTL)), [maxAccessTokenTTL]);
const {
control,
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityOciAuthForm.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityOciAuthForm.tsx
index 135ea36c11..887ab132d5 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityOciAuthForm.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityOciAuthForm.tsx
@@ -91,10 +91,7 @@ export const IdentityOciAuthForm = ({
enabled: isUpdate
});
- const resolver = useMemo(
- () => zodResolver(buildSchema(maxAccessTokenTTL)),
- [maxAccessTokenTTL]
- );
+ const resolver = useMemo(() => zodResolver(buildSchema(maxAccessTokenTTL)), [maxAccessTokenTTL]);
const {
control,
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityOidcAuthForm.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityOidcAuthForm.tsx
index b9480ae0c4..cb37fdcbb5 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityOidcAuthForm.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityOidcAuthForm.tsx
@@ -110,10 +110,7 @@ export const IdentityOidcAuthForm = ({
enabled: isUpdate
});
- const resolver = useMemo(
- () => zodResolver(buildSchema(maxAccessTokenTTL)),
- [maxAccessTokenTTL]
- );
+ const resolver = useMemo(() => zodResolver(buildSchema(maxAccessTokenTTL)), [maxAccessTokenTTL]);
const {
control,
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentitySpiffeAuthForm.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentitySpiffeAuthForm.tsx
index b481554c62..46b3d20218 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentitySpiffeAuthForm.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentitySpiffeAuthForm.tsx
@@ -100,10 +100,7 @@ export const IdentitySpiffeAuthForm = ({
enabled: isUpdate
});
- const resolver = useMemo(
- () => zodResolver(buildSchema(maxAccessTokenTTL)),
- [maxAccessTokenTTL]
- );
+ const resolver = useMemo(() => zodResolver(buildSchema(maxAccessTokenTTL)), [maxAccessTokenTTL]);
const {
watch,
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityTlsCertAuthForm.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityTlsCertAuthForm.tsx
index 4f654afe2c..2d78512979 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityTlsCertAuthForm.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityTlsCertAuthForm.tsx
@@ -84,10 +84,7 @@ export const IdentityTlsCertAuthForm = ({
enabled: isUpdate
});
- const resolver = useMemo(
- () => zodResolver(buildSchema(maxAccessTokenTTL)),
- [maxAccessTokenTTL]
- );
+ const resolver = useMemo(() => zodResolver(buildSchema(maxAccessTokenTTL)), [maxAccessTokenTTL]);
const {
control,
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityTokenAuthForm.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityTokenAuthForm.tsx
index 75511b84a5..f1f765f58e 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityTokenAuthForm.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityTokenAuthForm.tsx
@@ -83,10 +83,7 @@ export const IdentityTokenAuthForm = ({
enabled: isUpdate
});
- const resolver = useMemo(
- () => zodResolver(buildSchema(maxAccessTokenTTL)),
- [maxAccessTokenTTL]
- );
+ const resolver = useMemo(() => zodResolver(buildSchema(maxAccessTokenTTL)), [maxAccessTokenTTL]);
const {
control,
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityUniversalAuthForm.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityUniversalAuthForm.tsx
index 9ed370cbd9..298cdc9460 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityUniversalAuthForm.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityUniversalAuthForm.tsx
@@ -108,10 +108,7 @@ export const IdentityUniversalAuthForm = ({
enabled: isUpdate
});
- const resolver = useMemo(
- () => zodResolver(buildSchema(maxAccessTokenTTL)),
- [maxAccessTokenTTL]
- );
+ const resolver = useMemo(() => zodResolver(buildSchema(maxAccessTokenTTL)), [maxAccessTokenTTL]);
const {
control,