Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(stream): add netrc password to mask targets #603

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions executor/linux/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,12 @@ func (c *client) ExecBuild(ctx context.Context) error {
continue
}

// add netrc to secrets for masking in logs
sec := &pipeline.StepSecret{
Target: "VELA_NETRC_PASSWORD",
}
_step.Secrets = append(_step.Secrets, sec)

// load any lazy secrets into the container environment
c.err = loadLazySecrets(c, _step)
if c.err != nil {
Expand Down
6 changes: 6 additions & 0 deletions executor/linux/stage.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,12 @@ func (c *client) ExecStage(ctx context.Context, s *pipeline.Stage, m *sync.Map)
continue
}

// add netrc to secrets for masking in logs
sec := &pipeline.StepSecret{
Target: "VELA_NETRC_PASSWORD",
}
_step.Secrets = append(_step.Secrets, sec)

// load any lazy secrets and inject them into container environment
err = loadLazySecrets(c, _step)
if err != nil {
Expand Down
Loading