Coder Social home page Coder Social logo

mercurial-server's People

Contributors

darksimpson avatar

Stargazers

 avatar  avatar

Forkers

sschwarzer

mercurial-server's Issues

`hg-ssh` execution as hg user fails

A friend of mine and I tried your container setup and ran into the problem that we weren't able to "log in" as hg. As it turned out, the file ms/src/mercurialserver/refreshauth.py (in line 56) creates an entry in hg's authorized_keys that has a command "hg-ssh <keyfile>". However, according to the hg-ssh manpage, hg-ssh takes a list of repository paths as arguments (e. g. from the manpage command="hg-ssh path/to/repo1 /path/to/repo2 ~/repo3 ~user/repo4").

After changing refreshauth.py to generate the command hg-ssh ~/repos/* the command execution still didn't work. However, it did after changing the base image of Alpine Linux to the current version 3.10.3 and using the hg-ssh installed with the Mercurial version 4.9.1. Alpine Linux 3.8, as currently listed in the Dockerfile on master, has Mercurial 4.6.1. We weren't able to find hg-ssh in the installed Mercurial 4.6.1.

Caveats:

  • It's not clear to me why the version of hg-ssh on master didn't work even after changing refreshauth.py. Possibly this used to work.

  • The command hg-ssh ~/repos/* allows access to all currently existing repositories, but it isn't possible to create new repositories that way. It depends on the intentions of the admin installing the container image whether this is wanted or not.

I'm going to enter a pull request since we already fixed the problem in our clone and everything seems to work fine now on our side.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.