Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,11 @@ def __init__(
if bind_dir:
self._bind_dir = Path(bind_dir) if isinstance(bind_dir, str) else bind_dir
self._bind_dir.mkdir(exist_ok=True)
os.chmod(bind_dir, 0o777)
# Owner-only (0o700). Docker bind-mount preserves ownership, so the
# container retains read/write regardless of host-side mode. 0o777
# unnecessarily exposed agent-generated code and session artifacts to
# any local user on the host.
os.chmod(bind_dir, 0o700)

# Determine and prepare Docker image
image_name = custom_image_name or "autogen-jupyterkernelgateway"
Expand Down