devcontainers / devcontainers/spec

Allow port forwarding visibility to be specified

Open
#5 12 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.