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

Document remote connections via d-spy #253

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

omarhogni
Copy link
Contributor

@omarhogni omarhogni commented Nov 8, 2023

This could be open for a long time. Requires a merge request to actually go through and then a release of glib along with a release of d-spy.

https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3705

Copy link

sonarqubecloud bot commented Nov 8, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

links remote dbus apis.

See [https://man.archlinux.org/man/core/systemd/systemd-stdio-bridge.1.en](https://man.archlinux.org/man/core/systemd/systemd-stdio-bridge.1.en)
This mail also describes the solution well [https://lists.freedesktop.org/archives/dbus/2018-April/017447.html](https://lists.freedesktop.org/archives/dbus/2018-April/017447.html)
Copy link
Contributor

Choose a reason for hiding this comment

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

Add steps to build, while we wait for the PR

@jbbjarnason
Copy link
Contributor

How to expose unix socket as localhost tcp port:

$ ssh -L 5555:/var/run/dbus/system_bus_socket -N graderroot

Second terminal

$ DBUS_SYSTEM_BUS_ADDRESS="tcp:host=127.0.0.1,port=5555" busctl --system monitor

@jbbjarnason
Copy link
Contributor

How to expose unix socket as localhost tcp port:

$ ssh -L 5555:/var/run/dbus/system_bus_socket -N graderroot

Second terminal

$ DBUS_SYSTEM_BUS_ADDRESS="tcp:host=127.0.0.1,port=5555" busctl --system monitor

Some complications, the remote which exposes the local tcp port to the unix fd does not know the user id & group id. So this would need to be queried beforehand to make the EXTERNAL authentication via the dbus socket

@jbbjarnason
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants