restic / rest-server

Rest Server is a high performance HTTP server that implements restic's REST backend API.
BSD 2-Clause "Simplified" License
943 stars 140 forks source link

Configurable `.htpasswd` Location #187

Closed dwmunster closed 2 years ago

dwmunster commented 2 years ago

Output of rest-server --version

0.11.0

What should rest-server do differently?

I would like to be able to configure the location of the .htpasswd file used for HTTP Basic authentication.

What are you trying to do? What is your use case?

I am looking to run rest-server in Kubernetes. In particular, I would like to use secrets to manage the contents of the .htpasswd file. While the contents of secrets can easily be mounted/projected into containers, it is more difficult to do so on top of another volume, such as the one needed to persist the restic repositories. By allowing the path of that file to be configurable, the secret could be mounted elsewhere and better integrated with Kubernetes secret management.

I would be glad to submit a PR implementing this feature if there is interest.

rawtaz commented 2 years ago

I think this makes sense, and would welcome a PR to base the discussion off!