-
Notifications
You must be signed in to change notification settings - Fork 238
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
Allow port forwarding visibility to be specified #5
Comments
I think the question is what the values should be here if we keep this as a general devcontainer.json property. The values The value of e.g. The value of Thoughts @chrmarti @bamurtaugh ? |
The values |
/cc @alexr00 |
I lean towards Can |
I can see the value in enabling an all interfaces option locally - it would allow you to hit the ports from another machine. By default, you'd have private that is just localhost. Certainly we could have a different name than I suppose |
Limiting the |
With the effort in #1, perhaps different providers could provide different visibility options? They could all be called |
I tend to like @Chuxel's framing of I wouldn't be opposed to having everything be namespaced as well, and leaving it up to each consumer to implement the appropriate behavior. |
Hmmm. Yeah @alexr00, agreed that three is arbitrary. I was more thinking the third option is more "delegate to the specified tool" like @asciimike was saying. Perhaps what we need to do here is support an object notation for more advanced scenarios that is optional. To @bamurtaugh 's point, you could then do different privs by product. So, we could have: "visibility": "private" "visibility": "public" "visibility": [{
"product": "codespaces",
"access": ["team:github/codespaces"]
}, {
"product": "remoteContainers",
"access": ["public"]
}] Or something like that... the "product" name would mirror #1. At that point This is an interesting one since the property itself is common, but the values could be product / tool specific. #1 was really about us thinking how to move truly product specific properties into a more extensible form. |
Including the "product" name in the setting would make it clearer, but then we would be diverging from the schema that VS Code uses for I would prefer |
I think keeping product-specific properties limited to the top-level properties we discuss in #1 is preferable for now. This will keep handing-off the JSON schema fragments to the corresponding products simple. |
Hey there! Did we get quorum on this feature request? I'm extremely interested in it as I've had to hack out a solution for making ports public at startup and its very ugly. I basically have a watchdog process that runs the following command at startup:
Here's my 2-cents... For most cases its
Thoughts? |
Currently developers can specify which ports to forward, but they can't specify visibility of those ports in e.g. Codespaces, so users are manually setting them every time, which is a bit of a pain.
I would propose adding a
visibility: public | org | private
option toportsAttributes
:C.f. community/community#10394
The text was updated successfully, but these errors were encountered: