Skip to content

devcontainer: use curl, drop wget (hadolint DL4001)#694

Open
randomizedcoder wants to merge 1 commit into
NVIDIA:mainfrom
randomizedcoder:security/devcontainer-curl-only
Open

devcontainer: use curl, drop wget (hadolint DL4001)#694
randomizedcoder wants to merge 1 commit into
NVIDIA:mainfrom
randomizedcoder:security/devcontainer-curl-only

Conversation

@randomizedcoder

Copy link
Copy Markdown

What: replace all wget calls in the devcontainer with curl; drop wget from the apt install list.
Why: shipping two TLS clients in one image doubles the attack surface and supply-chain churn. Standardising on curl also silences hadolint's DL3047 because curl is silent off-TTY by default.
How: wget -O X URLcurl -fSL --retry 3 -o X URL (fail on HTTP 4xx/5xx, follow redirects, retry transient failures); remove wget from apt-get install.

Found by:

  • hadolint 2.14.0, rule DL4001Either use Wget or Curl but not both.
  • hadolint 2.14.0, rule DL3047Avoid use of wget without progress bar (subsumed by the wget removal).

.devcontainer/Dockerfile
-fSL --retry 3 = fail on HTTP errors, follow redirects, retry on transient failure.
Removes wget from apt list.

Signed-off-by: randomizedcoder dave.seddon.ca@gmail.com <dave.seddon.ca@gmail.com>
randomizedcoder added a commit to randomizedcoder/dcgm-exporter that referenced this pull request Jun 20, 2026
Map each finding addressed in the report to its upstream PR
(NVIDIA/dcgm-exporter NVIDIA#681 NVIDIA#682 NVIDIA#683 NVIDIA#684 NVIDIA#685 NVIDIA#686 NVIDIA#687 NVIDIA#688 NVIDIA#689
 NVIDIA#690 NVIDIA#691 NVIDIA#692 NVIDIA#693 NVIDIA#694).

Signed-off-by: randomizedcoder dave.seddon.ca@gmail.com <dave.seddon.ca@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant