Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Command hook is downloading a binary from this repository every run... why? #140

Open
jmctune opened this issue Oct 11, 2023 · 0 comments
Open

Comments

@jmctune
Copy link

jmctune commented Oct 11, 2023

Hi there,

First off, thanks for this plugin. We use it and have been happy with its purpose for some time now.

I wanted to bring up a concerning section of code (to us) in hopes this can be addressed:

https://github.com/monebag/monorepo-diff-buildkite-plugin/blob/3f65d099261bf9680da137cc4cabc363bcabcb8d/hooks/command#L74-L103

In our organization, we cache all of our plugins into our build image so they can be used locally (without having to git clone a repository for each plugin). This saves on bandwidth and helps us ensure we know what we're running in our pipelines. I just submitted a PR (#139) and noticed that every invocation of this plugin is making a call to this repository to download a go binary, which puts a hole in our caching strategy, but also reads like a big security issue. I'm not sure I need to detail why this isn't a great idea, but are there plans to make this an offline plugin versus needing to download a binary to execute a command hook?

Thanks and looking forward to hearing back.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant