Skip to content

Updating dockerfile to use latest go-discover version and suppressing the alpine CVE's#333

Merged
paras-gupta2 merged 3 commits intorelease/0.9.xfrom
vuln-fix
Mar 17, 2026
Merged

Updating dockerfile to use latest go-discover version and suppressing the alpine CVE's#333
paras-gupta2 merged 3 commits intorelease/0.9.xfrom
vuln-fix

Conversation

@paras-gupta2
Copy link
Contributor

@paras-gupta2 paras-gupta2 commented Mar 17, 2026

Changes proposed in this PR:

  • Resolving the go discover CVE's by using latest go-discover version.
  • Suppressing the alpine CVE's as no fix is available for them.

How I've tested this PR:

How I expect reviewers to test this PR:

Checklist:

  • Tests added
  • CHANGELOG entry added

PCI review checklist

  • I have documented a clear reason for, and description of, the change I am making.

  • If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.

  • If applicable, I've documented the impact of any changes to security controls.

    Examples of changes to security controls include using new access control methods, adding or removing logging pipelines, etc.

@paras-gupta2 paras-gupta2 requested review from a team as code owners March 17, 2026 05:58
Copilot AI review requested due to automatic review settings March 17, 2026 05:58
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the build container to pull a newer go-discover to address reported CVEs, and tweaks Alpine package upgrade behavior in the release image stage.

Changes:

  • Switch go install for go-discover from a pinned commit to @latest.
  • Add apk update before apk upgrade in the release-default stage.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@paras-gupta2 paras-gupta2 temporarily deployed to dockerhub/hashicorpdev March 17, 2026 06:17 — with GitHub Actions Inactive
@paras-gupta2 paras-gupta2 temporarily deployed to dockerhub/hashicorpdev March 17, 2026 06:48 — with GitHub Actions Inactive
@paras-gupta2 paras-gupta2 changed the title Updating dockerfile to use latest go-discover version Updating dockerfile to use latest go-discover version and suppressing the alpine CVE's Mar 17, 2026
@paras-gupta2 paras-gupta2 requested a review from a team as a code owner March 17, 2026 07:22
@paras-gupta2 paras-gupta2 requested a review from rajeshsc1 March 17, 2026 07:22
@paras-gupta2 paras-gupta2 temporarily deployed to dockerhub/hashicorpdev March 17, 2026 07:44 — with GitHub Actions Inactive
@paras-gupta2 paras-gupta2 merged commit 92fb314 into release/0.9.x Mar 17, 2026
27 checks passed
@paras-gupta2 paras-gupta2 deleted the vuln-fix branch March 17, 2026 08:49
@mickael-hc
Copy link

For posterity, validated that all the CVEs listed are included in https://security.alpinelinux.org/branch/3.23-main

RUN CGO_ENABLED=0 go install github.com/hashicorp/go-discover/cmd/discover@f3e097417ebe7089c1999fd32983e0d0b1a3e220

FROM docker.mirror.hashicorp.services/alpine:3.23 AS release-default
RUN apk upgrade --no-cache

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why this was removed, it may be useful in the future

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.

4 participants