Skip to content

CVE Fixes#104

Merged
sriramr98 merged 2 commits intomainfrom
sriramr98/cve_fixes
Apr 21, 2025
Merged

CVE Fixes#104
sriramr98 merged 2 commits intomainfrom
sriramr98/cve_fixes

Conversation

@sriramr98
Copy link
Copy Markdown
Contributor

@sriramr98 sriramr98 commented Mar 26, 2025

Changes proposed in this PR:

  • Updated go version to 1.23.7 to 1.20.3
  • Updated multiple dependencies with vulnerabilities to a later version without vulnerabilities
  • Fixed CI issues
    • Deprecated Github Actions have been updated to the latest
    • Fixed flaky tests

CVEs Fixed
GHSA-99wr-c2px-grmh
GHSA-5c4w-8hhh-3c3h
GHSA-chgm-7r52-whjj
GHSA-45x7-px36-x8w8
GHSA-v778-237x-gjrc

How I've tested this PR:

  • Ran tests locally

How I expect reviewers to test this PR:

Checklist:

  • Tests added
  • CHANGELOG entry added

@sriramr98 sriramr98 requested a review from a team as a code owner March 26, 2025 07:30
@hashicorp-cla-app
Copy link
Copy Markdown

hashicorp-cla-app Bot commented Mar 26, 2025

CLA assistant check
All committers have signed the CLA.

@sriramr98 sriramr98 requested a review from a team as a code owner March 26, 2025 08:57
@sriramr98 sriramr98 force-pushed the sriramr98/cve_fixes branch from f8bbafe to b8896aa Compare March 26, 2025 09:04
@sriramr98 sriramr98 temporarily deployed to dockerhub/hashicorpdev March 26, 2025 15:43 — with GitHub Actions Inactive
@sriramr98 sriramr98 temporarily deployed to dockerhub/hashicorpdev March 26, 2025 15:48 — with GitHub Actions Inactive
@sriramr98 sriramr98 temporarily deployed to dockerhub/hashicorpdev March 26, 2025 15:57 — with GitHub Actions Inactive
srahul3
srahul3 previously approved these changes Mar 27, 2025
Copy link
Copy Markdown

@srahul3 srahul3 left a comment

Choose a reason for hiding this comment

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

✅ LGTM

Comment thread consul-lambda/consul-lambda-extension/extension.go Outdated
sreeram77
sreeram77 previously approved these changes Mar 27, 2025
Copy link
Copy Markdown

@sreeram77 sreeram77 left a comment

Choose a reason for hiding this comment

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

LGTM!

@sriramr98 sriramr98 temporarily deployed to dockerhub/hashicorpdev March 28, 2025 03:20 — with GitHub Actions Inactive
@sriramr98 sriramr98 temporarily deployed to dockerhub/hashicorpdev March 28, 2025 03:23 — with GitHub Actions Inactive
@sriramr98 sriramr98 temporarily deployed to dockerhub/hashicorpdev March 28, 2025 03:30 — with GitHub Actions Inactive
@sriramr98 sriramr98 temporarily deployed to dockerhub/hashicorpdev March 28, 2025 06:00 — with GitHub Actions Inactive
srahul3
srahul3 previously approved these changes Mar 28, 2025
Copy link
Copy Markdown

@srahul3 srahul3 left a comment

Choose a reason for hiding this comment

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

✅ LGTM

Copy link
Copy Markdown

@dduzgun-security dduzgun-security left a comment

Choose a reason for hiding this comment

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

@sriramr98 Thanks a lot for looking into it.
Few comments but the rest looks good. I'll look at the CI too so we can fix it and merge

Comment thread .github/workflows/bin-ci.yml Outdated
-race "${PACKAGE_NAMES[@]}" \
-- "$FLAG"
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
- uses: actions/upload-artifact@v4
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

We should pin the GitHub Action for better security.

Suggested change
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 #v4.6.2

Comment thread .github/workflows/build.yml Outdated
product: ${{ env.PRD_NAME }}
repositoryOwner: "hashicorp"
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
- uses: actions/upload-artifact@v4
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

We should pin the GitHub Action for better security.

Suggested change
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 #v4.6.2

Comment thread .github/workflows/build.yml Outdated

- name: Upload consul-lambda-registrator
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
uses: actions/upload-artifact@v4
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

We should pin the GitHub Action for better security.

Suggested change
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 #v4.6.2

Comment thread .github/workflows/build.yml Outdated

- name: Upload consul-lambda-extension
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
uses: actions/upload-artifact@v4
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

We should pin the GitHub Action for better security.

Suggested change
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 #v4.6.2

Comment thread .github/workflows/build.yml Outdated
steps:
- name: Download image artifact
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
uses: actions/download-artifact@v4
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

We should pin the GitHub Action for better security.

Suggested change
uses: actions/download-artifact@v4
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e #v4.2.1

Comment thread .github/workflows/terraform-ci.yml Outdated
--format standard-verbose -- \
./... -p 1 -timeout 90m -v -failfast
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
- uses: actions/upload-artifact@v4
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

We should pin the GitHub Action for better security.

Suggested change
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 #v4.6.2

Comment thread .github/workflows/build.yml Outdated

- name: Docker Build
uses: hashicorp/actions-docker-build@v1
uses: hashicorp/actions-docker-build@v2
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

We should pin the GitHub Action for better security.

Suggested change
uses: hashicorp/actions-docker-build@v2
uses: hashicorp/actions-docker-build@11d43ef520c65f58683d048ce9b47d6617893c9a #v2

Comment thread .github/workflows/terraform-ci.yml Outdated
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- name: Setup Terraform
uses: hashicorp/setup-terraform@633666f66e0061ca3b725c73b2ec20cd13a8fdd1 # v2.0.3
uses: hashicorp/setup-terraform@v3
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

We should pin the GitHub Action for better security.

Suggested change
uses: hashicorp/setup-terraform@v3
uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd #v3.1.2

Comment thread .github/workflows/terraform-ci.yml Outdated
aws configure set region us-west-2
aws configure set source_profile lambda_user
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

We should pin the GitHub Action for better security.

Suggested change
uses: hashicorp/setup-terraform@v3
uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd #v3.1.2

@sriramr98 sriramr98 temporarily deployed to dockerhub/hashicorpdev March 29, 2025 12:53 — with GitHub Actions Inactive
@sriramr98 sriramr98 temporarily deployed to dockerhub/hashicorpdev March 29, 2025 12:56 — with GitHub Actions Inactive
@sriramr98 sriramr98 temporarily deployed to dockerhub/hashicorpdev March 29, 2025 13:00 — with GitHub Actions Inactive
@sriramr98 sriramr98 force-pushed the sriramr98/cve_fixes branch from bccf70f to 76227cc Compare March 29, 2025 13:01
@sriramr98 sriramr98 temporarily deployed to dockerhub/hashicorpdev March 29, 2025 13:03 — with GitHub Actions Inactive
@sriramr98 sriramr98 force-pushed the sriramr98/cve_fixes branch from 8695981 to 32878aa Compare March 29, 2025 13:08
Vikramarjuna
Vikramarjuna previously approved these changes Mar 29, 2025
@sriramr98 sriramr98 temporarily deployed to dockerhub/hashicorpdev April 7, 2025 08:41 — with GitHub Actions Inactive
@sriramr98 sriramr98 temporarily deployed to dockerhub/hashicorpdev April 14, 2025 06:40 — with GitHub Actions Inactive
@sriramr98 sriramr98 temporarily deployed to dockerhub/hashicorpdev April 14, 2025 07:51 — with GitHub Actions Inactive
@sriramr98 sriramr98 temporarily deployed to dockerhub/hashicorpdev April 14, 2025 10:42 — with GitHub Actions Inactive
@sriramr98 sriramr98 temporarily deployed to dockerhub/hashicorpdev April 15, 2025 12:38 — with GitHub Actions Inactive
@sriramr98 sriramr98 temporarily deployed to dockerhub/hashicorpdev April 21, 2025 07:42 — with GitHub Actions Inactive
@sriramr98 sriramr98 force-pushed the sriramr98/cve_fixes branch from 94ce0f8 to b447903 Compare April 21, 2025 09:46
@sriramr98 sriramr98 temporarily deployed to dockerhub/hashicorpdev April 21, 2025 09:48 — with GitHub Actions Inactive
@sriramr98 sriramr98 force-pushed the sriramr98/cve_fixes branch from b447903 to e27b424 Compare April 21, 2025 10:07
@sriramr98 sriramr98 temporarily deployed to dockerhub/hashicorpdev April 21, 2025 10:10 — with GitHub Actions Inactive
@sriramr98 sriramr98 force-pushed the sriramr98/cve_fixes branch from e27b424 to de13545 Compare April 21, 2025 10:13
@sriramr98 sriramr98 temporarily deployed to dockerhub/hashicorpdev April 21, 2025 10:16 — with GitHub Actions Inactive
@sriramr98 sriramr98 temporarily deployed to dockerhub/hashicorpdev April 21, 2025 10:42 — with GitHub Actions Inactive
@sriramr98 sriramr98 merged commit 216023f into main Apr 21, 2025
21 checks passed
@sriramr98 sriramr98 deleted the sriramr98/cve_fixes branch April 21, 2025 14:53
Surabhi-1605 added a commit that referenced this pull request Feb 6, 2026
The main branch (via PR #104) already has the CVE fixes with:
- consul/api v1.31.2
- consul/sdk v0.16.2
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.

5 participants