DevWeave logoDevWeave
CommunitiesDiscoverHelp ForumFeaturesWhy DevWeaveAI & Verification
Log inGet started
Back to Issue Discovery
kubernetes-sigs/container-object-storage-interface #424openGoOpen-Source Beginners

Add govulncheck linter

Opened by @BlaineEXE · Assignees: @ankitjindal9404

View on GitHub
kind/featuregood first issuehelp wanted

Solve & Merge Reward: Up to +215 XP & +60 Coins

+30 XP on PR open · +180 XP & +60 coins on merge · +5 star XP (101 stars)

101 GitHub Stars

Claim Status & GitHub Signal

Assigned on GitHub (@ankitjindal9404). Check recent comments before starting duplicate work.

AI Issue Assessment · Grounded Analyzer
2.8 / 10 · 3–4 · Beginner

Estimated from issue labels (kind/feature, good first issue, help wanted), Go context, and discussion depth. There are 6 GitHub comments to review for maintainer clarifications. Note: this is an estimate, not a guarantee.

What It's About

Add govulncheck linter. Enhancement <!-- You MUST use this template when requesting an enhancement. Provide as much info as possible so that we may assist in a timely manner. Enclose all log/console output in triple-backticks. Thanks! -- Why is this needed?: COSI uses dependabot, but

Why It Matters

Resolving #424 improves reliability and developer experience in kubernetes-sigs/container-object-storage-interface.

Expected Outcome

A focused pull request addressing #424 with relevant checks or tests verified locally.

Skill Match Breakdown

Log in to compare this issue's requirements against your profile skills. Required concepts: HTTP & REST APIs, Docker & Containers.

Progressive AI Hints

Hint #1 is always free and calibrated to your experience level. Extra hints unlock with coins without spoiling the full solution.

Log in to receive your free level-adapted Hint #1 grounded in this repository's files.

Skill-Gap Learning

Gap-Targeted
Learn Docker

Images, containers, volumes, and reproducible dev environments.

Addresses skill gap: Docker & Containers

Learn Go

Go syntax, interfaces, error handling, goroutines, and channels.

Addresses skill gap: Go

Learn HTTP Servers in Go

JSON APIs, routing, middleware, and authentication in Go.

Addresses skill gap: HTTP & REST APIs

Hands-On CodeCrafters Practice
Skill-Gap Challenge
Build your own HTTP Server
Go

Handle raw TCP connections, HTTP parsing, headers, and concurrent routes.

Practice skill gap: HTTP & REST APIs

Build your own Redis
Go

Create a TCP event loop, RESP protocol parser, and TTL key-value cache.

Practice skill gap: HTTP & REST APIs

Issue Description

Enhancement

<!-- You MUST use this template when requesting an enhancement. Provide as much info as possible so that we may assist in a timely manner. Enclose all log/console output in triple-backticks. Thanks! -->

Why is this needed?:

COSI uses dependabot, but because of it's a mono-repo, dependabot doesn't actually do a good job making PRs that work for us. I'd like to remove dependabot (and replace it with something smarter), but we should keep an eye on why dependabot is a default setup, which is ensuring vulnerabilities are addressed.

Describe the solution you'd like in detail:

Add govulncheck linting to make and CI. This will help us identify when dependencies need to be updated, and allow us to focus more on development when no updates are necessary.

Describe alternatives you've considered:

Tons of static checkers exist. Govulncheck is pretty ideal because it can deeply inspect COSI's Go code to identify whether vulnerable code is used, meaning fewer false positives.

Additional context:

<!-- Add any other context or screenshots about the feature request or enhancement here. -->

Linked Pull Requests (0)

No linked or cross-referenced pull requests detected via GitHub timeline. Check comments below for informal claims before starting.

GitHub Comments (6)

@BlaineEXEMEMBER
View comment →

@kolluria , I've assigned this to you because I think this may be a good fit based on our limited interactions so far. If you aren't able or don't have interest, please feel free to let me know, and I can unassign it.

@ankitjindal9404
View comment →

Hi @kolluria, @BlaineEXE ! I'd be happy to help with this. @kolluria, are you still planning to work on it? If you're busy, I'm glad to pick it up, or we can split the work. I have DevOps/CI experience. Thanks!

@BlaineEXEMEMBER
View comment →

@ankitjindal9404 I've reassigned this to you. Thanks for offering to pick this up.

If the runtime is relatively short, make lint should run it. We can have a separate make target if it extends the current make lint runtime by more than about 50%. It should run with hack/prow-lint.sh in either case.

I hope that the current make targets are consistent enough that it's clear how to add this in, but feel free to ask questions.

@ankitjindal9404
View comment →

Thanks @BlaineExe! I'll start on this and share a draft PR soon.

@ankitjindal9404
View comment →

Hi @BlaineExe, I've started on this and have some numbers before opening a PR.

Baseline make lint is ~0.6-0.7s warm (tools cached, Docker running, 3 runs on my machine, Apple Silicon). govulncheck across all three Go modules (root, client, proto) takes ~9.4-10.3s. That is well over the 50% threshold, so I plan a separate govulncheck-lint make target that is also run from hack/prow-lint.sh.

One thing needs your input: govulncheck reports findings today and exits non-zero (exit code 3), using the repo's Go toolchain (go1.25.8). Root: 41 vulns (stdlib plus 5 modules, including grpc, x/net, otel and x/text). client: 7 (stdlib only). proto: 21 (stdlib, x/net, grpc). Some stdlib fixes are only in go1.26.x. A blocking check in prow-lint.sh would therefore fail on main immediately.

How should i proceed? (a) land the toolchain/dependency bumps first (separate PR), then add the blocking check, or (b) add the target first in a report-only (non-blocking) mode and follow up with the bumps.

I'll wait for your call before opening the PR.

@BlaineEXEMEMBER
View comment →

I would recommend creating 1 PR with 2 commits:

  • commit 1: add govulncheck-lint
  • commit 2: minimal fix for govulncheck errors

When updating dependencies, please try to update them in all go modules (root, client, proto). We haven't done the best job of this, but it's something I hope to do better about after our MVP is done.

Peer Help Forum · kubernetes-sigs/container-object-storage-interface #424

Issue Troubleshooting Threads (0)

Ask Peers for Help

No troubleshooting threads opened for this issue yet. If you hit a test, build, or navigation blocker, post what you've tried so fellow contributors can help.

PR Verification & Rewards

Sign in and link GitHub to verify your PR against this issue and earn XP + coins.

Sign In

Contribution Workflow

Track your local progress before opening a pull request on GitHub.

Repository Context

Top Repository Paths

.dockerignore
[dir] .github
[dir] .github/ISSUE_TEMPLATE
.github/ISSUE_TEMPLATE/bug_report.md
.github/ISSUE_TEMPLATE/enhancement.md
.github/ISSUE_TEMPLATE/protocol_change.md
.github/SECURITY.md
.github/dependabot.yml
.gitignore
.golangci.yaml
[dir] CHANGELOG
CHANGELOG/CHANGELOG-0.1.md
CONTRIBUTING.md
LICENSE
Makefile
OWNERS
README.md
RELEASE.md
SECURITY.md
SECURITY_CONTACTS
[dir] client
client/.kubeapilint.yaml
[dir] client/apis
[dir] client/apis/objectstorage

CONTRIBUTING.md Excerpt

Contributing Guidelines

Welcome to Kubernetes. We are excited about the prospect of you joining our community! The Kubernetes community abides by the CNCF code of conduct. Here is an excerpt:

As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.

Getting Started

We have full documentation on how to get started contributing here:

<!--- If your repo has certain guidelines for contribution, put them here ahead of the general k8s resources -->
  • Contributor License Agreement - Kubernetes projects require that you sign a Contributor License Agreement (CLA) before we can accept your pull requests
  • Kubernetes Contributor Guide - Main contributor documentation, or you can just jump directly to the contributing page
  • Contributor Cheat Sheet - Common resources for existing developers

Mentorship

  • Mentoring Initiatives - We have a diverse set of mentorship programs available that are always looking for volunteers!

Contact Information

  • Slack
  • Mailing List

Advisory PR Assistant

Helps structure your PR description or unpack reviewer feedback. Does not perform GitHub actions.