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

[Sharing] Guest users cannot expose a port #1241

Closed
svenefftinge opened this issue Feb 20, 2020 · 3 comments
Closed

[Sharing] Guest users cannot expose a port #1241

svenefftinge opened this issue Feb 20, 2020 · 3 comments

Comments

@svenefftinge
Copy link
Member

Describe the bug

Guest users on shared workspaces cannot expose a port.
The pop up is shown, but pressing expose doesn't do anything.

Workaround:

Enter the port in a .gitpod.yml and reload the browser.

Going to be obsolete with next deployment, as users as well as guest users will automatically have access to all ports.

@ivanraybuglosa
Copy link

I actually did the workaround but still can't show the running app. Is there anything else that I can do? Thanks for the help!

@svenefftinge
Copy link
Member Author

I tried that myself before posting it here and it worked for me. To avoid missunderstandings here is what I did:

  1. created a .gitpod.yml in the root of the project with the following contents
ports:
 - port: 4000
  1. shared the workspace with someone. The person needs to be logged in with gitpod.
  2. start a webserver, e.g. python3 -m http.server 4000

The guest user should the a notification, asking whether to preview or open in browser.

@svenefftinge
Copy link
Member Author

The fix/change is now deployed in production.

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

2 participants