You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tunnel interface overwrites existing files when creating Unix sockets #1140
Workshop should reject tunnel creation if the Unix socket endpoint path already exists, regardless of the existing file type, rather than overwriting it.
Proposed Fix
Validate the endpoint path using os.Lstat() before configuring the LXD proxy device.
Allow creation if the path does not exist.
Reject creation if the path already exists, including regular files, directories, symbolic links, and Unix sockets.
Return a clear error without modifying the existing file.
Verification
With the proposed fix, Workshop aborts launch with:
I have also verified that this fix does not affect the normal Workshop lifecycle. The start, stop, and refresh operations all continue to work as expected.
Activity