-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
0.30.0: "minikube dashboard --url" never completes #3236
Comments
I started minikube with And with Then it hangs |
Correct, as a security precaution, as of v0.30.0, the dashboard is now only exposed on-demand, by "minikube dashboard", which in-turn runs "kubectl proxy" underneath to enforce additional security restrictions to prevent DNS repinning attacks. Here's the security advisory: If you wish to ignore the security precaution, you may locally reverti the YAML change so that the NodePort is exposed. Also, the |
So, regarding #3208 and this issue -- if I understand it correctly, this could easily be solved by requiring user to specify credentials (username/password) for setting up a dashboard with minikube?
Exactly. Maybe this could/should be solved in two steps? E.g. Either way, IMHO
I believe the only debate is regarding what would be more proper way of action:
Invoking |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Closing as not feasible. Requiring users to execute two steps by default just isn't feasible. For security purposes (DNS repinning attacks), the URL should not be guessable, which is why we launch the proxy before hand. NOTE: As of v0.33, the dashboard service no longer runs by default, so the command command also runs the dashboard service if it isn't running already. If these security precautions are problematic in your environment - you are welcome to kubectl apply your own dashboard which does not use a proxy. You can then use |
minikube is hardly used in production, don't see a security issue there. I thought minikube is for testing and learning purpose only. |
BUG REPORT
Environment:
minikube version: v0.30.0
What happened:
minikube dashboard --url
shows URL and blocks - it doesn't finish properly. It needs to be closed by pressingCONTROL+C
.What you expected to happen:
minikube dashboard --url
should show the URL and exit. We are using this command in a script and this blocks the script from moving forward.How to reproduce it:
minikube dashboard --url
Anything else do we need to know:
This used to work properly at least in version v0.27. I've tracked the issued down to a few of the latest commits on Oct 3. It seems that
minikube dashboard
now starts akubectl proxy
, which doesn't make much sense in this context.The process seems to wait for
kubectl proxy
to finish (without any visual indication in the logs), but it never does. Hence the command never exists.If
kubectl proxy
is really needed, does it make sense to have theminikube dashboard --url
option at all? Does this mean that dashboard cannot be opened anymore directly by copy/pasting (and bookmarking) the URL? Do we really need the command line to access the dashboard? How does that work if I startminikube dashboard
from several consoles or close the console while browsing the dashboard?While the commit specifies that the change from
NodePort
tokubectl proxy
was done to increase security, I believe that the old way was better and just as secure (at least when running in VM, as it usually binds to local interfaces only and it's not accessible from outside world). If the change cannot be reverted, it should be at least possible to start minikube with old-style binding.The text was updated successfully, but these errors were encountered: