You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: Declarative desktop connections for managed UNIX systems
#32336
T3 already supports saved desktop connections to remote environments. Interactive pairing works well for individual setup, but leaves a manual step when a desktop is rebuilt or provisioned from configuration.
NixOS and Home Manager users commonly declare their applications and configuration together. The same need exists on other managed UNIX desktops and reproducible development workstations: declare which existing T3 environments a desktop connects to, while delivering credentials separately through a secret manager. Operators should not need scripts that modify T3's encrypted internal state or embed bearer tokens in public configuration or the Nix store.
Proposed scope
An opt-in public JSON declaration file, selected by a desktop environment variable. Each entry names an existing environment ID, display label, HTTPS origin (or HTTP loopback origin), and private runtime bearer-token file.
The desktop would validate all entries and reconcile them into its existing native connection catalog. Encryption, schema validation, and atomic persistence would remain with T3's existing implementation. This would be independent of any configuration system: no Nix dependency or secret-manager integration is required inside T3.
The intended boundaries are:
Existing authorization only. No credential issuance, permission changes, networking setup, or peer provisioning.
Private runtime token files, including secret-manager symlinks. Reject unsafe file permissions, invalid owners, store-backed tokens, inline secrets, and malformed declarations.
Explicit lifecycle: removing a declaration would not revoke the remote session or delete the saved route. Ending access would remain a separate removal/revocation operation.
Reference implementation and verification limits
A separate, reviewable reference implementation is available here:
Its focused changed-file check passes 45 tests, plus formatting, lint, unused-code checks, and affected-package typechecks. Tests cover invalid inputs and private-file handling, preservation/idempotence, migration ordering, encryption and atomic-write failures, and sanitized diagnostics. A deliberate removal of the private-permission guard makes the corresponding tests fail.
Verification used Linux filesystem fixtures and a safeStorage test double. Actual Electron/keyring behavior, macOS runtime, and authenticated remote connections still need validation. The prototype explicitly rejects configured declarations on Windows because UNIX mode checks do not validate Windows ACLs.
Request for direction and scope approval
Would maintainers accept this declarative desktop-registration capability, and is a public manifest plus runtime token-file references the preferred interface? If an existing supported workflow already covers this need, pointers would also help.
I am asking for explicit direction and scope approval before submitting an upstream feature PR, as CONTRIBUTING.md requires. The fork implementation is a reference for discussion, not a claim that its interface or lifecycle has already been approved.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Problem and use case
T3 already supports saved desktop connections to remote environments. Interactive pairing works well for individual setup, but leaves a manual step when a desktop is rebuilt or provisioned from configuration.
NixOS and Home Manager users commonly declare their applications and configuration together. The same need exists on other managed UNIX desktops and reproducible development workstations: declare which existing T3 environments a desktop connects to, while delivering credentials separately through a secret manager. Operators should not need scripts that modify T3's encrypted internal state or embed bearer tokens in public configuration or the Nix store.
Proposed scope
An opt-in public JSON declaration file, selected by a desktop environment variable. Each entry names an existing environment ID, display label, HTTPS origin (or HTTP loopback origin), and private runtime bearer-token file.
The desktop would validate all entries and reconcile them into its existing native connection catalog. Encryption, schema validation, and atomic persistence would remain with T3's existing implementation. This would be independent of any configuration system: no Nix dependency or secret-manager integration is required inside T3.
The intended boundaries are:
Reference implementation and verification limits
A separate, reviewable reference implementation is available here:
zeroknots#2
Its focused changed-file check passes 45 tests, plus formatting, lint, unused-code checks, and affected-package typechecks. Tests cover invalid inputs and private-file handling, preservation/idempotence, migration ordering, encryption and atomic-write failures, and sanitized diagnostics. A deliberate removal of the private-permission guard makes the corresponding tests fail.
Verification used Linux filesystem fixtures and a safeStorage test double. Actual Electron/keyring behavior, macOS runtime, and authenticated remote connections still need validation. The prototype explicitly rejects configured declarations on Windows because UNIX mode checks do not validate Windows ACLs.
Request for direction and scope approval
Would maintainers accept this declarative desktop-registration capability, and is a public manifest plus runtime token-file references the preferred interface? If an existing supported workflow already covers this need, pointers would also help.
I am asking for explicit direction and scope approval before submitting an upstream feature PR, as CONTRIBUTING.md requires. The fork implementation is a reference for discussion, not a claim that its interface or lifecycle has already been approved.
All reactions