Commit Graph

126 Commits

Author SHA1 Message Date
Chip Senkbeil
01610a3ac7
Add search support (#131) 2022-08-30 01:47:23 -07:00
Chip Senkbeil
53fd8d0c4f
Add capabilities support to server and manager 2022-08-28 18:30:36 -05:00
Chip Senkbeil
1fa3a8acea
Refactor ssh options into a generic options map and rename extra/Extra into options/Map 2022-08-27 01:35:12 -05:00
Chip Senkbeil
591cd6ff41
Fix ssh launch login shell using sh on windows; update shell cli to use default shell from system info before defaulting 2022-08-25 01:56:50 -05:00
Chip Senkbeil
6d0bbd56fc
Add back missing newlines for system info printing 2022-08-25 01:19:49 -05:00
Chip Senkbeil
56a030e6dd
Update SystemInfo to support username and shell 2022-08-25 01:15:38 -05:00
Chip Senkbeil
04b20d1348
Fix distant client shell choosing appropriate default; update CHANGELOG 2022-08-19 01:25:32 -05:00
Chip Senkbeil
74a37209eb
Refactor --shutdown-after into --shutdown (#49) 2022-08-18 18:52:42 -05:00
Chip Senkbeil
1ff3ef2db1
Fix shutdown-after such that it now functions 2022-08-18 16:52:03 -05:00
Chip Senkbeil
41d35f88de
Fix handling of IPv6 for Destination and DistantSingleKeyCredentials 2022-08-18 01:19:05 -05:00
Chip Senkbeil
768dbdc053
Rewrite Destination to no longer use uriparse library 2022-08-18 00:09:50 -05:00
Chip Senkbeil
86b34d23c6
Fix ssh settings not getting applied, ssh.bin being mispelled, and added ClientConnectConfig 2022-08-17 14:07:42 -05:00
Chip Senkbeil
9097892c61
Move access control to be manager-specific 2022-08-16 23:00:40 -05:00
Chip Senkbeil
0633530a13
Expose windows-pipe and unix-socket regardless of platform 2022-08-16 21:55:53 -05:00
Chip Senkbeil
44b0dc065c
Split fallback_scheme into launch and connect choices 2022-08-16 14:57:01 -06:00
Chip Senkbeil
4223c4e03f
Fix json support for client launch/connect and add json format support for client select (#118) 2022-08-16 01:31:52 -06:00
Chip Senkbeil
5e1b6e7c51
Update cache to not fail on read error 2022-08-09 00:51:56 -07:00
Chip Senkbeil
b9d2e2e57e
Update termwiz 0.15.0 -> 0.17.1 2022-08-08 22:20:42 -07:00
Chip Senkbeil
ea2e128bc4
Refactor to use distant manager (#112) 2022-08-08 01:10:32 -05:00
Chip Senkbeil
4180ae279a
Bump to 0.16.4 and fix #80 and fix #102 2022-06-01 15:35:29 -05:00
Chip Senkbeil
329213dbe4
Add --ssh-backend support to cli and bump to 0.16.3 2022-05-29 15:16:35 -05:00
Chip Senkbeil
268ec948d6
Add filesystem watching & remove distant-lua (#102) 2022-03-30 19:32:20 -05:00
Chip Senkbeil
f46eeea8d5
Add environment as new output session type and change defaults to environment for CLI (#98) 2022-02-13 19:05:56 -06:00
Chip Senkbeil
3794466dd0
Add windows & unix optional metadata (#96) 2022-02-05 00:54:01 -06:00
Chip Senkbeil
0308343794
Rename detached to persist (#94) 2022-02-04 23:22:09 -06:00
Chip Senkbeil
050bb3496a
Complete shell support (#89) 2022-01-31 20:44:37 -06:00
Chip Senkbeil
c6c07c5c2c
Unfinished pty support, renaming ProcRun -> ProcSpawn and ProcStarted -> ProcSpawned, switch ProcStdin/ProcStdout/ProcStderr to use Vec<u8> instead of String, update RemoteProcess and RemoteLspProcess to support reading/writing string and vec<u8> 2021-12-19 23:48:22 -06:00
Chip Senkbeil
8c234f95d0
Support json ssh auth (#83)
* Add support for JSON communication of ssh auth during launch
* Switch to cbor alternative lib as serde cbor has been abandoned
* Refactor some request & response types to work with new cbor lib
* Update cli to always include serde dep
* Expose origin_id of remote process as method
2021-12-12 15:32:13 -06:00
Chip Senkbeil
2c0883878d
Add --key-from-stdin option to listen cli command to read key from stdin instead of generating 2021-11-11 13:03:36 -06:00
Chip Senkbeil
6d0e54bfa1
Remove --daemon in favor of opposite parameter --foreground 2021-10-15 20:40:35 -05:00
Chip Senkbeil
4050a421bc
Add spacing and change to DISTANT CONNECT from DISTANT DATA 2021-10-13 01:06:42 -05:00
Chip Senkbeil
c2e588544f
Update wezterm-ssh dep to 0.2.0, fix ssh -> distant session, refactor session to have optional details included 2021-10-10 23:09:42 -05:00
Chip Senkbeil
043ae6ca4b
Couple of changes:
1. Add support to detach processes from distant server
2. Refactor distant_bin and distant_args to distant.bin and distant.args
3. Add use_login_shell option for launch distant opts
2021-10-10 15:05:04 -05:00
Chip Senkbeil
16bed4690b
Add lua lib & support compiling distant cli on windows (#59)
* Update distant-ssh2 with new changes to wezterm-ssh
* Implement lua module (distant-lua)
* Implement tests for lua module (distant-lua-tests)
* Add untested windows daemon support
* distant binary now compiles on windows
* Split up Github actions for Windows, MacOS, and Linux into individual yaml files
2021-10-06 23:17:07 -05:00
Chip Senkbeil
97536c7b2b
Refactor Metadata and SystemInfo response data types to support subtypes as singular parameters 2021-09-29 10:54:37 -05:00
Chip Senkbeil
e586891463
Update to 0.15.0-alpha.2
* Rename SessionExt -> SessionChannelExt
* Rename SessionExtError -> SessionChannelExtError
* Update SessionChannel to implement SessionChannelExt
* Update Session to not implement SessionChannelExt as it gets this for
  free through Deref/DerefMut targeting SessionChannel
2021-09-28 11:49:26 -05:00
Chip Senkbeil
0a11ec65a2
Add native ssh (#57)
* Bump to 0.15.0
* Add new distant-ssh2 subcrate to provide an alternate session as an ssh client
* Add rpassword & wezterm-ssh dependencies
* Rename core -> distant-core in project directory structure and move ssh2 feature into distant-ssh2 crate
* Upgrade tokio to 1.12,
* Update github actions to detect changes and apply testing for only those changes
* Add method parameter to support distant & ssh methods for action and lsp subcommands
* Add ssh-host, ssh-port, and ssh-user parameters to specify information for ssh method
2021-09-28 00:04:26 -05:00
Chip Senkbeil
2277f9634d
Replace DISTANT_AUTH_KEY with DISTANT_KEY for environment variable parsing 2021-09-18 21:49:21 -05:00
Chip Senkbeil
3c15a90886
Fix log suppression to occur when running remote process and not logging to a file 2021-09-18 21:25:24 -05:00
Chip Senkbeil
c4d1011b14
Add session ext (#53)
* Add `SessionExt` trait for friendlier methods
* Create `Mailbox` and internal `PostOffice` to manage responses to requests
* Refactor `Session` to use a new `SessionChannel` underneath
* Refactor `Response` to always include an origin_id field instead of being optional
* Update `ProcStdout`, `ProcStderr`, and `ProcDone` to include origin id
* Replace `verbose` option with `log-level`
2021-09-18 20:06:57 -05:00
Chip Senkbeil
e4273a1be9
Refactor codec (#47)
* Remove DistantCodec
* Add Codec trait to support encode & decode
* Add XChaCha20Poly1305 dependency in place of orion
* Add XChaCha20Poly1305Codec that encrypts/signs using XChaCha20Poly1305
* Add PlainCodec that does no encrypting/signing
* Refactor Transport to take generic Codec
* Rewrite to no longer use blake256
* Remove k256 dependency
* Remove Transport::from_handshake as no longer doing EDCH key exchange
* Fix stdout/stderr being sent before proc_start by adding post_hook support to handler such that proc_run tasks are not spawned until proc_start is sent as response
* Remove unneeded else if condition when checking join error type
2021-09-14 12:54:45 -05:00
Chip Senkbeil
35fa1197da
Update remote process execution to automatically disabling logging to console; add sleep before checking file write/append results to account for delays from OS 2021-09-09 08:34:31 -05:00
Chip Senkbeil
756b87a8ae
Fix json format for interactive proc run requests 2021-09-08 22:06:42 -05:00
Chip Senkbeil
cf95181418
Fix new clippy warnings, remove windows tests for cli as it does not support windows yet 2021-09-05 19:26:40 -05:00
Chip Senkbeil
34d6b574c1
Fix clippy warnings, fix rustfmt, refactor proc-run tests to use generated scripts instead of script files 2021-09-05 17:20:47 -05:00
Chip Senkbeil
ec4f635dbe
Clean up clippy warnings 2021-09-05 01:19:20 -05:00
Chip Senkbeil
9bd2112344
Refactor listener (#38)
* Finish implementing new listener logic

* Refactor cli tests to work with new format

* Implement tests for remote process

* Fix bugs in LSP stdout, stderr, and stdin

* Add tests for LSP remote process

* Update metadata request & response to support resolving the file type of symlinks
2021-09-03 23:49:37 -05:00
Chip Senkbeil
cf0193edc9
Add some extra logging and complete proc-run cli tests 2021-08-30 22:46:51 -05:00
Chip Senkbeil
b362ff5ab8
Fix process cleanup happening when only half of a tranport has closed 2021-08-30 12:07:10 -05:00
Chip Senkbeil
f66a234873
Unfinished tests for proc-run cli 2021-08-29 21:04:09 -05:00