Commit graph

254 commits

Author SHA1 Message Date
Connor Peet e3d04f279f
cli: support refresh token in tunnel user login (#212106) 2024-05-06 18:47:37 +02:00
Connor Peet 0f2b535662
cli: automatically remove servers that fail to start (#211500)
Fixes https://github.com/microsoft/vscode-remote-release/issues/9823
2024-04-27 06:54:06 -07:00
Connor Peet 60bd03a02e
cli: fix tunnels not working on Windows (#211498)
I made a change this past iteration to use `CREATE_BREAKAWAY_FROM_JOB`
in order to allow the code-server process to outlive SSH connections run
from the exec server.

However, it appears that this _can_ break things if it's run from a job
that doesn't have the JOB_OBJECT_LIMIT_BREAKAWAY_OK flag set. I'm not
a winapi expert, so this is a simple though perhaps inefficient change
to probe whether we can do this via an echo command before starting the
server.
2024-04-27 01:38:38 +02:00
Connor Peet 233775583c
cli: warn when cli options are not applied (#211492)
Fixes #211378
2024-04-26 15:23:02 -07:00
Logan Ramos 01f02799cf
Run OSS tool (#210971) 2024-04-23 00:40:44 +02:00
Connor Peet 85178f0fb4
cli: bubble error from setup to the remote server (#210967)
cli: bubble error from setup to the remote server logs
2024-04-22 23:57:44 +02:00
Connor Peet 036d8e31b2
cli: use the legacy server for environment with prereq detection skipped (#210952)
Fixes #210029
2024-04-22 21:18:15 +02:00
Connor Peet 21e0716833
cli: update proc macro and clippy (#210414) 2024-04-15 20:27:34 +02:00
Connor Peet d30b358ac7
cli: ensure vscode server outlives CLI on windows (#210279) 2024-04-13 01:50:34 +02:00
dependabot[bot] a9174e5ac9
Bump h2 from 0.3.24 to 0.3.26 in /cli (#209660)
Bumps [h2](https://github.com/hyperium/h2) from 0.3.24 to 0.3.26.
- [Release notes](https://github.com/hyperium/h2/releases)
- [Changelog](https://github.com/hyperium/h2/blob/v0.3.26/CHANGELOG.md)
- [Commits](https://github.com/hyperium/h2/compare/v0.3.24...v0.3.26)

---
updated-dependencies:
- dependency-name: h2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-13 00:48:00 +02:00
Connor Peet 2a5d88dcbd
cli: allow command shell to listen on a specified host (#209691)
CLI part of https://github.com/microsoft/vscode-remote-release/issues/9713

Closes https://github.com/microsoft/vscode-remote-release/issues/9713
2024-04-05 16:19:25 -07:00
Connor Peet 6813d7ccbc
chore: update to rust 1.77 (#209563)
* chore: update to rust 1.77

* fix tests
2024-04-04 20:34:01 +02:00
Connor Peet 26edf9ca9f
cli: add progress for extraction (#209499)
For https://github.com/microsoft/vscode-remote-tunnels/issues/724
2024-04-03 17:08:49 -07:00
Connor Peet 8558da1335
cli: allow public port forwarding via tunnels (#209489) 2024-04-04 00:28:00 +02:00
solimant 9b22c85e7d
Honor GitHub brand name casing (#208503) 2024-03-25 15:49:45 +00:00
Robo cf216ecd5a
chore: run oss tool for 1.88.0 (#208481)
* chore: run oss tool for 1.88.0

* chore: bump distro
2024-03-23 03:43:12 +01:00
Connor Peet 2efb6a9f8c
cli: allow downloading legacy servers for older glibc versions (#204194)
* cli: allow downloading legacy servers for older glibc versions

Refs #206790

* chore: update asset name

---------

Co-authored-by: deepak1556 <hop2deep@gmail.com>
2024-03-21 11:01:24 -07:00
Connor Peet 2ffe804c46
cli: allow specifying a server-data-dir and extensions-dir (#208225) 2024-03-20 18:09:51 +01:00
Connor Peet 1ab312aeed
cli: try to automatically reload services during tunnel service install (#208119)
Fixes #208094
2024-03-19 15:29:30 -07:00
Connor Peet 7015a87618
cli: avoid adoption of tunnels with existing host connections (#208033)
Fixes https://github.com/microsoft/vscode-remote-release/issues/9655
2024-03-18 19:44:07 +01:00
btwiuse b356b209a5
cli: add --server-base-path flag to code serve-web command (#207932)
* feat(cli): add --server-base-path flag to `code serve-web` command

* fix clippy

* fmt

---------

Co-authored-by: navigaid <navigaid@gmail.com>
2024-03-18 08:12:08 -07:00
Connor Peet 6269ab41b4
cli: add --install-extension command for use with tunnel server (#207741)
* cli: add --install-extension command for use with tunnel server

* fix clippy
2024-03-14 19:05:20 +01:00
Aiday Marlen Kyzy 487e155ebb
Merge pull request #16 from devdiv-microsoft/connor4312/msrc/use-token-file
MSRC Fix for February 2024 Patch Tuesday
2024-03-12 11:02:18 -07:00
dependabot[bot] 968f1b2c40
Bump mio from 0.8.4 to 0.8.11 in /cli (#206845)
---
updated-dependencies:
- dependency-name: mio
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-11 16:10:24 -07:00
Connor Peet 5bdc31357d
cli: update dev tunnel sdk (#207018) 2024-03-06 16:10:10 -08:00
Connor Peet df809f53dd
cli: use a better permission for keychain fallback (#206650)
Fixes https://github.com/microsoft/vscode-remote-release/issues/9619
2024-03-01 23:40:46 +01:00
Connor Peet f99981ed56
cli: fix compressor not draining and leading to truncated responses (#206464)
* cli: fix compressor not draining and leading to truncated responses

Fixes https://github.com/microsoft/vscode-remote-release/issues/9594

* fix lint
2024-02-28 20:47:31 +01:00
Connor Peet 9a07ceb9f7
cli: ensure the canonical snap exe is used for the CLI (#206133)
Fixes #204907
2024-02-23 15:02:22 -08:00
Robo cf7ddbb51d
fix: use legacy server as default with additional warnings (#204377)
* ci: switch to glibc 2.17 remote server

* chore: signal user about unsupported connection

* chore: address review comments

* chore: update nodejs build

* chore: bump distro

* chore: lower the minimum requirements

* fix: glibc version check

* chore: remove explicit connection disposal
2024-02-06 11:25:58 +01:00
Connor Peet 2ff1b39452
cli: update dev tunnels (#203997)
Fixes #201417
2024-02-01 10:07:46 -08:00
Connor Peet 7e0c93cec5
cli: skip integrity check when prereq skip flag is present (#203912) 2024-01-31 18:33:55 +01:00
Connor Peet 6291fb21ec
cli: fix adveristing file extension on windows (#203818)
Fixes #202919
2024-01-30 09:52:18 -08:00
Connor Peet d7cfba7af7
cli: update dev tunnel sdk (#203763) 2024-01-30 03:01:21 +01:00
Robo fc9dcad098
fix: skip server requirements check based on file presence (#203729) 2024-01-29 19:55:17 +01:00
Alexandru Dima 523725a022
Run OSS Tool (#203132) 2024-01-23 13:13:55 +01:00
Aiday Marlen Kyzy e5e5cb8632
adding the license changes 2024-01-22 14:12:14 +01:00
dependabot[bot] 442419c7a2
Bump h2 from 0.3.17 to 0.3.24 in /cli (#202867)
Bumps [h2](https://github.com/hyperium/h2) from 0.3.17 to 0.3.24.
- [Release notes](https://github.com/hyperium/h2/releases)
- [Changelog](https://github.com/hyperium/h2/blob/v0.3.24/CHANGELOG.md)
- [Commits](https://github.com/hyperium/h2/compare/v0.3.17...v0.3.24)

---
updated-dependencies:
- dependency-name: h2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-20 11:06:39 -08:00
Connor Peet f58d7ff83d
cli: fix GLIBC version requirement hardcoded in error message (#202605)
Fixes #202082
2024-01-16 11:34:18 -08:00
samhanic 70dda3c792 Merge branch 'main' into cli-extension-update 2024-01-07 21:24:26 +01:00
Connor Peet 68bc4c82c8
cli: update server prereq versions (#201261)
Fixes #201129
2023-12-20 14:27:09 +09:00
Connor Peet 1a3de4181e
cli: allow cancelling login during tunnel creation (#200188)
Fixes #197559
2023-12-06 21:59:28 +01:00
Connor Peet cc62bd1ddd
cli: allow reading exec server token from env variable (#200079) 2023-12-05 21:38:10 +01:00
Connor Peet 3ff7d4545b
Update cli/src/commands/args.rs
Co-authored-by: Sandeep Somavarapu <sasomava@microsoft.com>
2023-12-04 08:12:05 -08:00
samhanic 74c419b5bd add cli update-extensions prototype 2023-12-03 14:25:40 +01:00
dependabot[bot] 0c021d3625
Bump openssl from 0.10.55 to 0.10.60 in /cli (#199456)
Bumps [openssl](https://github.com/sfackler/rust-openssl) from 0.10.55 to 0.10.60.
- [Release notes](https://github.com/sfackler/rust-openssl/releases)
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.55...openssl-v0.10.60)

---
updated-dependencies:
- dependency-name: openssl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-29 09:18:33 -05:00
Connor Peet 7771124ebd
cli: add tcpConnect exec server command, add proposed methods to .d.ts (#197692) 2023-11-07 16:23:48 -08:00
Connor Peet b431ca92db
tunnels: fixes to allow msa auth (#197259) 2023-11-02 19:49:04 +01:00
Connor Peet 7d2c73944d
cli: use bit flags for publishing tunnel data (#197164)
And it now publishes the OS it runs on, which is used to fix part of #195938
2023-11-01 20:05:53 +01:00
Connor Peet d6707fd3fd
cli: explicitly deny anonymous control port access (#197093)
* cli: explicitly deny anonymous control port access

Prevents inheriting any ACL set at the tunnel level which may allow different access for forwarded ports

* testing: make ui more clear for discovery errors (#197115)

* testing: make ui more clear for discovery errors

Fixes #196546

* undo

* fix tests
2023-11-01 19:59:46 +01:00
Connor Peet fcb814b0d6
cli: fix text shown when GH auth is auto-selected (#196527)
Refs https://github.com/microsoft/vscode-remote-release/issues/8908\#issuecomment-1778427807
2023-10-25 09:07:14 +02:00