Add "build.secrets" field to `devcontainer.json`

Open
#4,841 24 comments 51 reactions 1 assignee View on GitHub

@chrmarti is already working on this.

Since Apr 8, 2021.

Assessment

This issue has not been assessed yet.

Description

containers under-discussion

I'd like a way to use build secrets BuildKit's --secret in remote containers. Seemingly straightforward implementation: add a field for secrets underneath build in devcontainer.json (list of strings), and map each entry in that list to a --secret arg whenever the docker build command gets created

This is related to https://github.com/microsoft/vscode-remote-release/issues/1409, but that's not required (if users have some other way to make sure they're using BuildKit, this feature could be independently useful).

Dominant language
Dockerfile
Stars
4.2k
Forks
470
Avg merge
1d 1h
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/vscode-remote-release

All issues in microsoft/vscode-remote-release

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.