crashappsec / crashappsec/chalk

Chalk creates a chalk-reports.jsonl file with no perms

Open
#208 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Nim
Stars
436
Forks
25
PR merge metrics
No merged PRs in 30d

Description

## Description

When chalking a docker image on my MacBook chalk creates a chalk-reports.jsonl file with no perms.
The next time I run the same command it fails with `ERROR: failed to solve: error from sender: failed to xattr chalk-reports.jsonl: permission denied`

## Impact

The command fails.
Theres a simple work around though - just delete the chalk-reports.jsonl file.

## Steps to Reproduce

I dont know if it fails in the same way with other docker images - I tried creating a v simple one but that didnt do the same thing.

```
git clone https://github.com/juice-shop/juice-shop.git
cd juice-shop
chalk docker buildx build -t chalk-test -f Dockerfile .
ls -l chalk-reports.jsonl
chalk docker buildx build -t chalk-test -f Dockerfile .
```

## Other Information

```
ls -l chalk-reports.jsonl
---------- 1 simon staff 0 16 Feb 16:44 chalk-reports.jsonl

uname -mo
Darwin arm64

docker -v
Docker version 20.10.21, build baeda1f
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the two `chalk docker buildx build` commands on Darwin arm64 and inspect the permissions of `chalk-reports.jsonl` after the first run. Confirm the behavior with the provided Juice Shop steps and Docker version. Done means the second build succeeds without the permission-denied error and the report file remains usable.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.