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 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..0e3854164 100644 --- a/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionLogsSection.tsx +++ b/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionLogsSection.tsx @@ -1,4 +1,5 @@ -import { faTerminal } from "@fortawesome/free-solid-svg-icons"; +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"; @@ -8,28 +9,64 @@ 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 ( +
- )) +
+ {log.input} +
+ + {isExpanded && log.output && ( +
+ {log.output} +
+ )} + + ); + }) ) : (
No session logs 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) =
- +
- +
))}