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

hide rke2-uninstall.sh to avoid accidental deletion of RKE2 #3928

Closed
harridu opened this issue Feb 20, 2023 · 5 comments
Closed

hide rke2-uninstall.sh to avoid accidental deletion of RKE2 #3928

harridu opened this issue Feb 20, 2023 · 5 comments

Comments

@harridu
Copy link

harridu commented Feb 20, 2023

Its easy to run rke2-uninstall.sh instead of rke2-killall.sh by accident or out of confusion, esp. if command line completion is enabled. This is fatal. I would suggest to better hide the uninstall scripts.

@brandond
Copy link
Member

I don't believe this is something we're likely to do. There are a lot of mistakes an inattentive cli user may make; every user who's ever run rm -rf / on accident can sympathize. The solution is to type carefully, rather than expecting your tools to remove every potentially harmful command from being suggested by shell completion.

@harridu
Copy link
Author

harridu commented Feb 20, 2023

Of course its a mistake to run the harmful command, but rke2-uninstall.sh sounds as destructive as rke2-killall.sh. Moving it to somewhere else (outside of the usual $PATH) would be a defensive measure not hurting anybody.

It is even lacking a confirmation dialog, nor does it catch something like "rke2-uninstall.sh --help". Not best practice.

@thrashwerk
Copy link

While I don't think it's a huge problem because you should be able to quickly get that node back in the cluster, the script could be improved. It could display some info when ran with --help, ask for confirmation when ran with no flags and maybe a -y flag that immediately starts uninstalling if you'd need to run it on multiple servers at once.

@harridu
Copy link
Author

harridu commented Apr 4, 2023

I highly appreciate your work on RKE2.

@caroline-suse-rancher
Copy link
Contributor

Closing this as it's not currently in our plans to modify

@caroline-suse-rancher caroline-suse-rancher closed this as not planned Won't fix, can't repro, duplicate, stale Sep 20, 2023
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

No branches or pull requests

4 participants