github / github/copilot-cli

Use unshare by default in linux to protect access

Open
#1,163 1 comment 3 reactions 0 assignees View on GitHub
area:platform-linux
Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Description

### Describe the feature or problem you'd like to solve

The tool should never have any kind of write access to places the users have not ack'ed for

### Proposed solution

I'm currently running copilot using bubblewrap to ensure it only works where I want via:

```sh
bwrap --ro-bind / / \
--bind "$PWD" "$PWD" \
--bind /tmp /tmp \
--bind "$HOME/.copilot" "$HOME/.copilot" \
--dev /dev \
--proc /proc \
--unshare-all \
copilot
```

This is something that the tool should do by default

### Example prompts or workflows

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.