-
Notifications
You must be signed in to change notification settings - Fork 152
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
Web terminal could not access in cluster resources #12899
Comments
I disagree with this because it has security implications - the web terminal uses your OIDC identity and as such, you might just have access to specific namespaces via kubectl. If the web terminal is allowed traffic inside the cluster, users can access applications they don't have any permissions for. We can maybe document how to create a NetworkPolicy that allows the web-terminal to access all (or specific) namespaces, but as a default this is potentially dangerous. |
Sounds also like a good idea. Couldn't we may have a setting on the webterminal "enable cluster network access" from the KKP UI? |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with /lifecycle stale |
/remove-lifecycle stale |
I think we should offer an option to at least allow egress traffic of the we terminal to make usage easier.
|
Agree, potential we could make a checkbox what enables the traffic
|
What happened?
Currently when we create the web terminal container, a default network policy get applied, what drops in cluster traffic. So if I'm a developer and want quickly test my application for reachability via curl, I can't do this. In my opinion, the inside cluster traffic should be allowed. At least as a user I would expect it.
Current applied network policy:
k get networkpolicies.networking.k8s.io -n kube-system webterminal-7557a12007cf6f5291f9863fa086c056 -o yaml
Expected behavior
Webterminal can access in cluster services / IPs (if no other network policy is applied)
How to reproduce the issue?
Creat a cluster with and create a webservice in a namespace, e.g. the echo application at run-2
Start Webterminal => Curl to endpoint what you get:
If you do the same with e.g. another debug container it works:
kubectl run shell-4033 --timeout 600s --namespace default --rm -i --tty --image nicolaka/netshoot -- /bin/sh -c bash #commands from above
How is your environment configured?
Provide your KKP manifest here (if applicable)
see https://github.com/kubermatic/sig-cs-infra/tree/main/lab.kubermatic.io/run-2.lab.kubermatic.io/settings
What cloud provider are you running on?
doesn't matter
What operating system are you running in your user cluster?
Ubuntu
Additional information
The text was updated successfully, but these errors were encountered: