Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
feat: resolved lint issue
=75a8074b8155
diff --git a/backend/src/ee/routes/v2/secret-rotation-v2-routers/unix-linux-local-account-rotation-router.ts b/backend/src/ee/routes/v2/secret-rotation-v2-routers/unix-linux-local-account-rotation-router.tsindex 1e13011d56..eebfec6819 100644--- a/backend/src/ee/routes/v2/secret-rotation-v2-routers/unix-linux-local-account-rotation-router.ts+++ b/backend/src/ee/routes/v2/secret-rotation-v2-routers/unix-linux-local-account-rotation-router.ts@@ -4,9 +4,9 @@ import { EventType } from "@app/ee/services/audit-log/audit-log-types";import { SecretRotation } from "@app/ee/services/secret-rotation-v2/secret-rotation-v2-enums";import {CreateUnixLinuxLocalAccountRotationSchema,+ TUnixLinuxLocalAccountRotation,UnixLinuxLocalAccountRotationGeneratedCredentialsSchema,UnixLinuxLocalAccountRotationSchema,- TUnixLinuxLocalAccountRotation,UpdateUnixLinuxLocalAccountRotationSchema} from "@app/ee/services/secret-rotation-v2/unix-linux-local-account-rotation";import { ApiDocsTags, SecretRotations } from "@app/lib/api-docs";diff --git a/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-fns.ts b/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-fns.tsindex 8a43296892..4de49f6afe 100644--- a/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-fns.ts+++ b/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-fns.ts@@ -28,7 +28,10 @@ import {TSecretRotationV2Raw,TUpdateSecretRotationV2DTO} from "./secret-rotation-v2-types";-import { UNIX_LINUX_LOCAL_ACCOUNT_ROTATION_LIST_OPTION, TUnixLinuxLocalAccountRotation } from "./unix-linux-local-account-rotation";+import {+ TUnixLinuxLocalAccountRotation,+ UNIX_LINUX_LOCAL_ACCOUNT_ROTATION_LIST_OPTION+} from "./unix-linux-local-account-rotation";const SECRET_ROTATION_LIST_OPTIONS: Record<SecretRotation, TSecretRotationV2ListItem> = {[SecretRotation.PostgresCredentials]: POSTGRES_CREDENTIALS_ROTATION_LIST_OPTION,diff --git a/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-service.ts b/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-service.tsindex 454c7e1b64..fe7efeed46 100644--- a/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-service.ts+++ b/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-service.ts@@ -1381,7 +1381,10 @@ export const secretRotationV2ServiceFactory = ({return secretRotations as TSecretRotationV2[];};- const reconcileUnixLinuxLocalAccountRotation = async ({ rotationId }: { rotationId: string }, actor: OrgServiceActor) => {+ const reconcileUnixLinuxLocalAccountRotation = async (+ { rotationId }: { rotationId: string },+ actor: OrgServiceActor+ ) => {const plan = await licenseService.getPlan(actor.orgId);if (!plan.secretRotation)diff --git a/backend/src/ee/services/secret-rotation-v2/unix-linux-local-account-rotation/unix-linux-local-account-rotation-fns.ts b/backend/src/ee/services/secret-rotation-v2/unix-linux-local-account-rotation/unix-linux-local-account-rotation-fns.tsindex 28d247b0e1..0c27308ee8 100644--- a/backend/src/ee/services/secret-rotation-v2/unix-linux-local-account-rotation/unix-linux-local-account-rotation-fns.ts+++ b/backend/src/ee/services/secret-rotation-v2/unix-linux-local-account-rotation/unix-linux-local-account-rotation-fns.ts@@ -158,7 +158,11 @@ export const unixLinuxLocalAccountRotationFactory: TRotationFactory<TUnixLinuxLocalAccountRotationInput["temporaryParameters"]> = (secretRotation, appConnectionDAL, kmsService, _gatewayService, gatewayV2Service) => {const { connection, parameters, secretsMapping, activeIndex } = secretRotation;- const { username, passwordRequirements, rotationMethod = UnixLinuxLocalAccountRotationMethod.LoginAsRoot } = parameters;+ const {+ username,+ passwordRequirements,+ rotationMethod = UnixLinuxLocalAccountRotationMethod.LoginAsRoot+ } = parameters;// Helper to verify SSH credentials workconst $verifyCredentials = async (targetUsername: string, targetPassword: string): Promise<void> => {@@ -256,10 +260,9 @@ export const unixLinuxLocalAccountRotationFactory: TRotationFactory<return callback(credentials);};- const revokeCredentials: TRotationFactoryRevokeCredentials<TUnixLinuxLocalAccountRotationGeneratedCredentials> = async (- credentialsToRevoke,- callback- ) => {+ const revokeCredentials: TRotationFactoryRevokeCredentials<+ TUnixLinuxLocalAccountRotationGeneratedCredentials+ > = async (credentialsToRevoke, callback) => {const currentPassword = credentialsToRevoke[activeIndex].password;// We just rotate to a new password, essentially revoking old credentials// For self rotation: we need current password to authenticate@@ -268,11 +271,9 @@ export const unixLinuxLocalAccountRotationFactory: TRotationFactory<return callback();};- const rotateCredentials: TRotationFactoryRotateCredentials<TUnixLinuxLocalAccountRotationGeneratedCredentials> = async (- _,- callback,- activeCredentials- ) => {+ const rotateCredentials: TRotationFactoryRotateCredentials<+ TUnixLinuxLocalAccountRotationGeneratedCredentials+ > = async (_, callback, activeCredentials) => {// For both methods, pass the current password// Self rotation: needed to authenticate as the user// Managed rotation: admin doesn't need it but it's harmless to passdiff --git a/backend/src/ee/services/secret-rotation-v2/unix-linux-local-account-rotation/unix-linux-local-account-rotation-schemas.ts b/backend/src/ee/services/secret-rotation-v2/unix-linux-local-account-rotation/unix-linux-local-account-rotation-schemas.tsindex f3801c9440..fef7951fe5 100644--- a/backend/src/ee/services/secret-rotation-v2/unix-linux-local-account-rotation/unix-linux-local-account-rotation-schemas.ts+++ b/backend/src/ee/services/secret-rotation-v2/unix-linux-local-account-rotation/unix-linux-local-account-rotation-schemas.ts@@ -55,13 +55,17 @@ export const UnixLinuxLocalAccountRotationTemplateSchema = z.object({})});-export const UnixLinuxLocalAccountRotationSchema = BaseSecretRotationSchema(SecretRotation.UnixLinuxLocalAccount).extend({+export const UnixLinuxLocalAccountRotationSchema = BaseSecretRotationSchema(+ SecretRotation.UnixLinuxLocalAccount+).extend({type: z.literal(SecretRotation.UnixLinuxLocalAccount),parameters: UnixLinuxLocalAccountRotationParametersSchema,secretsMapping: UnixLinuxLocalAccountRotationSecretsMappingSchema});-export const CreateUnixLinuxLocalAccountRotationSchema = BaseCreateSecretRotationSchema(SecretRotation.UnixLinuxLocalAccount)+export const CreateUnixLinuxLocalAccountRotationSchema = BaseCreateSecretRotationSchema(+ SecretRotation.UnixLinuxLocalAccount+).extend({parameters: UnixLinuxLocalAccountRotationParametersSchema,secretsMapping: UnixLinuxLocalAccountRotationSecretsMappingSchema,@@ -84,7 +88,9 @@ export const CreateUnixLinuxLocalAccountRotationSchema = BaseCreateSecretRotatio}});-export const UpdateUnixLinuxLocalAccountRotationSchema = BaseUpdateSecretRotationSchema(SecretRotation.UnixLinuxLocalAccount).extend({+export const UpdateUnixLinuxLocalAccountRotationSchema = BaseUpdateSecretRotationSchema(+ SecretRotation.UnixLinuxLocalAccount+).extend({parameters: UnixLinuxLocalAccountRotationParametersSchema.optional(),secretsMapping: UnixLinuxLocalAccountRotationSecretsMappingSchema.optional()});diff --git a/backend/src/ee/services/secret-rotation-v2/unix-linux-local-account-rotation/unix-linux-local-account-rotation-types.ts b/backend/src/ee/services/secret-rotation-v2/unix-linux-local-account-rotation/unix-linux-local-account-rotation-types.tsindex 3f00a5555c..14da8dcbed 100644--- a/backend/src/ee/services/secret-rotation-v2/unix-linux-local-account-rotation/unix-linux-local-account-rotation-types.ts+++ b/backend/src/ee/services/secret-rotation-v2/unix-linux-local-account-rotation/unix-linux-local-account-rotation-types.ts@@ -19,4 +19,6 @@ export type TUnixLinuxLocalAccountRotationWithConnection = TUnixLinuxLocalAccounconnection: TSshConnection;};-export type TUnixLinuxLocalAccountRotationGeneratedCredentials = z.infer<typeof UnixLinuxLocalAccountRotationGeneratedCredentialsSchema>;+export type TUnixLinuxLocalAccountRotationGeneratedCredentials = z.infer<+ typeof UnixLinuxLocalAccountRotationGeneratedCredentialsSchema+>;