Skip to main content

Auth + subdomain-forwarding plugin for mngr

Project description

mngr_forward

Auth + subdomain-forwarding plugin for mngr.

mngr forward runs a local proxy that serves <agent-id>.localhost:<port>/* and byte-forwards each request to a service URL discovered for that agent (--service NAME, the default workflow) or a fixed remote port (--forward-port REMOTE_PORT, manual mode). Remote agents are reached via a per-host SSH tunnel (Unix-domain socket on the local side, paramiko direct-tcpip channel on the SSH side).

The plugin is opt-in:

mngr plugin enable forward
mngr forward --service system_interface

Quick start (browser user)

mngr forward --service system_interface --open-browser

This:

  1. Spawns mngr observe --discovery-only and per-agent mngr event --follow subprocesses. Their lines pass through to stdout as a merged JSONL stream wrapped in a {stream, agent_id?, payload} envelope so consumers can drive their own state from a single stream.
  2. Listens on 127.0.0.1:8421 and prints a one-time login URL to stderr (or emits a login_url JSONL event on stdout in --format jsonl).
  3. After the browser visits the login URL, future navigations to agent-<hex>.localhost:8421/ are byte-forwarded to that agent's resolved system_interface URL through an SSH tunnel.

Reverse tunnels

--reverse <remote-port>:<local-port> (repeatable) auto-sets up reverse SSH tunnels for every known agent on a remote host. The <remote-port> may be 0 to ask sshd for a dynamic assignment; the actual bound port is reported in a forward.reverse_tunnel_established envelope event.

Manual mode

--no-observe --forward-port REMOTE_PORT runs mngr list --format json once and forwards a fixed snapshot. --no-observe is invalid with --service NAME.

Sub-process integration

Consumers (notably minds run) can spawn mngr forward --format jsonl --preauth-cookie <opaque-token>, parse the envelope JSONL stream off stdout, and pre-set the mngr_forward_session cookie in their browser session so the OTP flow is bypassed.

SIGHUP bounces only the mngr observe child subprocess; SSH tunnels, per-agent event subprocesses, browser sessions, and the FastAPI app stay alive. Used by minds run to make a freshly-written [providers.imbue_cloud_<slug>] block in settings.toml take effect.

On-disk state

$MNGR_HOST_DIR/plugin/forward/signing_key (cookie HMAC key, generated once on first run, persisted across restarts so previously-issued cookies still verify).

OTPs are kept in-memory only and do not survive a restart.

Status

Experimental. See specs/mngr-forward-plugin/spec.md.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

imbue_mngr_forward-0.1.0.tar.gz (85.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

imbue_mngr_forward-0.1.0-py3-none-any.whl (58.9 kB view details)

Uploaded Python 3

File details

Details for the file imbue_mngr_forward-0.1.0.tar.gz.

File metadata

  • Download URL: imbue_mngr_forward-0.1.0.tar.gz
  • Upload date:
  • Size: 85.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for imbue_mngr_forward-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4d8795a7105f00fdad3ab6fa7a8c246a700cf42d296212488b4f42931bceb6b4
MD5 f54e7eaf496f9d9e0aec4057c6c61f86
BLAKE2b-256 035151fb4dcd04022c24d7e484ea6f1d5b5923a106a29ec2e669a7680b5ab507

See more details on using hashes here.

Provenance

The following attestation bundles were made for imbue_mngr_forward-0.1.0.tar.gz:

Publisher: publish.yml on imbue-ai/mngr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file imbue_mngr_forward-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for imbue_mngr_forward-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e0a6b54c28eb89cac208eabcde6dbd245af7107ec1ee76c9c752539ae05991d1
MD5 bfd6ac6575a7d61ea55f52b6e1c2ab76
BLAKE2b-256 e10841d929d267d73966232a795e3ac88fe5dff628b36cef5fff1d8ec597ba30

See more details on using hashes here.

Provenance

The following attestation bundles were made for imbue_mngr_forward-0.1.0-py3-none-any.whl:

Publisher: publish.yml on imbue-ai/mngr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page