Expose internal Servers with localhost on Kubernetes/OpenShift infrastructures #10420
Labels
kind/task
Internal things, technical debt, and to-do tasks to be performed.
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
status/open-for-dev
An issue has had its specification reviewed and confirmed. Waiting for an engineer to take it.
Description
The current way of exposing internal server may have the following security issue: in a case when Che is configured to use the same namespace for workspaces of different users, there is an ability for a user to request another user internal servers.
Initially, internal servers were implemented for Language Server that doesn't have any authentication. So, it would be more secure to not to create any services for exposing internal servers and return
localhost
as host of internal server. Since Language server and workspace agent (or theia server side) should be in the same pod because of using the sameprojects
volume, LS can be requested by using URL similar totcp://localhost:4393
So, it is needed expose internal Servers with localhost on Kubernetes/OpenShift infrastructures.
The text was updated successfully, but these errors were encountered: