devcontainers / devcontainers/spec

[proposal] add support to custom headers when using HTTPS reference to a feature

Open
#247 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
No language data
Stars
5.7k
Forks
496
PR merge metrics
No merged PRs in 30d

Description

It is currently possible to reference features using https URIs, I think it would be great if headers were passed when the download request is sent.

As the "content" of the feature is already used to define options, an environment variable defining the headers sent with the request could be used. For instance a environment variable declare as this:
```
FEATURE_URI_HEADERS = { : }
```
The tool would parse the environment variable and add corresponding headers. This way, headers used for authentication could be sent while trying to download the tar.gz containing the feature.

PS: I post this proposal as a development of this issue on CLI: https://github.com/devcontainers/cli/issues/531#issuecomment-1574443082

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.