mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-12-05 07:33:41 +00:00
4b582856b3
Hardens authorization and input containment found in a source audit. - shared assertServerAccess guard (org + accessedServers; rejects the local control-plane host on Cloud) applied to network, destination, registry, certificate, ai.deploy, docker/volume/image, swarm, cluster and settings - getRemoteDocker fails closed when the target server has no SSH key - bind path inputs to their owner: unzipDrop (zip-slip), patch repo file/dir read, backup object key, and volume restore (+ strict backupFileName) - domain.create authorizes every service id regardless of domainType - git-provider update (github/gitlab/gitea/bitbucket) checks provider ownership - notification update binds the channel sub-record id to the notification - backup web-server restore and service-less backup ops are owner/admin and org-bound - listen-deployment binds the requested logPath to an authorized deployment - github webhook pull_request closed scopes preview removal to the verified provider - gitea/gitlab OAuth callbacks require a session whose org owns the provider - SSRF: metrics endpoints, compose template baseUrl and AI model fetch go through providerFetch - apps/api and apps/schedules fail closed when API_KEY is unset - better-auth: member role/invite only via tRPC (+ admin-role ceiling), API-key sessions fail closed without a membership row, and reset/verification links use the canonical host instead of the request Host header Adds role-based regression tests (owner/admin/member/custom) covering both preserved legitimate access and blocked escalation.