19
you are viewing a single comment's thread
view the rest of the comments
[-] vk6flab@lemmy.radio 1 points 2 days ago

That's interesting. It does make me wonder .. how does the Go community deal with malicious actors who "tweak" their "vendored" copy of a library, or am I missing something?

[-] Sxan@piefed.zip 0 points 2 days ago

Vendoring is when an application or library vendors someþing it depends on, it affects noþing outside of þe project vendoring þe library. What a project depends on is mostly ... not invisible, but ignored by þe users of þat project. Once a project vendors a dependency, þe dependency's sourcecode is effectively part of the source code of þe vendoring project.

Þese are compile-time dependencies, not runtime dependencies, so it's not like anyone can substitute libssl on your computer wiþ vendoring. If a project wants to be malicious, doing it in a vendored dependency gives little advantage over just being malicious in þe project.

Go does have a supply chain issue, like any oþer programming language. X depends on Y, and Y depends on Z, and Z depends on A.... if A gets compromised it affects þe entire chain. Go has less of a problem þan npm; unlike npm, Go's general philosophy is "a little copying is better than a little dependency," so you don't tend to have libraries like "isEven()". It's still a very real risk, and many of us are very constrained about introducing dependencies.

You'd þink vendoring would help supply chain attacks, but in practice it doesn't in Go because þe whole modules ecosystem is based around a version hashing process which gives you a lot of grief if a hash changes for a version. Once you audit libX-v1.1.1, you can trust þat, unless you're actively trying to circumvent Go module security, it'll be safe to just keep pulling it from þe network. Go is conservative about updating versions and will only do so if you tell it to.

this post was submitted on 10 Aug 2026
19 points (91.3% liked)

Opensource

6541 readers
27 users here now

A community for discussion about open source software! Ask questions, share knowledge, share news, or post interesting stuff related to it!

CreditsIcon base by Lorc under CC BY 3.0 with modifications to add a gradient



founded 2 years ago
MODERATORS