gitpod-io / gitpod-io/gitpod

Account Blocked When Using Netdata Repo and Docker Container

Open
#12,555 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

meta: never-stale type: bug
Dominant language
TypeScript
Stars
13.8k
Forks
1.4k
Avg merge
17h 58m
Merged PRs (30d)
5

Description

Bug description

I have created a new workspace using the Netdata repository and then started up the Netdata container using their suggested command:

docker run -d --name=netdata \
  -p 19999:19999 \
  -v netdataconfig:/etc/netdata \
  -v netdatalib:/var/lib/netdata \
  -v netdatacache:/var/cache/netdata \
  -v /etc/passwd:/host/etc/passwd:ro \
  -v /etc/group:/host/etc/group:ro \
  -v /proc:/host/proc:ro \
  -v /sys:/host/sys:ro \
  -v /etc/os-release:/host/etc/os-release:ro \
  --restart unless-stopped \
  --cap-add SYS_PTRACE \
  --security-opt apparmor=unconfined \
  netdata/netdata

Within 5-10 seconds my workspace stopped and I see a Forbidden message:

Screen Shot 2022-08-31 at 11 13 30

I was able to locate the Google log entry but it was rather vague.

Steps to reproduce
  1. Create a new workspace based on the Netdata repository - https://gitpod.io/#https://github.com/netdata/netdata
  2. If a terminal isn't open, create one and use the following command:
    docker run -d --name=netdata \
      -p 19999:19999 \
      -v netdataconfig:/etc/netdata \
      -v netdatalib:/var/lib/netdata \
      -v netdatacache:/var/cache/netdata \
      -v /etc/passwd:/host/etc/passwd:ro \
      -v /etc/group:/host/etc/group:ro \
      -v /proc:/host/proc:ro \
      -v /sys:/host/sys:ro \
      -v /etc/os-release:/host/etc/os-release:ro \
      --restart unless-stopped \
      --cap-add SYS_PTRACE \
      --security-opt apparmor=unconfined \
      netdata/netdata
    
  3. Within 5-10 seconds note your workspace has stopped and you see a Forbidden message.
Workspace affected

netdata-netdata-4bw8algm36c

Expected behavior

While I expect that we do block nefarious code and such I wasn't expecting that Netdata get blocked as it is legitimate.

Example repository

https://github.com/netdata/netdata

Anything else?

No response

Front logo Front conversations

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure by creating a workspace from the Netdata repository and running the Docker command in the issue, then inspect the linked Google log entry and the resulting Forbidden state. Done means the legitimate Netdata container can run without the workspace being stopped or incorrectly blocked.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
cloud, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.