Skip to content

[v13] Replace UnixShellQuote with shsprintf.EscapeDefaultContext from github.com/google/safetext#40058

Closed
jentfoo wants to merge 2 commits intobranch/v13from
jent/UnixShellQuote-replacement-v13
Closed

[v13] Replace UnixShellQuote with shsprintf.EscapeDefaultContext from github.com/google/safetext#40058
jentfoo wants to merge 2 commits intobranch/v13from
jent/UnixShellQuote-replacement-v13

Conversation

@jentfoo
Copy link
Copy Markdown
Contributor

@jentfoo jentfoo commented Mar 29, 2024

v13 backport of #40046

@jentfoo jentfoo self-assigned this Mar 29, 2024
@github-actions
Copy link
Copy Markdown
Contributor

The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with changelog: followed by the changelog entries for the PR.

@jentfoo jentfoo added the no-changelog Indicates that a PR does not require a changelog entry label Mar 29, 2024
…hub.com/google/safetext (#40046)

This change is a change in how we are handling the untrusted input.  Instead of adopting a strategy of quoting (which was incomplete), this instead escapes any special characters.

Although github.com/google/safetext is new, and without any current tags for us to reference, I believe it would be better to reference their implementation than to update the UnixShellQuote to handle the newly identified cases.
@jentfoo jentfoo force-pushed the jent/UnixShellQuote-replacement-v13 branch from ad57c3f to 4456c22 Compare March 29, 2024 22:37
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from zmb3 March 29, 2024 23:22
@jentfoo
Copy link
Copy Markdown
Contributor Author

jentfoo commented Apr 1, 2024

It seems this dependency requires a go update: https://github.com/gravitational/teleport/actions/runs/8486250744/job/23252369577?pr=40058

I had manually used an older version of go to get the compile to work as previously committed, but this change seems necessary when using go 1.21

@jentfoo
Copy link
Copy Markdown
Contributor Author

jentfoo commented Apr 1, 2024

I am just closing this update as the go update seems to be a rock and hard place in regards to v13

@jentfoo jentfoo closed this Apr 1, 2024
@jentfoo jentfoo deleted the jent/UnixShellQuote-replacement-v13 branch April 5, 2024 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport no-changelog Indicates that a PR does not require a changelog entry size/sm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants