dokploy/packages/server
Mauricio Siu 18fb2547e4 fix: block bind mounts to sensitive host paths for non-owner/admin members
The Mounts feature (application/compose/database services) let any
member with volume:create access set an arbitrary bind mount hostPath,
with zero validation. Since generateBindMounts wires that path straight
into the Swarm service spec, a non-privileged member could mount
/var/run/docker.sock, /etc/dokploy, or other host-critical paths and
escalate to root on the Dokploy control host - same impact as bringing
your own docker-compose.yml with a docker.sock mount, but reachable
through the plain Mounts UI on any service type.

Add isDangerousBindMountPath() with a fixed blocklist of host-critical
paths (docker.sock, /etc/dokploy, /root, /boot, /proc, /sys, docker's
data dir) and isPrivilegedOrgRole(); mount.create/update now reject a
bind mount targeting one of those paths unless the caller is the org's
owner or admin. Single-user self-hosted installs are unaffected - the
sole user is always the owner.
2026-09-01 03:49:12 -06:00
..
scripts fix(server): update build paths 2024-10-26 15:48:30 -06:00
src fix: block bind mounts to sensitive host paths for non-owner/admin members 2026-09-01 03:49:12 -06:00
auth-schema2.ts feat(scim): implement SCIM 2.0 user provisioning support 2026-07-08 14:06:22 -06:00
auth-schema.ts Refactor user schema and update database references: rename 'users_temp' to 'user' across the codebase, update related database queries, and enhance endpoint specifications for swarm settings in various database schemas. 2025-11-08 13:54:32 -06:00
esbuild.config.ts Refactor and update various components in the Dokploy application, enhancing functionality and fixing minor issues across multiple pages and features, including dashboard, settings, and API integrations. 2025-08-16 20:18:08 -06:00
package.json fix: disable minimumReleaseAge (broke builds on unrelated AWS SDK deps) 2026-08-12 04:26:27 -06:00
tsconfig.json feat: upgrade to TypeScript 7 and Next.js 16.3 2026-08-11 01:39:09 -06:00
tsconfig.server.json feat: upgrade to TypeScript 7 and Next.js 16.3 2026-08-11 01:39:09 -06:00
tsconfig.server.no-decl.json [autofix.ci] apply automated fixes 2026-02-16 18:51:10 +00:00