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
Greptile review fixes
x032205f732028290bf
diff --git a/backend/src/db/migrations/20250815022242_identity-lockouts.ts b/backend/src/db/migrations/20250815022242_identity-lockouts.tsindex a0e661d2d5..41146d29e3 100644--- a/backend/src/db/migrations/20250815022242_identity-lockouts.ts+++ b/backend/src/db/migrations/20250815022242_identity-lockouts.ts@@ -9,7 +9,7 @@ export async function up(knex: Knex): Promise<void> {const hasLockoutDuration = await knex.schema.hasColumn(TableName.IdentityUniversalAuth, "lockoutDuration");const hasLockoutCounterReset = await knex.schema.hasColumn(TableName.IdentityUniversalAuth, "lockoutCounterReset");- await knex.schema.alterTable(TableName.IdentityUniversalAuth, async (t) => {+ await knex.schema.alterTable(TableName.IdentityUniversalAuth, (t) => {if (!hasLockoutEnabled) {t.boolean("lockoutEnabled").notNullable().defaultTo(true);}diff --git a/backend/src/ee/services/audit-log/audit-log-types.ts b/backend/src/ee/services/audit-log/audit-log-types.tsindex 21c5d6ba17..09d7083253 100644--- a/backend/src/ee/services/audit-log/audit-log-types.ts+++ b/backend/src/ee/services/audit-log/audit-log-types.ts@@ -199,7 +199,7 @@ export enum EventType {CREATE_IDENTITY_UNIVERSAL_AUTH_CLIENT_SECRET = "create-identity-universal-auth-client-secret",REVOKE_IDENTITY_UNIVERSAL_AUTH_CLIENT_SECRET = "revoke-identity-universal-auth-client-secret",CLEAR_IDENTITY_UNIVERSAL_AUTH_LOCKOUTS = "clear-identity-universal-auth-lockouts",- CLEAR_IDENTITY_LDAP_AUTH_LOCKOUTS = "clear-identity-ldap-lockouts",+ CLEAR_IDENTITY_LDAP_AUTH_LOCKOUTS = "clear-identity-ldap-auth-lockouts",GET_IDENTITY_UNIVERSAL_AUTH_CLIENT_SECRETS = "get-identity-universal-auth-client-secret",GET_IDENTITY_UNIVERSAL_AUTH_CLIENT_SECRET_BY_ID = "get-identity-universal-auth-client-secret-by-id",diff --git a/frontend/src/hooks/api/auditLogs/enums.tsx b/frontend/src/hooks/api/auditLogs/enums.tsxindex 13af797880..90cb5e237b 100644--- a/frontend/src/hooks/api/auditLogs/enums.tsx+++ b/frontend/src/hooks/api/auditLogs/enums.tsx@@ -54,7 +54,7 @@ export enum EventType {UPDATE_IDENTITY_LDAP_AUTH = "update-identity-ldap-auth",GET_IDENTITY_LDAP_AUTH = "get-identity-ldap-auth",REVOKE_IDENTITY_LDAP_AUTH = "revoke-identity-ldap-auth",- CLEAR_IDENTITY_LDAP_AUTH_LOCKOUTS = "clear-ldap-auth-lockouts",+ CLEAR_IDENTITY_LDAP_AUTH_LOCKOUTS = "clear-identity-ldap-auth-lockouts",CREATE_ENVIRONMENT = "create-environment",UPDATE_ENVIRONMENT = "update-environment",diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/lockout/LockoutTab.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/lockout/LockoutTab.tsxindex 5b6acf6f12..02bb10e73d 100644--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/lockout/LockoutTab.tsx+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/lockout/LockoutTab.tsx@@ -27,7 +27,6 @@ export const LockoutTab = ({<Controllercontrol={control}name="lockoutEnabled"- defaultValuerender={({ field: { value, onChange }, fieldState: { error } }) => {return (<FormControl