Using multiple bind mounts with private repositories enabled

Open
#336 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
docker, go
Domain
api, backend, devops

Research direction

Start by reproducing the setup with the rest-server Docker image, two host disks mounted at /data/sda and /data/sdb, and private repositories enabled. Compare repository creation using the sda and sdb URL paths with the working non-private configuration. Done means both mounted paths support the documented private-repository URLs, or the path restriction is clearly documented if that behavior is intentional.

Written by the indexing model from the issue text.

Description

Output of rest-server --version

restic/rest-server | latest | e4fb8546f625 | 8 months ago | 15.3MB

Problem description / Steps to reproduce

My setup includes two separate bind mounts (which are actually 2 separate disks attached to the host), which I mount into /data such that I have something like /data/sda and /data/sdb` inside the container. What I want to do is to have separate sets of repositories in these two locations.

Expected behavior

With private repos enabled, I should be able to create a repo using rest:https://user:pass@fqdn/sda/repo and/or rest:https://user:pass@fqdn/sda/user/repo.

Actual behavior

If I don't use private repositories, I am able to create repos with rest:https://user:pass@fqdn/sda/repo or rest:https://user:pass@fqdn/sda/user/repo. However, if I enable private repos, neither of those work, only rest:https://user:pass@fqdn/user/repo.

Do you have any idea what may have caused this?

No. I imagine the code is enforcing some sort of path requirements with private repos?

Did rest-server help you today? Did it make you happy in any way?

Yes, I am really happy with this project. This combined with backrest is ❤

Dominant language
Go
Stars
1.5k
Forks
178
Avg merge
15d 9h
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

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.

More from restic/rest-server

All issues in restic/rest-server

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.