Skip to content

Ensure strings passed to containerd container properties only contain UTF8 runes - #9430

Merged
taylorsilva merged 1 commit into
masterfrom
fix-9205
Jan 21, 2026
Merged

taylorsilva merged 1 commit into
masterfrom
fix-9205

Conversation

@taylorsilva

@taylorsilva taylorsilva commented Jan 21, 2026 •

Copy link
Copy Markdown
Member

Changes proposed by this PR

closes #9205

containerd throws an error if we try and set a container property that contains non-UTF8 runes. We abuse container properties and use them to store stuff like metadata from resource get steps, which is effectively user-submitted data that we do not control. To avoid this error from containerd, we clean up the string before passing it to containerd.

This was originally reported as an issue in the github-release resource: concourse/github-release-resource#128

containerd throws an error if we try and set a container property that
contains non-UTF8 runes. We abuse container properties and use them to
store stuff like metadata from resource get steps, which is effectively
use-submitted data that we do not control. To avoid this error from
containerd, we clean up the string before passing it in.

Signed-off-by: Taylor Silva <[email protected]>
@taylorsilva
taylorsilva requested a review from a team January 21, 2026 03:01
@taylorsilva
taylorsilva merged commit f7acd22 into master Jan 21, 2026
3 checks passed
@taylorsilva
taylorsilva deleted the fix-9205 branch January 21, 2026 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crash if get script of a resource returns unrenderable unicode characters.

1 participant