fix(deps): update module github.com/go-vela/types to v0.23.2 [security] - autoclosed #55
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v0.22.0
->v0.23.2
GitHub Vulnerability Alerts
GHSA-7v38-w32m-wx4m
Impact
Vela pipelines can use variable substitution combined with insensitive fields like
parameters
,image
andentrypoint
to inject secrets into a plugin/image and — by using common substitution string manipulation — can bypass log masking and expose secrets without the use of the commands block. This unexpected behavior primarily impacts secrets restricted by the "no commands" option. This can lead to unintended use of the secret value, and increased risk of exposing the secret during image execution bypassing log masking.Given by the following substitution examples:
using
parameters
using
image
tagusing
entrypoint
as a shim forcommands
To exploit this the pipeline author must be supplying the secrets to a plugin that is designed in such a way that will print those parameters in logs. Plugin parameters are not designed for sensitive values and are often intentionally printed throughout execution for informational/debugging purposes. Parameters should therefore be treated as insensitive.
While Vela provides secrets masking, secrets exposure is not entirely solved by the masking process. A docker image (plugin) can easily expose secrets if they are not handled properly, or altered in some way. There is a responsibility on the end-user to understand how values injected into a plugin are used. This is a risk that exists for many CICD systems (like GitHub Actions) that handle sensitive runtime variables. Rather, the greater risk is that users who restrict a secret to the "no commands" option and use image restriction can still have their secret value exposed via substitution tinkering, which turns the image and command restrictions into a false sense of security.
Patches
N/A
Workarounds
parameters
that are not intended to be used for sensitive values.pull_request
events enabled, as this allows users to change pipeline configurations and pull in secrets to steps not typically part of the CI process.References
For more information
If you have any questions or comments about this advisory:
Affected products:
go-vela/worker
Release Notes
go-vela/types (github.com/go-vela/types)
v0.23.2
Compare Source
What's Changed
Full Changelog: go-vela/types@v0.23.1...v0.23.2
v0.23.1
Compare Source
What's Changed
Full Changelog: go-vela/types@v0.23.0...v0.23.1
v0.23.0
Compare Source
What's Changed
pull_request
events by @ecrupper in https://github.com/go-vela/types/pull/328allow_<event>
fields to anAllowEvents
struct + DB use integer masking by @ecrupper in https://github.com/go-vela/types/pull/314e8893c5
by @renovate in https://github.com/go-vela/types/pull/353Full Changelog: go-vela/types@v0.22.0...v0.23.0
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.