langgenius / langgenius/dify-sandbox

The file /etc/passwd has generated a large number of sandbox UIDs

Open
#245 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.3k
Forks
326
Avg merge
56m
Merged PRs (30d)
3

Description

During local development, 1000 sandbox UIDs are generated every time the service is restarted. Additionally, it is unsafe to start the service as the root user

```bash
$ grep "sandbox10" /etc/passwd | wc -l
41000
```
```bash
$ grep "sandbox10000" /etc/passwd | wc -l
41
```
```bash
$ grep "sandbox10999" /etc/passwd | wc -l
41
```

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file, test, or entry point is named. Start by locating the service startup path that creates sandbox UIDs and the handling of root execution, then reproduce the restart behavior locally. Done means restarts no longer create an unbounded number of entries in /etc/passwd and starting as root is handled safely.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
operating-systems, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.