devcontainers / devcontainers/spec
Allow port forwarding visibility to be specified
Open
proposal
- Dominant language
- No language data
- Stars
- 5.7k
- Forks
- 496
- PR merge metrics
- No merged PRs in 30d
Description
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 to `portsAttributes`:
```json
{
...
"forwardPorts": [3000],
"portsAttributes": {
"3000": {
"visibility": "public"
}
}
...
}
```
C.f. https://github.com/github/feedback/discussions/10394
Contributor guide
Assessment
This issue has not been assessed yet.