mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-28 21:01:08 +00:00
Updated Secrets image filter docs (#4028)
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
This commit is contained in:
parent
8ae8b8647e
commit
cf7a548c51
4 changed files with 9 additions and 7 deletions
|
@ -70,9 +70,11 @@ Secrets are not exposed to pull requests by default. You can override this behav
|
|||
Please be careful when exposing secrets to pull requests. If your repository is open source and accepts pull requests your secrets are not safe. A bad actor can submit a malicious pull request that exposes your secrets.
|
||||
:::
|
||||
|
||||
## Image filter
|
||||
## Plugins filter
|
||||
|
||||
To prevent abusing your secrets from malicious usage, you can limit a secret to a list of images. If enabled they are not available to any other plugin (steps without user-defined commands). If you or an attacker defines explicit commands, the secrets will not be available to the container to prevent leaking them.
|
||||
To prevent abusing your secrets from malicious usage, you can limit a secret to a list of plugins. If enabled they are not available to any other plugin (steps without user-defined commands). If you or an attacker defines explicit commands, the secrets will not be available to the container to prevent leaking them.
|
||||
|
||||
![plugins filter](./secrets-plugins-filter.png)
|
||||
|
||||
## Adding Secrets
|
||||
|
||||
|
|
BIN
docs/docs/20-usage/secrets-plugins-filter.png
Normal file
BIN
docs/docs/20-usage/secrets-plugins-filter.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 29 KiB |
|
@ -422,9 +422,9 @@
|
|||
"deleted": "Secret deleted",
|
||||
"created": "Secret created",
|
||||
"saved": "Secret saved",
|
||||
"images": {
|
||||
"images": "Available for the following images",
|
||||
"desc": "List of images where this secret is available, leave empty to allow for all images."
|
||||
"plugins": {
|
||||
"images": "Available only for the following plugins",
|
||||
"desc": "List of plugins images where this secret is available, leave empty to allow for all plugins and general steps."
|
||||
},
|
||||
"events": {
|
||||
"events": "Available at the following events",
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
/>
|
||||
</InputField>
|
||||
|
||||
<InputField v-slot="{ id }" :label="$t('secrets.images.images')">
|
||||
<span class="ml-1 mb-2 text-wp-text-alt-100">{{ $t('secrets.images.desc') }}</span>
|
||||
<InputField v-slot="{ id }" :label="$t('secrets.plugins.images')">
|
||||
<span class="ml-1 mb-2 text-wp-text-alt-100">{{ $t('secrets.plugins.desc') }}</span>
|
||||
|
||||
<div class="flex flex-col gap-2">
|
||||
<div v-for="image in innerValue.images" :key="image" class="flex gap-2">
|
||||
|
|
Loading…
Reference in a new issue