Skip to content
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

quick-setup: allow running script without setup-sshd function #2381

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

jklare
Copy link
Contributor

@jklare jklare commented Jan 8, 2025

  • although the setup-sshd function seems useful for certain cases, it is generally unrelated to what the rest of the script does and strictly not needed for most people
  • to allow people to run the script without also modifying the sshd config on their servers (which might be considered a security violation in some contexts), this patch introduces an additional environment variable "SETUP_SSH", which can be set to "false" (or any other value than "true") to disable running the setup-sshd function
  • to not break backward compatibility and keep the current functionality the same, the default value for this variable is set to "true"

@hellt
Copy link
Member

hellt commented Jan 8, 2025

Thanks, @jklare
can you please make one slight change: SETUP_SSH -> SETUP_SSHD

* although the setup-sshd function seems useful for certain cases, it is
  generally unrelated to what the rest of the script does and strictly
  not needed for most people
* to allow people to run the script without also modifying the sshd
  config on their servers (which might be considered a security
  violation in some contexts), this patch introduces an additional
  environment variable "SETUP_SSH", which can be set to "false" (or any
  other value than "true") to disable running the setup-sshd function
* to not break backward compatibility and keep the current functionality
  the same, the default value for this variable is set to "true"

Signed-off-by: Jan Klare <[email protected]>
@jklare
Copy link
Contributor Author

jklare commented Jan 8, 2025

@hellt Thanks for the quick review, done!

@hellt hellt merged commit 770afc8 into srl-labs:main Jan 8, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants