charmbracelet / soft-serve

The mighty, self-hostable Git server for the command line🍦
MIT License
5.16k stars 127 forks source link

Cant setup admin acess #501

Closed dostoievsky closed 4 months ago

dostoievsky commented 4 months ago

Describe the bug Hello. I am trying to run soft serve with go install on a freebsd jail.

To Reproduce Steps to reproduce the behavior:

  1. install go1.20 pkg install go

  2. install soft server with go

  3. run soft server I have some questions about the SOFT_SERVER_INITIAL_ADMIN_KEYS value and some issues with the documentation. Is SOFT_SERVER_INITIAL_ADMIN_KEYS a shell variable that could be placed on .bashrc or something, or only a docker variable?

  4. Then, after data folder creation, edit config.yaml: initial_admin_keys:

    • my_ed25519_key without ""
  5. run soft server again.

Expected behavior ssh localhost -i ~/.ssh/git -p 23231 info should return the admind data.

instead: git@git:~ $ ssh localhost -p 23231 -i ~/.ssh/git info Error: user not found

Environment (please complete the following information):

Additional context Add any other context about the problem here.

git@git:~ $ ssh localhost -p 23231 -i ~/.ssh/git note that allows me to enter the tui.

I clearly think its a issue with setting the key, since that key is password hashed and even when I do ssh localhost -p 23231 -i ~/.ssh/git the passkey is not asked.

Thanks for the atention!

dostoievsky commented 4 months ago

I have managed throught the port package. https://www.freshports.org/devel/soft-serve/

It was not clear, but throught the implementation of rc.d to use it as service I could edit the config file and got it running.