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

varlink: add ability to talk to remote ssh Varlink service #32560

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

poettering
Copy link
Member

@poettering poettering commented Apr 29, 2024

So far our varlink client could connect to remote AF_UNIX sockets via SSH. This adds a 2nd SSH-based transport: invoke a binary remotely via ssh, and talk to it via stdin/stdout.

This is v257 material, don't bother with this for v256

When invoking another process via a pair of pipes it makes sense to
allow reading from one fd, and writing from another. Teach our varlink
code to do so optionally.

(sd-bus supports something similar, fill the gap).

This is preparation for a later commit that uses this to talk to remote
SSH invocations via pipes.
…ents

This makes use of the functionality added in the previous commit to
implement the client-side functionality for talking to servers via a
pair of fds.
… servers

This adds the server-side for varlink connections over two distinct fds.
This adds varlink_server_add_connection_stdio() as wrapper around
varlink_server_add_connection_pair(), that steals stdin/stdout fds and
turns them into a varlink connection. To be safe it replaces
stdin/stdout with /dev/null fds.
@poettering poettering added this to the v257 milestone Apr 29, 2024
@github-actions github-actions bot added documentation util-lib please-review PR is ready for (re-)review by a maintainer labels Apr 29, 2024
Copy link

Important

An -rc1 tag has been created and a release is being prepared, so please note that PRs introducing new features and APIs will be held back until the new version has been released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation please-review PR is ready for (re-)review by a maintainer util-lib varlink
Development

Successfully merging this pull request may close these issues.

None yet

1 participant