buildkite / feedback

Got feedback? Please let us know!
https://buildkite.com
25 stars 24 forks source link

Support an easy way for implementing security whitelist checks #484

Open zsims opened 6 years ago

zsims commented 6 years ago

Per https://buildkite.com/docs/agent/v3/securing#whitelisting some examples are given that check the repository, command, and plugins, against a list of "allowed items."

This is cumbersome when considering plugins and repositories, and must be repeated for all agents. It would be nice if the buildkite-agent (or similar) supported checking these whitelists, e.g.

environment hook


buildkite-agent whitelist check \
  --allowed-plugins-file "allowed-plugins.txt" \
  --allowed-repositories-file "allowed-repositories.txt" || exit 1

This means there's no need to copy/use scripts like https://github.com/buildkite/buildkite-plugin-whitelister but the "whitelists" themselves can still be shared (e.g. via S3)