Move ssh session helper function to api/sshutils#59009
Move ssh session helper function to api/sshutils#59009
api/sshutils#59009Conversation
d26de96 to
207255e
Compare
207255e to
f82ec1c
Compare
rosstimothy
left a comment
There was a problem hiding this comment.
I don't think we should be exposing the crimes from the tracessh package in a generic ssh helper package. Can we keep this internal to tracessh and extend tracessh with any additional receiver methods to achieve the desired behavior?
This isn't really tracing related at all - this is the session request callback logic added in #42123 to support the server->client
This portion is moreso covering a missing component of the Let me know if you'd still just like this isolated to the tracing package. |
f82ec1c to
b1c6aaf
Compare
|
@rosstimothy I forgot to mention, the main motivation behind this is actually this change, which further needs to work around the limitations of the |
|
I think it would be more appropriate to use the tracessh.Client directly over an ssh.Client if possible, and add a new API to the tracessh.Client to support this use case. Most of our clients today use tracessh so that we get trace coverage on all requests so we should prefer that where possible. If that's not possible I think it'd make more sense to leverage a copy of this closer to where you actually need it rather than exposing this in an SSH package in the API module. |
In a follow up PR, I plan on providing extra session parameters via
client.OpenChannel("session", sessionParams). Before making these changes with no relation to theapi/observability/tracing/sshpackage, I wanted to move these helper functions to a more ubiquitous location.