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

[v9] Trace ssh sessions #15615

Merged
merged 2 commits into from
Aug 24, 2022
Merged

[v9] Trace ssh sessions #15615

merged 2 commits into from
Aug 24, 2022

Conversation

rosstimothy
Copy link
Contributor

Backports #14966 to branch/v9

Adds a wrapper around `ssh.Session` which injects tracing context
in a similar manner to the `ssh.Client` wrapper. All usages of
`ssh.Session` have now been replaced and have the appropriate
`context.Context` passed along

Part of #12241
defer span.End()

s.wrapper.addContext(ctx, request)
return s.Session.Start(cmd)

Check failure

Code scanning / CodeQL

Command built from user-controlled sources

This command depends on [a user-provided value](1).
defer span.End()

s.wrapper.addContext(ctx, request)
return s.Session.Run(cmd)

Check failure

Code scanning / CodeQL

Command built from user-controlled sources

This command depends on [a user-provided value](1).
@rosstimothy rosstimothy marked this pull request as ready for review August 17, 2022 18:41
@github-actions github-actions bot added backport tsh tsh - Teleport's command line tool for logging into nodes running Teleport. labels Aug 17, 2022
@rosstimothy
Copy link
Contributor Author

friendly ping @fspmarshall

@rosstimothy rosstimothy enabled auto-merge (squash) August 24, 2022 12:04
@rosstimothy rosstimothy merged commit aebeb28 into branch/v9 Aug 24, 2022
@zmb3 zmb3 deleted the tross/backport-14966-branch/v9 branch September 9, 2022 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport tsh tsh - Teleport's command line tool for logging into nodes running Teleport.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants