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

Processes listening on localhost are not exposed by the gateway #21430

Closed
l0rd opened this issue May 27, 2022 · 7 comments
Closed

Processes listening on localhost are not exposed by the gateway #21430

l0rd opened this issue May 27, 2022 · 7 comments
Labels
area/gateway kind/bug Outline of a bug - must adhere to the bug report template. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. severity/P1 Has a major impact to usage or development of the system.

Comments

@l0rd
Copy link
Contributor

l0rd commented May 27, 2022

Describe the bug

Although I have defined the following endpoint in my devfile:

      - name: tilt
        targetPort: 10350
        exposure: public
        protocol: http
        attributes:
          urlRewriteSupported: false

Eclipe Che Port extension ask me if I want to add a redirect to it:

image

And although I answer yes to this question then I am not able to access the application using the browser. I get a blank screen:

image

image

If I start the application to listen to the interface 0.0.0.0 then everything works fine:

image

image

Che version

next (development version)

Steps to reproduce

Open a workspace Eclipse Che dogfooding using this link (for Che committers only) instance.

Open a shell and run tilt up:

cd 201-quarkus-live-update && tilt up -f Tiltfile.buildah

Expected behavior

I was expecting the port to be redirected automatically (without asking).

And in particular I need to set the attribute urlRewriteSupported: false on that endpoint and that's not the case with the pre-defined che-code endpoints.

@l0rd l0rd added the kind/bug Outline of a bug - must adhere to the bug report template. label May 27, 2022
@l0rd
Copy link
Contributor Author

l0rd commented May 27, 2022

@benoitf do you have any clue?

@l0rd l0rd added area/plugin-port Issues related to the port plugin severity/P1 Has a major impact to usage or development of the system. labels May 27, 2022
@benoitf
Copy link
Contributor

benoitf commented May 31, 2022

@l0rd my guess it that tilt is listening to 127.0.0.1 only so while you're saying that this port is reachable from the outside it's still not 'exposed'

try using --host 0.0.0.0 on tilt

tilt up --host 0.0.0.0 -f Tiltfile.buildah

@l0rd l0rd changed the title Endpoint is not discovered when using vscode Processes listening on localhost are not exposed by the gateway Jun 3, 2022
@l0rd
Copy link
Contributor Author

l0rd commented Jun 3, 2022

@benoitf Changing the command to listen to interface 0.0.0.0 works fine 👍

@benoitf
Copy link
Contributor

benoitf commented Jun 3, 2022

should we close the issue then ?

@l0rd
Copy link
Contributor Author

l0rd commented Jun 3, 2022

I have updated the description but it still looks like a gateway issue (not a plugin-port issue). We should be able to expose processes listening to localhost too shouldn't we?

@l0rd l0rd added area/gateway and removed area/plugin-port Issues related to the port plugin labels Jun 3, 2022
@benoitf
Copy link
Contributor

benoitf commented Jun 3, 2022

yes it should be the role of the gateway to simplify such usecase (do not need to change commands to execute)

@l0rd l0rd mentioned this issue Jun 8, 2022
64 tasks
@che-bot
Copy link
Contributor

che-bot commented Nov 30, 2022

Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.

Mark the issue as fresh with /remove-lifecycle stale in a new comment.

If this issue is safe to close now please do so.

Moderators: Add lifecycle/frozen label to avoid stale mode.

@che-bot che-bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 30, 2022
@che-bot che-bot closed this as completed Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/gateway kind/bug Outline of a bug - must adhere to the bug report template. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. severity/P1 Has a major impact to usage or development of the system.
Projects
None yet
Development

No branches or pull requests

3 participants