Skip to content

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

chore(pam): lint fixes

bernie-g0d03b568cd55
diff --git a/backend/src/ee/services/pam-web-access/mysql/pam-mysql-connection-controller.ts b/backend/src/ee/services/pam-web-access/mysql/pam-mysql-connection-controller.ts
index c7e0194b2e..aabd695d8b 100644
--- a/backend/src/ee/services/pam-web-access/mysql/pam-mysql-connection-controller.ts
+++ b/backend/src/ee/services/pam-web-access/mysql/pam-mysql-connection-controller.ts
@@ -14,16 +14,7 @@ import { getTableDetailQuery } from "./pam-mysql-data-explorer-metadata";
const MAX_ROWS = 1000;
-const IMPLICIT_COMMIT_COMMANDS = new Set([
- "CREATE",
- "ALTER",
- "DROP",
- "TRUNCATE",
- "RENAME",
- "GRANT",
- "REVOKE",
- "LOCK"
-]);
+const IMPLICIT_COMMIT_COMMANDS = new Set(["CREATE", "ALTER", "DROP", "TRUNCATE", "RENAME", "GRANT", "REVOKE", "LOCK"]);
export const createMysqlConnectionController = async (params: ControllerParams): Promise<TConnectionController> => {
const { relayPort, username, database, sessionId, connectionId, sendResponse, onUnexpectedTermination } = params;
diff --git a/backend/src/ee/services/pam-web-access/mysql/pam-mysql-data-explorer-fns.test.ts b/backend/src/ee/services/pam-web-access/mysql/pam-mysql-data-explorer-fns.test.ts
index 20f5882977..44aacaf69e 100644
--- a/backend/src/ee/services/pam-web-access/mysql/pam-mysql-data-explorer-fns.test.ts
+++ b/backend/src/ee/services/pam-web-access/mysql/pam-mysql-data-explorer-fns.test.ts
@@ -120,10 +120,7 @@ describe("splitMysqlStatements", () => {
});
test("double-dash with trailing space is a line comment", () => {
- expect(splitMysqlStatements("SELECT 1 -- comment\n; SELECT 2")).toEqual([
- "SELECT 1 -- comment",
- "SELECT 2"
- ]);
+ expect(splitMysqlStatements("SELECT 1 -- comment\n; SELECT 2")).toEqual(["SELECT 1 -- comment", "SELECT 2"]);
});
test("double-dash at end of input is a line comment", () => {
@@ -131,10 +128,7 @@ describe("splitMysqlStatements", () => {
});
test("double-dash with tab is a line comment", () => {
- expect(splitMysqlStatements("SELECT 1 --\tcomment\n; SELECT 2")).toEqual([
- "SELECT 1 --\tcomment",
- "SELECT 2"
- ]);
+ expect(splitMysqlStatements("SELECT 1 --\tcomment\n; SELECT 2")).toEqual(["SELECT 1 --\tcomment", "SELECT 2"]);
});
test("backtick identifier with backslash is not escaped", () => {
diff --git a/frontend/src/pages/pam/PamAccountAccessPage/PamAccountAccessPage.tsx b/frontend/src/pages/pam/PamAccountAccessPage/PamAccountAccessPage.tsx
index 987d80b9da..83a4bb6051 100644
--- a/frontend/src/pages/pam/PamAccountAccessPage/PamAccountAccessPage.tsx
+++ b/frontend/src/pages/pam/PamAccountAccessPage/PamAccountAccessPage.tsx
@@ -112,7 +112,10 @@ const PageContent = () => {
return (
<SessionAccessGate account={account}>
{({ reason, mfaSessionId }) => {
- if (account.accountType === PamAccountType.Postgres || account.accountType === PamAccountType.MySQL) {
+ if (
+ account.accountType === PamAccountType.Postgres ||
+ account.accountType === PamAccountType.MySQL
+ ) {
return <PamDataExplorerPage reason={reason} mfaSessionId={mfaSessionId} />;
}
return <TerminalContent account={account} reason={reason} mfaSessionId={mfaSessionId} />;