itzg / itzg/docker-mc-backup

Manually exec'ing `restic tag` command results in mismatch of user execution

Open
#69 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
538
Forks
69
Avg merge
3h 28m
Merged PRs (30d)
2

Description

Steps to reproduce:

1. Start container
2. Make sure `restic` repository has snapshots
3. Check `restic` snapshot cache ownership: `docker exec ls -lR /tmp/.cache/restic | grep root`
4. Notice nothing is owned by `root`
5. Modify `restic` snapshot tags: `docker exec restic tag --add vanilla `
6. Check `restic` snapshot cache ownership again: `docker exec ls -lR /tmp/.cache/restic | grep root`
7. Notice that the cache's modified snapshot(s) are now owned by `root`

I haven't tested with other `restic` "writable" functions but I suppose they'll probably do the same.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the listed docker exec commands and inspecting how the container runs manually invoked restic operations and writes /tmp/.cache/restic. Done means writable restic commands preserve the expected container user ownership in the cache; the payload names no source files or tests to inspect.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, shell
Domain
devops, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.