Skip to content

fdpass: send stderr to tbot for error diagnostics#43547

Merged
espadolini merged 1 commit intomasterfrom
espadolini/fdpass-stderr
Jun 27, 2024
Merged

fdpass: send stderr to tbot for error diagnostics#43547
espadolini merged 1 commit intomasterfrom
espadolini/fdpass-stderr

Conversation

@espadolini
Copy link
Copy Markdown
Contributor

This PR updates fdpass and tbot to pass the fdpass stderr file descriptor to tbot so that it can be used by tbot to output error messages. The file descriptor is not required (so fdpass doesn't necessarily have to be updated, and, in fact, this PR doesn't update the behavior of tbot ssh-multiplexer-proxy-command) and a file descriptor sent over the socket will just get discarded (and thus closed) if tbot wasn't updated to receive it.

changelog: improved error diagnostics when using Machine ID's SSH multiplexer

b := make([]byte, 1)
fds := make([]*os.File, 1)

// TODO(espadolini): get rid of [uds.Conn]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this TODO need addressing ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not in this PR, but there's only drawbacks to having a wrapper around *net.UnixConn, especially if what we're doing with them is io.Copying data around.

@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from atburke June 26, 2024 23:11
@espadolini espadolini added this pull request to the merge queue Jun 27, 2024
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 27, 2024
@espadolini espadolini added this pull request to the merge queue Jun 27, 2024
Merged via the queue into master with commit a09ce3b Jun 27, 2024
@espadolini espadolini deleted the espadolini/fdpass-stderr branch June 27, 2024 10:53
@public-teleport-github-review-bot
Copy link
Copy Markdown

@espadolini See the table below for backport results.

Branch Result
branch/v15 Create PR
branch/v16 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants