From be566fa37da05ccfe5c0463a81354d611796936b Mon Sep 17 00:00:00 2001 From: x032205 Date: Fri, 3 Oct 2025 18:51:15 -0400 Subject: [PATCH 1/4] trim search results --- .../pages/pam/PamSessionsPage/components/PamSessionRow.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/pam/PamSessionsPage/components/PamSessionRow.tsx b/frontend/src/pages/pam/PamSessionsPage/components/PamSessionRow.tsx index b18e11ba3..f730e331d 100644 --- a/frontend/src/pages/pam/PamSessionsPage/components/PamSessionRow.tsx +++ b/frontend/src/pages/pam/PamSessionsPage/components/PamSessionRow.tsx @@ -167,10 +167,10 @@ export const PamSessionRow = ({ session, search, filteredCommandLogs }: Props) =
- +
- +
))} From 837c1b3b2b56c2307b0c8f1c12f29a8914d24cf8 Mon Sep 17 00:00:00 2001 From: x032205 Date: Sat, 4 Oct 2025 04:09:03 -0400 Subject: [PATCH 2/4] improve PAM session log rows --- .../PamSessionByIDPage.tsx | 6 +- .../components/PamSessionLogsSection.tsx | 68 ++++++++++++++----- 2 files changed, 55 insertions(+), 19 deletions(-) diff --git a/frontend/src/pages/pam/PamSessionsByIDPage/PamSessionByIDPage.tsx b/frontend/src/pages/pam/PamSessionsByIDPage/PamSessionByIDPage.tsx index 12574a054..b82c6b6e7 100644 --- a/frontend/src/pages/pam/PamSessionsByIDPage/PamSessionByIDPage.tsx +++ b/frontend/src/pages/pam/PamSessionsByIDPage/PamSessionByIDPage.tsx @@ -21,16 +21,16 @@ const Page = () => { return (
{session && ( -
+
-
+
-
+
diff --git a/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionLogsSection.tsx b/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionLogsSection.tsx index a25db4c3c..b0a2f9890 100644 --- a/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionLogsSection.tsx +++ b/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionLogsSection.tsx @@ -1,5 +1,6 @@ -import { faTerminal } from "@fortawesome/free-solid-svg-icons"; +import { faChevronRight, faChevronDown } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import { useState } from "react"; import { TPamSession } from "@app/hooks/api/pam"; @@ -8,28 +9,63 @@ type Props = { }; export const PamSessionLogsSection = ({ session }: Props) => { + const [expandedLogTimestamps, setExpandedLogTimestamps] = useState>(new Set()); + + const toggleExpand = (timestamp: string) => { + setExpandedLogTimestamps((prev) => { + const newSet = new Set(prev); + if (newSet.has(timestamp)) { + newSet.delete(timestamp); + } else { + newSet.add(timestamp); + } + return newSet; + }); + }; + return ( -
+

Session Logs

-
+
{session.commandLogs.length > 0 ? ( - session.commandLogs.map((log) => ( -
-
- - {new Date(log.timestamp).toLocaleString()} -
+ session.commandLogs.map((log) => { + const isExpanded = expandedLogTimestamps.has(log.timestamp); + return ( +
toggleExpand(log.timestamp)} + > +
+
+ + {new Date(log.timestamp).toLocaleString()} +
+
-
- {log.input} +
+ {log.input} +
+ + {isExpanded && log.output && ( +
+ {log.output} +
+ )}
-
- {log.output} -
-
- )) + ); + }) ) : (
No session logs From d0da0ceaf20d0a2df14acba70b0f269f26400d18 Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Sat, 4 Oct 2025 13:43:21 -0400 Subject: [PATCH 3/4] add support for continuous monitoring --- .../release-standalone-docker-img-postgres-offical.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/release-standalone-docker-img-postgres-offical.yml b/.github/workflows/release-standalone-docker-img-postgres-offical.yml index 486ff12b2..fcecc4bf2 100644 --- a/.github/workflows/release-standalone-docker-img-postgres-offical.yml +++ b/.github/workflows/release-standalone-docker-img-postgres-offical.yml @@ -65,6 +65,15 @@ jobs: INFISICAL_PLATFORM_VERSION=${{ steps.extract_version.outputs.version }} DD_GIT_REPOSITORY_URL=${{ github.server_url }}/${{ github.repository }} DD_GIT_COMMIT_SHA=${{ github.sha }} + - name: Snyk to check Docker image for vulnerabilities + continue-on-error: true + uses: snyk/actions/docker@master + env: + SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} + with: + image: infisical/infisical:${{ steps.extract_version.outputs.version }} + command: monitor + args: --file=Dockerfile.standalone-infisical infisical-fips-standalone: name: Build infisical standalone image postgres From 7ad73f8b483d9bfbd94dada4910489132d156730 Mon Sep 17 00:00:00 2001 From: x032205 Date: Sat, 4 Oct 2025 21:49:48 -0400 Subject: [PATCH 4/4] Fix type check --- .../components/PamSessionLogsSection.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionLogsSection.tsx b/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionLogsSection.tsx index b0a2f9890..0e3854164 100644 --- a/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionLogsSection.tsx +++ b/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionLogsSection.tsx @@ -1,6 +1,6 @@ -import { faChevronRight, faChevronDown } from "@fortawesome/free-solid-svg-icons"; -import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { useState } from "react"; +import { faChevronDown, faChevronRight } from "@fortawesome/free-solid-svg-icons"; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { TPamSession } from "@app/hooks/api/pam"; @@ -33,10 +33,11 @@ export const PamSessionLogsSection = ({ session }: Props) => { session.commandLogs.map((log) => { const isExpanded = expandedLogTimestamps.has(log.timestamp); return ( -
toggleExpand(log.timestamp)} > @@ -63,7 +64,7 @@ export const PamSessionLogsSection = ({ session }: Props) => { {log.output}
)} -
+ ); }) ) : (