Skip to content

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

671 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SuperManager

A unified SSH, VPN, and network device management application for Linux (GTK4), macOS (SwiftUI), and Windows (Slint), built with a shared Rust core.

SuperManager consolidates SSH key management, VPN connections (WireGuard, FortiGate IPsec/IKEv2, OpenVPN, Azure VPN, Tailscale), and network device management (FortiGate, UniFi, OPNsense, Sophos XG) into native desktop applications with an MCP server (supermgr-mcp) for AI assistants.

  • Linux — GTK4 + libadwaita GUI talking to a supermgrd D-Bus system daemon (includes Linux-only Remote Desktop, Fleet operations, and built-in Claude AI console).
  • macOS — native SwiftUI app talking to supermgrd-mac (supermgr-engine) and a privileged supermanager-helper LaunchDaemon over Unix sockets.
  • Windows — Slint GUI covering core VPN, SSH host/key management, appliance checks, and in-app updates, talking to a supermgrd-win Windows Service over a named pipe. See WINDOWS.md for current scope, install, and build instructions.

All three share supermgr-core (domain types, traits, SSH primitives, validation, and RPC clients), while supermgr-engine backs the macOS daemon (supermgrd-mac).

Platform Support Matrix

Capability Linux (supermgr + supermgrd) macOS (SuperManagerMac + helper) Windows (supermgr-win + supermgrd-win)
WireGuard Supported (kernel netlink) Supported (wireguard-go + wg) Supported (WireGuardNT)
IKEv2 / FortiGate IPsec Supported (strongSwan) Supported (strongSwan charon/swanctl) Supported (native Windows RAS)
OpenVPN (.ovpn) Supported (openvpn3) Supported (openvpn 2.x / ovpncli) Supported (openvpn.exe 2.6+)
Azure VPN (Entra ID) Supported (openvpn 2.7+) Supported (bundled openvpn3) Supported (openvpn.exe 2.6+)
FortiGate SSL VPN Not supported (use IPsec/IKEv2) Not supported (use IPsec/IKEv2) Supported (openfortivpn.exe, user-supplied)
Tailscale Supported (tailscale package) Supported (bundled runtime) Not supported
VPN Kill Switch Supported (nftables) Supported (pf per-profile anchor) Not supported
SSH Keys & Host Management Supported Supported Supported
FortiGate & UniFi Monitoring Supported Supported Supported (FortiGate/OPNsense RPC)
Compliance & Provisioning Supported Supported Not supported
MCP Server (supermgr-mcp) Supported Supported Supported
Fleet / Multi-Host Batch Ops Linux only — —
Remote Desktop (RDP / VNC) Linux only — —
Built-in Claude AI Console Linux only — (use supermgr-mcp) — (use supermgr-mcp)

Install

One command per platform, dependencies included. None of them leave you a list of things to install afterwards.

macOS

curl -fsSL https://raw.githubusercontent.com/franzjeger/SuperManager/main/scripts/install.sh | bash

Installs Homebrew if it's missing, then the VPN clients SuperManager drives (wireguard-tools, strongswan, openvpn) in one go, then the newest signed + notarized release into /Applications. Anything already present is left alone.

--yes             # don't ask before installing anything
--no-deps         # app only, you manage the VPN clients
--deps-only       # VPN clients only, leave /Applications alone
--with-openvpn3   # also build OpenVPN 3 from source (~5 min)

The macOS build bundles OpenVPN 3 for Azure VPN (Entra ID). The app asks the helper to install its signed runtime into /Library/PrivilegedHelperTools/SuperManagerVPN before connecting. The --with-openvpn3 option builds and installs that protected runtime separately to repair a release without it, including 1.8.25; a Homebrew openvpn3 alone cannot be run by the Release helper. The source build uses pinned OpenVPN 3, a credential-file adapter and static dependencies, keeping tokens out of process arguments.

Or grab SuperManager-<version>.zip (drag-and-drop) from the releases page yourself. (The .pkg asset is NOT the app — it is a small standalone VPN/DNS cleanup payload for MDM remediation.)

Updates after that are in-app: the app checks the committed appcast daily (Sparkle), or on demand via Check for Updates….

Linux

git clone https://github.com/franzjeger/SuperManager.git
cd SuperManager
./scripts/install-linux.sh

Detects your distribution (Arch, Debian/Ubuntu, Fedora/RHEL, openSUSE and their derivatives), installs build + runtime dependencies in one invocation, builds, installs the binaries and all the system integration files, and starts the daemon.

--yes           # don't ask before installing packages
--print-deps    # show the distro and package list, change nothing
--no-deps       # you manage the packages
--no-build      # install what's already in target/release
--uninstall     # remove everything it installed

Run it as yourself, not with sudo — it asks for root only where it needs it, and building as root leaves a root-owned target/ behind. There are no prebuilt Linux binaries, so it builds from source; expect a few minutes the first time. The manual steps are still documented if you'd rather do it yourself.

Updates after that are one command — or one click:

supermgr-update            # fetch, rebuild, reinstall if origin moved
supermgr-update --check    # just tell me; exit 10 = update available

The install records where the checkout lives, so supermgr-update works from anywhere. In the app, Settings → Updates does the same thing: checks your build against signed release tags on GitHub and runs supermgr-update with its output streamed into a dialog (elevating via polkit, since there is no terminal to ask for sudo in).

Windows

Download the Windows installer with dependencies. Versioned downloads are also available from the releases page. It is a single bootstrapper that chain-installs WireGuard, OpenVPN, and SuperManager itself — one UAC prompt, no separate installs. If you already manage WireGuard and OpenVPN through Intune or Group Policy, take the bare .msi instead. See WINDOWS.md.

Updates after that are in-app: Settings → About → Check for updates (also in the tray menu) compares against the newest GitHub release, downloads the installer, verifies its SHA-256 digest and Authenticode signature on the locked file handle, and hands over to it.

What works out of the box, and what needs a tool

SuperManager drives the real VPN clients rather than reimplementing them, so each VPN type needs its client present. The installers put these in place for you; the table is here for when you're assembling a machine by hand or wondering why one profile type won't connect.

Feature Needs
SSH, key management, network scan, compliance, UniFi, FortiGate API nothing
Tailscale macOS: bundled (tailscaled installed on first use); Linux: tailscale system package
WireGuard wireguard-tools (Linux/macOS) / bundled WireGuardNT (Windows)
IKEv2 / FortiGate IPsec strongswan (Linux/macOS) / native Windows RAS (Windows)
FortiGate SSL VPN Windows only — openfortivpn.exe, which you supply (no upstream Windows release). Linux and macOS have no backend for it; use the IPsec/IKEv2 profile type instead
Standard .ovpn profiles macOS & Windows: openvpn (2.6+); Linux: openvpn3 (AUR on Arch, upstream repo elsewhere)
Azure VPN (Entra ID) Linux: openvpn (2.7+); Windows: openvpn (2.6+); macOS: bundled, protected openvpn3 runtime
Reading stored credentials (Linux) polkit — the daemon fails closed without it

The app tells you again if you try to connect a profile whose tool isn't there.

On macOS the app asks for admin rights once, on first launch, to install its privileged helper (/Library/PrivilegedHelperTools). On Linux the installer asks for sudo to place system files and start the daemon.

Features

Dashboard

  • Multi-vendor device monitoring — FortiGate and UniFi in one view
  • UI.com Site Manager API — cloud-based monitoring of all UniFi sites and devices
  • FortiGate cards: model, serial, firmware (with update check), CPU/memory bars, WAN IP, sessions, VPN tunnels, last backup
  • UniFi cards: model, firmware, uptime, status, site name
  • Auto-refresh (30s / 60s / 5m), search, filter tabs (All / FortiGate / UniFi)
  • Offline devices sorted first with device count summary
  • Quick-action buttons: backup config, compare config diffs, view details
  • UniFi device actions from the controller pane — adopt a pending device, flash the locate LED, restart, or forget. Restart and forget confirm first and state the consequence (a minute offline / factory default, re-adoption usually needs physical access)
  • Click any card to navigate to host detail

SSH Management

  • Generate, import, and manage SSH key pairs (Ed25519, RSA)
  • Organize hosts by groups with device type support (Linux, FortiGate, UniFi, pfSense, OpenWrt)
  • One-click SSH terminal sessions with automatic credential handling
  • Push/revoke public keys to remote hosts via SSH or FortiGate REST API — SFTP where available, falling back to BusyBox-safe shell commands for embedded gear
  • Host-key verification with a visible fingerprint and a Forget action (details)
  • Host health monitoring with live reachability indicators
  • Batch / Fleet command execution (Linux only) — run commands across multiple hosts simultaneously
  • ~/.ssh/config sync — generate SSH config entries for all managed hosts
  • Search, filter, and pin favorite hosts
  • Bastion/jump host support with ProxyJump

VPN Management

  • WireGuard — kernel netlink API, split-tunnel, kill switch
  • FortiGate IPsec/IKEv2 — strongSwan backend, EAP-MSCHAPv2
  • OpenVPN — openvpn3 CLI wrapper with credential management
  • Azure VPN (Entra ID) — PKCE OAuth2 flow, compatible with OpenVPN 2.7+
  • Auto-VPN per host — automatically connects the right VPN before SSH
  • Import profiles from .conf, .ovpn, .toml, or Azure XML configs
  • Connection timer in sidebar showing elapsed time
  • Auto-reconnect on unexpected disconnect (for auto-connect profiles)
  • IKEv2 failure diagnosis — a failed connect names the cause (EAP rejection, no proposal chosen, unacceptable traffic selectors, no route to host, and so on) instead of printing the raw swanctl negotiation log
  • Always-on reports armed vs enrolled. A profile can be enrolled for auto-reconnect while the watchdog still lacks the connect args it needs to replay — captured on the first successful manual connect. The toggle shows that state rather than claiming protection it cannot yet deliver

Remote Desktop (Linux only)

  • RDP and VNC with one-click launch from host detail
  • Credentials auto-filled from stored SSH passwords
  • Configurable client: Auto / Remmina / xfreerdp3 / xfreerdp
  • Remmina profile generation with pre-filled settings

FortiGate Integration

  • REST API dashboard — firmware, CPU/memory, sessions, VPN tunnels
  • Firmware update checker — compares installed vs available versions
  • Config backup with timestamp tracking
  • Config diff — compare two most recent backups side-by-side
  • SSH key deployment via REST API
  • API token generation via SSH

Notification Center

  • Bell icon in header bar with event history
  • Captures: VPN connect/disconnect, errors, backups, operations
  • Timestamps, icons, wrapping text, clear button
  • Webhook notifications for offline UniFi devices (Slack/Teams/Discord)

Claude AI Console (Linux only; use supermgr-mcp on macOS/Windows)

  • Built-in chat interface with Claude (Anthropic) in the Linux GTK app
  • Two modes: Subscription (Claude Code CLI) or API key (pay-per-token)
  • Streaming responses with conversation memory
  • Scoped supermgr-mcp MCP server available on Linux, macOS, and Windows

Network Provisioning Wizard

  • 5-step guided setup for FortiGate and UniFi devices
  • Customer info, network design (WAN/LAN/VLANs), services, security policies
  • Template-driven configurations following CIS benchmarks with idempotent FortiOS deployment
  • Push config via SSH/REST API or export to file

Daemon Logs

  • Category filters: All / VPN / SSH / Backup / Errors
  • Free-text search
  • Pause button to freeze log output for reading
  • Clear button (clears daemon buffer)
  • Configurable daemon log level (ERROR through TRACE)

Security

  • Desktop UI lock with Argon2id (Linux) / PBKDF2-SHA256 (macOS) password verification and configurable inactivity auto-lock (locks the GUI windows and menu bar; daemon secret storage is protected by OS-level access controls)
  • Secret storage per platform:
    • Linux: Daemon secrets in a root-owned 0600 store (/etc/supermgrd/secrets.json); GTK GUI API keys in Secret Service / GNOME Keyring
    • macOS: VPN credentials in the macOS Keychain; supermgr-engine secrets AES-256-GCM encrypted at rest (secrets.json, 0600) with a master wrapping key held in the macOS Keychain
    • Windows: LocalSystem Credential Manager (CredWriteW / CredReadW)
  • Audit logging for all SSH, VPN, and API operations
  • SSH host-key verification on every platform — trust-on-first-use, then a fingerprint mismatch refuses the connection (see below)
  • Polkit authorization on the Linux daemon's credential-reading methods and on opening an SSH session (see below)

Who may talk to the daemon (Linux)

supermgrd runs as root on the system bus. The D-Bus policy accepts root and members of the supermgr group; all other callers are denied. The installer creates this group and adds the invoking user. Log out and back in after a new group membership so the GUI's D-Bus connection has the updated groups.

The daemon applies polkit authorization to credential access, configuration changes, remote operations and machine-wide routing/repair:

Action suffix (org.supermgr.daemon.) Operations Policy default
secrets Credential reads/exports and portable backup import/export auth_admin
manage Profile, host and key changes; connection state and settings auth_admin_keep
execute Remote commands, appliance APIs, key deployment and diagnostics auth_admin_keep
ssh-connect Stage credentials and open an SSH session auth_admin_keep
tailscale-exit-node Select or clear machine-wide exit-node routing auth_admin_keep
tailscale-repair Install, start or repair the local Tailscale stack auth_admin_keep

The installed 49-supermgr-operators.rules grants manage, execute and ssh-connect to active, local members of supermgr without repeated prompts. Group membership is therefore an administrative trust decision: these users can operate managed devices using the daemon's stored credentials. Credential exports and Tailscale routing/repair retain their separate authentication rules.

auth_admin requires administrator authentication for each request; auth_admin_keep allows polkit to cache an authorization temporarily. Inactive and remote sessions are denied by the shipped policy. Read-only status polling avoids interactive authorization; login status/cancellation is bound to the initiating UID and attempt ID.

Guarded methods fail closed when polkit is unavailable. The installer deploys both the action definitions and operator rule. Staged SSH credentials are created with mode 0600 and owned by the requesting user. Run node scripts/test-polkit-rule.mjs to check operator permissions and installer coverage; scripts/verify-polkit.sh performs the live authorization checks.

SSH host keys

Every outbound SSH connection is checked against a stored fingerprint, on Linux, macOS and Windows alike. The policy matches OpenSSH's StrictHostKeyChecking=accept-new:

  • First connection to a host:port records the server's SHA-256 host-key fingerprint and proceeds.
  • Later connections must present the same fingerprint. A mismatch aborts the connection and reports both fingerprints — it is never silently accepted.

The host detail panel shows the recorded fingerprint with a Forget host key button. Use it after a deliberate rebuild, appliance swap or key rotation; the next connection re-records whatever the host presents. From a script, the same thing over D-Bus:

busctl call org.supermgr.Daemon /org/supermgr/Daemon org.supermgr.Daemon1 \
    SshForgetHostKey sq fw.example.com 22

Fingerprints live in known_hosts.json (mode 0600) alongside the daemon's SSH data — /etc/supermgrd/ssh/ when running as root. If that file is present but unreadable or corrupt the daemon refuses to start rather than starting with an empty store and re-trusting the whole fleet.

Other

  • Desktop notifications for VPN and host health changes
  • Full config backup and restore (including secrets)
  • Verify Backup — dress-rehearses an archive without touching live data: extracts to a 0700 scratch directory removed before returning, then checks the tar extracts, secrets.json parses, every referenced profile and daemon-store secret is present, and no .ovpn is zero-byte. Keychain-held credentials are expected to be absent on macOS and are not flagged
  • Keyboard shortcuts (Ctrl+1-6 tabs, Ctrl+F search, Ctrl+L lock)
  • System tray with VPN status and quick actions; on macOS the menu bar icon's tooltip names which tunnel is up, keeps connecting tunnels on their own line so a negotiating tunnel is never reported as carrying traffic, and warns when the daemon is down and the reading is a stale cache
  • Systemd service with D-Bus activation

Architecture

# Shared by every platform
supermgr-core/         Domain types, IPC framing and clients, validation,
                       compliance baselines, error hierarchy, and the shared
                       SSH layer — key generation, ~/.ssh import scanning,
                       known-hosts verification, and authorized_keys push/revoke
supermgr-engine/       FortiGate/UniFi clients, provisioning, compliance,
                       network discovery, encrypted secret store, and JSON-RPC
                       handlers (used by the macOS daemon)
supermgr-mcp/          Scoped MCP server for AI assistant integration

# Linux
supermgrd/             Privileged daemon (runs as root via systemd, D-Bus)
supermgr/              GTK4/Adwaita GUI (runs as user)

# macOS
supermgrd-mac/         User-space daemon — wraps supermgr-engine, JSON-RPC
                       over Unix socket
supermanager-helper/   Privileged helper (LaunchDaemon, JSON-RPC over Unix
                       socket, ovpncli/openvpn/strongSwan/wireguard-go/pf)
SuperManagerMac/       Native SwiftUI app

# Windows
supermgrd-win/         Privileged daemon (Windows Service running as
                       LocalSystem, named-pipe RPC)
supermgr-win/          Slint GUI (runs as user)

Linux: the GUI talks to supermgrd over D-Bus on the system bus. The daemon handles privileged operations: network interface creation, nftables kill switch, root-owned 0600 secret storage (/etc/supermgrd/secrets.json, while the GTK GUI stores user API keys in Secret Service), SSH connections, and VPN management.

macOS: the SwiftUI app talks to supermgrd-mac (user) and supermanager-helper (root) over Unix sockets. The helper supervises VPN tunnels (ovpncli for OpenVPN3 / openvpn for 2.x, strongSwan for IKEv2, wireguard-go/wg for WireGuard, and per-profile pf kill-switch anchors). VPN credentials live in the macOS Keychain, and engine secrets are AES-256-GCM encrypted with a Keychain-held master key.

Windows: the Slint GUI talks to the supermgrd-win service over \\.\pipe\supermgrd. The service drives WireGuardNT, Authenticode-verified OpenVPN and openfortivpn executables, and Windows RAS for IKEv2. Secrets live in LocalSystem Credential Manager. See WINDOWS.md.

Where the shared code lives

Anything a host-management operation does that isn't platform-specific belongs in supermgr-core, not in a daemon. The SSH layer got there the hard way: supermgrd and supermgr-engine carried byte-identical copies of key generation, import, push and revoke, and copies drift — macOS and Windows both verified SSH host keys while Linux accepted whatever it was offered. The daemons now keep only what is genuinely theirs (session setup, auth methods, transport) and drive the shared logic through supermgr_core::ssh::remote::RemoteShell.

Building

Linux

./scripts/install-linux.sh does everything below in one command — dependencies, build, install, and starting the daemon. The manual steps are kept here for people packaging SuperManager or building on a distro the script doesn't recognise. --print-deps prints the package list for your distro without installing anything.

Dependencies

Arch Linux / CachyOS
sudo pacman -S --needed rust pkgconf gcc git \
    gtk4 libadwaita openssl \
    polkit openssh sshpass nftables \
    wireguard-tools strongswan openvpn \
    freerdp remmina networkmanager

# Optional (AUR) — for standard .ovpn profiles on Linux (driven via openvpn3)
paru -S openvpn3
Fedora 40+
sudo dnf install -y rust cargo gcc pkg-config \
    gtk4-devel libadwaita-devel \
    openssl-devel dbus-devel glib2-devel \
    polkit openssh-clients sshpass nftables \
    wireguard-tools strongswan openvpn \
    freerdp remmina NetworkManager

openvpn3 is not in Fedora's default repos — install from OpenVPN's upstream repository if you use standard .ovpn profiles (Azure VPN uses openvpn 2.x directly).

Debian / Ubuntu (24.04+)
sudo apt install -y rustc cargo build-essential pkg-config \
    libgtk-4-dev libadwaita-1-dev \
    libssl-dev libdbus-1-dev libglib2.0-dev \
    polkitd openssh-client sshpass nftables \
    wireguard-tools strongswan strongswan-swanctl openvpn \
    freerdp3-x11 remmina network-manager

On releases before 24.04 the polkit package is policykit-1.

If your distro's rustc is too old to build the workspace, install via rustup instead.

polkit is not optional. The daemon's credential-reading methods are gated on it and fail closed, so without it a working install looks like a broken one — see Security.

Build

Name the crates explicitly. A bare cargo build honours default-members in the workspace Cargo.toml, which is only the two crates that build on every platform — it will not produce supermgrd or supermgr, and the install step below would then fail on a missing file.

cargo build --release -p supermgrd -p supermgr -p supermgr-mcp

# Install
sudo install -m755 target/release/supermgrd /usr/bin/supermgrd
sudo install -m755 target/release/supermgr /usr/bin/supermgr
sudo install -m755 target/release/supermgr-mcp /usr/bin/supermgr-mcp
sudo install -Dm644 contrib/systemd/supermgrd.service /etc/systemd/system/supermgrd.service
sudo install -Dm644 contrib/dbus/org.supermgr.Daemon.conf /usr/share/dbus-1/system.d/org.supermgr.Daemon.conf
sudo install -Dm644 contrib/polkit/org.supermgr.Daemon.policy /usr/share/polkit-1/actions/org.supermgr.Daemon.policy
sudo install -Dm644 contrib/dbus/org.supermgr.Daemon.service /usr/share/dbus-1/system-services/org.supermgr.Daemon.service
sudo install -Dm644 contrib/desktop/org.supermgr.SuperManager.desktop /usr/share/applications/org.supermgr.SuperManager.desktop
sudo install -Dm644 contrib/icons/org.supermgr.SuperManager.svg /usr/share/icons/hicolor/scalable/apps/org.supermgr.SuperManager.svg
sudo install -Dm644 contrib/man/supermgr.1 /usr/share/man/man1/supermgr.1
sudo install -Dm644 contrib/man/supermgrd.8 /usr/share/man/man8/supermgrd.8
sudo systemctl daemon-reload
sudo systemctl enable --now strongswan supermgrd

AUR (Arch Linux)

cd contrib/aur
makepkg -si

macOS

Dependencies

# Required for any build
brew install xcodegen openssl@3 lz4

# OpenVPN3 (ovpncli) — required for Azure VPN with Entra ID, since
# Microsoft's gateway rejects OpenVPN 2.x clients in the AAD flow.
# No Homebrew formula exists; the contrib script clones upstream
# and builds it for you.
brew install cmake asio jsoncpp fmt
./contrib/build-openvpn3-mac.sh

# OpenVPN 2.x — fallback for non-Azure profiles
brew install openvpn

# strongSwan — for FortiGate IPsec/IKEv2
brew install strongswan

Xcode 15+ with the macOS SDK is required for the SwiftUI app build.

Build

cd SuperManagerMac
./build.sh                # debug build
./build.sh --release      # release build
./build.sh --run          # build + relaunch

The build script regenerates SuperManager.xcodeproj from project.yml via xcodegen, runs cargo build --release for the Rust binaries (supermgrd-mac, supermanager-helper), and bundles everything into SuperManagerMac.app under DerivedData.

Helper install

The app installs its privileged helper itself the first time it needs one: macOS asks for an admin password once, and the helper installed is the one inside the app bundle, signed like the app. There is no separate install script. The helper answers only the signed SuperManager app (supermanager-helper/src/client_auth.rs); a helper signed for development also accepts Xcode's Debug builds.

If you once enabled passwordless sudo with the retired enable_nopasswd.sh, remove the rule:

./SuperManagerMac/Signing/disable_nopasswd.sh

VPN DNS cleanup package

installer/pkg/ builds a small signed .pkg — not an app installer. It ships one file, the no.sybr.supermanager.vpn-dns-cleanup LaunchDaemon, which cleans up VPN DNS state; the app and privileged helper are installed separately by the steps above.

./installer/pkg/build-pkg.sh <version>
./installer/pkg/build-pkg.sh <version> --sign "Developer ID Installer: ..."
# → dist/SuperManager-vpn-dns-cleanup-<version>.pkg

./installer/pkg/uninstall.sh   # unloads and removes that LaunchDaemon only

Windows

See WINDOWS.md for the full install and packaging story. To build:

cargo build --release -p supermgrd-win -p supermgr-win -p supermgr-mcp

Development

Building and testing a platform

There is no single command that builds everything — the daemons and GUIs each need SDKs the other platforms don't have. Name the crates for the host you're on:

# Linux — daemon, GTK GUI, engine, core, MCP server
cargo build   -p supermgr-core -p supermgr-engine -p supermgr-mcp -p supermgrd -p supermgr
cargo test    -p supermgr-core -p supermgr-engine -p supermgr-mcp -p supermgrd -p supermgr
cargo clippy --all-targets -p supermgr-core -p supermgr-engine -p supermgr-mcp -p supermgrd -p supermgr

# macOS — everything, including the SwiftUI app
cargo test --workspace
cd SuperManagerMac && xcodegen generate && xcodebuild test \
    -project SuperManager.xcodeproj -scheme SuperManagerMac -destination 'platform=macOS'

# Windows
cargo test -p supermgr-core -p supermgr-mcp -p supermgrd-win -p supermgr-win

default-members in the workspace Cargo.toml is deliberately just supermgr-core + supermgr-mcp, so a bare cargo build stays fast and portable on any machine. It is not the set to build or test against — see the Linux build note above.

Checkouts on filesystems that don't preserve the exec bit

Cloud-sync and foreign filesystems — OneDrive/Dropbox FUSE mounts, exFAT/NTFS, some network shares — report every file as mode 644 and silently ignore chmod. Two things break, both fixable from outside the tree:

# 1. Builds. Cargo writes build-script binaries without +x, then cannot run
#    them: "Permission denied (os error 13)" on proc-macro2, serde, libc…
#    Point the target dir at a native filesystem. Nothing in target/ is
#    source, so it does not need to live in the synced tree — and keeping
#    the multi-GB build cache out of the sync client is a win regardless.
export CARGO_TARGET_DIR="$HOME/.cache/supermanager-target"

# 2. Git. Every committed 755 file shows as a phantom "mode change
#    100755 => 100644" modification. Left alone, `git commit -a` strips the
#    exec bit from all of them, including install.sh, build-pkg.sh and the
#    pkg maintainer scripts — which ships broken installers.
git config core.fileMode false

core.fileMode false is per-clone and does not affect what is committed: the modes already recorded in the index stay 755.

CI

.github/workflows/ci.yml runs three jobs, one per platform, each naming its crates the same way. The Linux job also runs clippy; the Windows job additionally builds the WiX MSI and Burn bundle on every push so installer schema mistakes surface before a release tag.

Usage

# Linux
supermgr          # Launch the GUI (daemon starts automatically via D-Bus activation)

# macOS
open /Applications/SuperManagerMac.app   # or via Spotlight

On Windows the MSI installs the supermgrd-win service and adds a Start Menu shortcut for the GUI.

Tech Stack

  • Languages: Rust (core, daemons, helpers, MCP), Swift / SwiftUI (macOS app)
  • GUI (Linux): GTK4 + libadwaita (Adwaita design language)
  • GUI (macOS): SwiftUI (Sequoia/Tahoe), AppKit interop
  • GUI (Windows): Slint
  • IPC: zbus D-Bus on Linux, JSON-RPC over Unix sockets on macOS, named pipe on Windows
  • SSH: russh (pure Rust, async), with host-key verification and authorized_keys editing shared across all three platforms in supermgr-core
  • VPN: WireGuard netlink (Linux) / wireguard-go + wg (macOS) / WireGuardNT (Windows), strongSwan swanctl, OpenVPN3 ovpncli (macOS Azure path) + OpenVPN 2.6+ CLI, Windows RAS for IKEv2, Azure Entra ID OAuth2 (PKCE)
  • Secret storage: root-owned 0600 store + Secret Service for UI keys on Linux, macOS Keychain + Keychain-wrapped AES-256-GCM store on macOS, LocalSystem Credential Manager on Windows
  • Password hashing: Argon2id (argon2 crate, OWASP defaults) on Linux, PBKDF2-SHA256 on macOS
  • AI: Anthropic Claude API + Claude Code CLI
  • HTTP: reqwest (native-tls)
  • Cloud: UI.com Site Manager API (UniFi)
  • Packaging: systemd + D-Bus activation (Linux), signed .app with Sparkle updates (macOS), WiX MSI + Burn bundle (Windows)

License

GPL-3.0-or-later

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages