ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.
Python astracloudflarecontrol-panelcyberpaneldnsfablehosting-control-panelhosting-panelkimi-k3server-managementserverkitubuntu-web-panelwebserver
docs(agent): clarify compose path allowlist is enforced at the handler layer
Juan Denis41983cc3a93e
diff --git a/agent/internal/docker/client.go b/agent/internal/docker/client.goindex b546ecec..ff99c18c 100644--- a/agent/internal/docker/client.go+++ b/agent/internal/docker/client.go@@ -872,7 +872,15 @@ func (c *Client) ComposePull(ctx context.Context, projectPath, service string) (return string(output), nil}-// validateProjectPath validates the project path to prevent path traversal attacks+// validateProjectPath is a syntactic sanity check on a compose project path+// (non-empty, absolute, no `..` traversal). It is NOT the authorization+// boundary: the real restriction to the operator-configured roots is the+// symlink-resolved allowlist in the agent layer+// (agent.validateFileAccess → resolveSymlinkPath/pathWithinAllowedRoot),+// which every compose handler in internal/agent/agent.go runs on the+// project_path BEFORE calling these Compose* methods. Any NEW caller of the+// Compose* API must perform that AllowedPaths check first — this function+// alone does not confine paths to AllowedPaths.func validateProjectPath(projectPath string) error {if projectPath == "" {return fmt.Errorf("project path is required")