Skip to content

fix: redact runtime repository credentials#2220

Open
immanuwell wants to merge 1 commit into
chainguard-dev:mainfrom
immanuwell:fix-runtime-repo-redaction
Open

fix: redact runtime repository credentials#2220
immanuwell wants to merge 1 commit into
chainguard-dev:mainfrom
immanuwell:fix-runtime-repo-redaction

Conversation

@immanuwell
Copy link
Copy Markdown

Tiny fix for YAML output: runtime_repositories was missing the same URL redaction path used by repositories and build_repositories.

Repro was pretty direct:

go test ./pkg/build/types -run TestYamlMarshallingRepositories -count=1

Before this, a runtime-only repo like https://user:pass@... marshalled with pass still visible. Kinda yikes. Now it comes out as https://user:xxxxx@..., same as the other repo fields.

Checked:

go test ./pkg/build/types -count=1

No related issue/PR found via gh search.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant