-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add instructions to run in docker #32
Conversation
If I understand correctly the |
Yes
Yes, but by default, users can use the default config (and we should keep it runnable always) and |
Yes, but since It would be better if there are no manual steps except for a config file. Maybe we can let users prepare the private key and paste the public key to the |
I prefer this, commit default username/password and key pairs to repo, in So one can start it with a single docker command without configuring anything. But we must warn user to change default credentials before deploying them to production. |
6bba6a9
to
ac0e1c8
Compare
ac0e1c8
to
953ce26
Compare
Just added a default password to the config template and remove the built-in authorized key. But the warning message cannot be printed on the client-side, I didn't find a better way for doing this. |
Yes, but I don't think this will be a problem. Since the warning should be printed to stderr when lobbyboy starts (there is no "client" to print, when the server just started, right?) |
@@ -39,8 +39,11 @@ def check_channel_request(self, kind, channel_id): | |||
return paramiko.common.OPEN_FAILED_ADMINISTRATIVELY_PROHIBITED | |||
|
|||
def check_auth_password(self, username, password): | |||
# TODO load config file every time. | |||
if (username == "foo") and (password == "bar"): | |||
logger.warning( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh there is the "warning" you are talking about.
Yes, here the ssh connection is not established yet, so we can not send anything to users.
If you want, you have to use some kind of global vars (or some private variable of Server
instance) to indicate the client was actually auth-ed by password.
looks good to me now! no private keys builtin, very well 🍨 |
I don't know which container registry you prefer, I choose GitHub packages in the PR.