From 79c9cf99e0812ea0e7abc197b2a7707c9500d870 Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Mon, 20 Jul 2026 01:19:48 -0600 Subject: [PATCH] fix(security): pass serviceId from the remaining terminal entry points - application general 'Open Terminal' now passes serviceId (applicationId). - The docker/terminal DockerTerminalModal now forwards serviceId to its Terminal. - compose container rows thread serviceId to their terminal + logs modals. This lets a member with service access (but without the docker permission) open the terminal / read logs of their own service's containers from every service view, matching the backend service-first authorization. --- .../components/dashboard/application/general/show.tsx | 1 + .../compose/containers/show-compose-containers.tsx | 7 +++++++ .../dashboard/docker/terminal/docker-terminal-modal.tsx | 3 +++ .../[environmentId]/services/compose/[composeId].tsx | 1 + 4 files changed, 12 insertions(+) diff --git a/apps/dokploy/components/dashboard/application/general/show.tsx b/apps/dokploy/components/dashboard/application/general/show.tsx index 67622662a..0fd1c3542 100644 --- a/apps/dokploy/components/dashboard/application/general/show.tsx +++ b/apps/dokploy/components/dashboard/application/general/show.tsx @@ -271,6 +271,7 @@ export const ShowGeneralApplication = ({ applicationId }: Props) => {