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

[v8] Escape access request and access resolution reasons in tctl (#9381) #9455

Merged
merged 1 commit into from
Dec 21, 2021

Conversation

espadolini
Copy link
Contributor

@espadolini espadolini commented Dec 16, 2021

Clean backport of #9381, no changes.

As request and resolution reasons can contain newlines, control characters and ANSI escape codes, we pass them through fmt.Printf("%q") like it's done in tsh.

This fixes TEL-Q321-5.

@espadolini espadolini changed the title [v8] Backport #9381 [v8] Escape access request and access resolution reasons in tctl (#9381) Dec 16, 2021
@espadolini espadolini force-pushed the espadolini/v8-tctl-escape-request-reason branch from 6775033 to bcf10d2 Compare December 20, 2021 16:29
@espadolini espadolini enabled auto-merge (squash) December 20, 2021 16:32
@espadolini espadolini force-pushed the espadolini/v8-tctl-escape-request-reason branch from bcf10d2 to 04fb457 Compare December 20, 2021 21:55
* Pass request and resolve reasons in tctl through %q like it's done in tsh

* Update tool/tctl/common/access_request_command.go

Co-authored-by: Andrew Burke <[email protected]>

Co-authored-by: Andrew Burke <[email protected]>
@espadolini espadolini force-pushed the espadolini/v8-tctl-escape-request-reason branch from 04fb457 to 1c6a650 Compare December 21, 2021 08:23
@espadolini espadolini merged commit 7829ce7 into branch/v8 Dec 21, 2021
@espadolini espadolini deleted the espadolini/v8-tctl-escape-request-reason branch December 21, 2021 09:23
@webvictim webvictim mentioned this pull request Mar 4, 2022
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.

3 participants