Replies: 2 comments 14 replies
-
How would use cases like this https://woodpecker-ci.org/docs/next/usage/secrets#use-secrets-in-commands work then? Also, after we made it impossible to set |
Beta Was this translation helpful? Give feedback.
-
Not everything in this thread seems to be correct, so I'd like to clean up some things - if I understand something wrong, please ask again :) In general I agree to @lafriks to drop this section. First of all, I'd like to make clear what a plugin is: A plugin is basically just a docker container that has a certain, pinned entrypoint and the However, it's actually not that important whether something is a plugin or not internally. Internally, this is only used to check whether a clone container gets credentials (and that's not what we're discussing about currently) and to check whether a plugin is escalated and will therefore get If you can set any env var now, it no longer is a plugin because you're trying to access a feature that was not exposed by the author. Secrets basically are env vars, and the only reason that they are still allowed on plugins is actually a security bug that should be fixed. So: on plugins
You can change it, yes, but if you change it in a way it is no longer a plugin (e.g. custom env), the container does not get |
Beta Was this translation helpful? Give feedback.
-
There is imho not really much sense to have two ways to do the same thing and there has already been too much magic with secrets uppercase/lowercase etc, can't be used with plugins also, so imho it should be deprecated and removed in future in favor of
from_secret
syntaxBeta Was this translation helpful? Give feedback.
All reactions