-
-
Notifications
You must be signed in to change notification settings - Fork 551
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
Disable SSH server by default on client side and add the flag --allow-server-ssh to enable it #1508
Conversation
Temporary patch removing SSH server on Client
Ssh allowed params
Hi @mlsmaycon I see you tried to relaunch the test pipeline. By looking at the logs, it appears it fail because it tried to test the SSH server connectivity. As in this pull request the SSH server is disabled by default (to ensure a zero-trust behavior of the agent) it will always fail.
What do you recommend ? |
Hello @charnesp, first of all, thanks for submitting the PR; I have two points to add about the PR and the tests:
What do you think? do you need some help there? |
Hi @mlsmaycon , it seems indeed logical for existing users. I pushed a modification of the code following your advise using pointers and tested it. It should cover your case. Thank you |
@charnesp we need to fix these tests TestEngine_SSH |
@bcmmbaga I guess the last pull should be ok concerning the TestEngine_SSH. |
Hi @bcmmbaga do you need my help for the branch conflicts? |
Yes, please resolve them. |
# Conflicts: # client/cmd/root.go # client/cmd/up.go # client/internal/config.go # client/proto/daemon.pb.go # client/proto/daemon.proto # client/server/server.go
Thanks, @charnesp, for the awesome contribution! |
@mlsmaycon my pleasure. Thank you for your amazing work and solution! |
Thank you so much for doing this!!! |
…-server-ssh to enable it (netbirdio#1508) This changes the default behavior for new peers, by requiring the agent to be executed with allow-server-ssh set to true in order for the management configuration to take effect.
Describe your changes
I add in the configuration of the Netbird client the option to allow (or not) the launch of an SSH server on the peer.
The client-side control of the SSH server option on the client side of Netbird create a root access to all peers by Netbird administrators, thus an important security issue.
This changes the default behavior for new peers, by requiring the agent to be executed with allow-server-ssh set to true in order for the management configuration to take effect. See example commands below:
To enable SSH
To disable SSH
Issue ticket number and link
#509 and #683
Checklist