Add write-only mode
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 1.5k
- Forks
- 178
- Avg merge
- 15d 9h
- Merged PRs (30d)
- 2
Description
Output of rest-server --version
rest-server 0.9.7 compiled with go1.10 on linux/amd64
What should rest-server do differently?
Currently we've --append-only mode that tries to minimize risks of access to repo by attacker from compromised host.
So there is no way to remove data from repo. But there is still a way to 'restore' whatever attacker wants from --append-only repo.
It would be great to also have --write-only like option to completely disable read access to data subdir. I know that restic may need it during backup, but it's actually not strictly required: usually parent snapshot is already cached. And when not cached, it's still possible to perform slower backup with --force option that don't need that snapshot at all. Ideally restic should be aware of such write-only repo and automatically fallback to --force but not necessary.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how rest-server handles the existing --append-only mode and access to the data subdir. Check how restic backup reads from a repository and how --force changes that behavior. Done means a write-only option prevents read access while still allowing the intended backup requests, with appropriate tests for both permitted and denied access.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api, backend, security
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100