Skip to content

Why we cannot use environment with settings? #3959

Closed Answered by qwerty287
janydoe asked this question in Ask a Question
Discussion options

You must be logged in to vote

Sorry for letting you waiting so long for an answer, but I'll try to explain it:

Plugins can have access to special, possibly dangerous features without additional validations (some of them like docker-buildx are set as privilieged: true by default). However, you can use environment variables to control the behaviour of the plugin and this could allow executing what you want, not what the plugin is built for. In the worst case, this can allow taking over the agent. Plugins should only be used with the settings because then the plugin authors can control what's configurable and therefore prevent dangerous options.

What you can do now:

  1. Manually mark your repo as trusted and set privileged:…

Replies: 4 comments 10 replies

Comment options

You must be logged in to vote
3 replies
@zc-devs
Comment options

@lafriks
Comment options

@qwerty287
Comment options

Answer selected by pat-s
Comment options

You must be logged in to vote
6 replies
@qwerty287
Comment options

@lafriks
Comment options

@zc-devs
Comment options

@lafriks
Comment options

@zc-devs
Comment options

Comment options

You must be logged in to vote
1 reply
@qwerty287
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants