2020-07-10 22:10:26 +00:00
|
|
|
module github.com/gravitational/teleport
|
|
|
|
|
2021-10-18 23:42:37 +00:00
|
|
|
go 1.17
|
2020-07-10 22:10:26 +00:00
|
|
|
|
|
|
|
require (
|
2021-03-22 16:38:05 +00:00
|
|
|
cloud.google.com/go v0.60.0
|
2021-02-23 23:37:31 +00:00
|
|
|
cloud.google.com/go/firestore v1.2.0
|
|
|
|
cloud.google.com/go/storage v1.10.0
|
Add support for `tsh ssh` on Windows (#7790)
* Add support for `tsh ssh` on Windows
This adds Windows session support to tsh, taking advantage of ANSI
terminal support and VT emulation added in recent versions Windows
10. On supported Windows versions (Windows 10 1607+), `tsh ssh`
should work as expected in `cmd.exe`, PowerShell, and the new
Windows Terminal app.
* Address a few review comments
* Remove significant chunks of unnecessary tncon code.
Removes the global buffer, `GetVTSeqFromKeyStroke`, and several
ancillary headers and functions that aren't needed for our (current)
use-case. Also removes mouse and focus events.
* Refactor OS-specific terminal handling
This significantly simplifies OS-specific terminal behavior:
* Move OS specific terminal code into a new `terminal` package
* Remove `session_windows.go` in favor of an OS-independent
`session.go`, defer to terminal package for OS specific
functionality.
* Remove ConPTY since it's not needed.
* Always wait for the terminal and ssh session to fully close before
quitting.
* Refactor tncon; ensure the raw reader can be closed and reopened,
remove lots of unnecessary C code.
* Revert dependency changes
* Use WindowsOS constant.
* Fix `tsh play` on Windows
This fixes `tsh play` on Windows by using the new `terminal` module to
initialize the terminal for raw input in a cross-platform way.
Additionally, this simplifies `terminal.New()` since in practice we never
want interactive mode at init time, and fixes a broken unit test.
* Use correct log library
* Fix `tsh play` player controls on Windows
This fixes the console player controls on Windows as well as the timestamp
writer.
* Clean up lints
* Add missing license header
* Fix broken unit test
* Fix cross-compile builds on Linux/Docker
We need windows.h, which is not capitalized in the mingw packages
(and is case insensitive on Windows).
* Address code review feedback
- Rename `Terminal.InitInteractive` to `Terminal.InitRaw`
- Ensure goroutines terminate on close
- Fix outdated godoc comments
- Ensure Terminal event subscribers are cleared (and their channels
are closed)
- Ensure terminal output mode is reset on error in initTerminal
- Bubble up errors in Terminal.Close()
- Add author notice to tncon.c re: our changes
- Add go-ansiterm as a direct dependency
- Run `make update-vendor`
* Add constants and a small player.go TODO.
* Clear linter warning
2021-09-16 21:53:08 +00:00
|
|
|
github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78
|
2021-02-23 23:37:31 +00:00
|
|
|
github.com/HdrHistogram/hdrhistogram-go v1.0.1
|
|
|
|
github.com/Microsoft/go-winio v0.4.16
|
2021-07-29 20:08:01 +00:00
|
|
|
github.com/ThalesIgnite/crypto11 v1.2.4
|
2020-07-10 23:11:55 +00:00
|
|
|
github.com/alecthomas/assert v0.0.0-20170929043011-405dbfeb8e38 // indirect
|
|
|
|
github.com/alecthomas/colour v0.1.0 // indirect
|
|
|
|
github.com/alecthomas/repr v0.0.0-20200325044227-4184120f674c // indirect
|
2021-02-23 23:37:31 +00:00
|
|
|
github.com/alecthomas/units v0.0.0-20210208195552-ff826a37aa15 // indirect
|
2021-06-15 19:47:16 +00:00
|
|
|
github.com/aquasecurity/libbpfgo v0.1.0
|
2020-07-10 22:10:26 +00:00
|
|
|
github.com/armon/go-radix v1.0.0
|
2021-02-23 23:37:31 +00:00
|
|
|
github.com/aws/aws-sdk-go v1.37.17
|
2021-10-08 17:41:28 +00:00
|
|
|
github.com/aws/aws-sdk-go-v2 v1.9.0
|
|
|
|
github.com/aws/aws-sdk-go-v2/config v1.8.0
|
|
|
|
github.com/aws/aws-sdk-go-v2/credentials v1.4.0
|
|
|
|
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.5.0
|
|
|
|
github.com/aws/aws-sdk-go-v2/service/ec2 v1.16.0
|
|
|
|
github.com/aws/aws-sdk-go-v2/service/sts v1.7.0
|
2020-09-29 16:24:55 +00:00
|
|
|
github.com/beevik/etree v1.1.0
|
2021-02-23 23:37:31 +00:00
|
|
|
github.com/boombuler/barcode v1.0.1 // indirect
|
2021-05-21 01:07:47 +00:00
|
|
|
github.com/coreos/go-oidc v0.0.4
|
2020-10-08 00:13:18 +00:00
|
|
|
github.com/coreos/go-semver v0.3.0
|
2021-02-23 23:37:31 +00:00
|
|
|
github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f // indirect
|
2020-07-10 23:11:55 +00:00
|
|
|
github.com/davecgh/go-spew v1.1.1
|
|
|
|
github.com/docker/spdystream v0.0.0-20170912183627-bc6354cbbc29 // indirect
|
2021-08-26 17:50:59 +00:00
|
|
|
github.com/duo-labs/webauthn v0.0.0-20210727191636-9f1b88ef44cc
|
2020-07-10 22:10:26 +00:00
|
|
|
github.com/dustin/go-humanize v1.0.0
|
2021-09-14 09:32:53 +00:00
|
|
|
github.com/flynn/hid v0.0.0-20190502022136-f1b9b6cc019a
|
2021-02-04 19:10:00 +00:00
|
|
|
github.com/flynn/u2f v0.0.0-20180613185708-15554eb68e5d
|
2021-02-23 23:37:31 +00:00
|
|
|
github.com/fsouza/fake-gcs-server v1.19.5
|
2021-08-26 17:50:59 +00:00
|
|
|
github.com/fxamacker/cbor/v2 v2.3.0
|
2020-07-10 23:11:55 +00:00
|
|
|
github.com/ghodss/yaml v1.0.0
|
2021-02-23 23:37:31 +00:00
|
|
|
github.com/gizak/termui/v3 v3.1.0
|
2021-10-01 22:01:17 +00:00
|
|
|
github.com/go-ldap/ldap/v3 v3.4.1
|
2021-02-23 23:37:31 +00:00
|
|
|
github.com/gogo/protobuf v1.3.2
|
2020-07-10 22:10:26 +00:00
|
|
|
github.com/gokyle/hotp v0.0.0-20160218004637-c180d57d286b
|
2021-02-23 23:37:31 +00:00
|
|
|
github.com/golang/protobuf v1.4.3
|
2020-07-10 23:11:55 +00:00
|
|
|
github.com/google/btree v1.0.0
|
2021-10-08 17:41:28 +00:00
|
|
|
github.com/google/go-cmp v0.5.6
|
2021-02-23 23:37:31 +00:00
|
|
|
github.com/google/gops v0.3.14
|
2021-04-09 23:20:56 +00:00
|
|
|
github.com/google/uuid v1.2.0
|
2021-06-22 05:54:05 +00:00
|
|
|
github.com/gopherjs/gopherjs v0.0.0-20190430165422-3e4dfb77656c // indirect
|
2021-02-23 23:37:31 +00:00
|
|
|
github.com/gorilla/handlers v1.5.1 // indirect
|
|
|
|
github.com/gorilla/mux v1.8.0 // indirect
|
|
|
|
github.com/gorilla/websocket v1.4.2 // indirect
|
|
|
|
github.com/gravitational/configure v0.0.0-20180808141939-c3428bd84c23
|
2020-07-10 22:10:26 +00:00
|
|
|
github.com/gravitational/form v0.0.0-20151109031454-c4048f792f70
|
|
|
|
github.com/gravitational/kingpin v2.1.11-0.20190130013101-742f2714c145+incompatible
|
2021-07-14 20:31:03 +00:00
|
|
|
github.com/gravitational/license v0.0.0-20210218173955-6d8fb49b117a
|
2021-03-22 15:56:44 +00:00
|
|
|
github.com/gravitational/oxy v0.0.0-20210316180922-c73d80d27348
|
2021-07-14 20:31:03 +00:00
|
|
|
github.com/gravitational/reporting v0.0.0-20180907002058-ac7b85c75c4c
|
2020-07-10 22:10:26 +00:00
|
|
|
github.com/gravitational/roundtrip v1.0.0
|
2021-07-30 22:34:19 +00:00
|
|
|
github.com/gravitational/teleport/api v0.0.0
|
2021-08-12 17:52:13 +00:00
|
|
|
github.com/gravitational/trace v1.1.16-0.20210617142343-5335ac7a6c19
|
2020-07-10 22:10:26 +00:00
|
|
|
github.com/gravitational/ttlmap v0.0.0-20171116003245-91fd36b9004c
|
2020-09-16 20:33:19 +00:00
|
|
|
github.com/hashicorp/golang-lru v0.5.4
|
2021-02-23 23:37:31 +00:00
|
|
|
github.com/jackc/pgconn v1.8.0
|
2021-07-14 16:13:39 +00:00
|
|
|
github.com/jackc/pgerrcode v0.0.0-20201024163028-a0d42d470451
|
2021-02-23 23:37:31 +00:00
|
|
|
github.com/jackc/pgproto3/v2 v2.0.7
|
|
|
|
github.com/johannesboyne/gofakes3 v0.0.0-20210217223559-02ffa763be97
|
2021-01-12 11:10:00 +00:00
|
|
|
github.com/jonboulle/clockwork v0.2.2
|
2020-09-23 22:14:26 +00:00
|
|
|
github.com/json-iterator/go v1.1.10
|
2021-02-23 23:37:31 +00:00
|
|
|
github.com/julienschmidt/httprouter v1.3.0
|
2020-07-10 22:10:26 +00:00
|
|
|
github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0
|
2021-01-15 02:21:38 +00:00
|
|
|
github.com/kr/pty v1.1.8
|
2021-02-23 23:37:31 +00:00
|
|
|
github.com/kylelemons/godebug v1.1.0
|
|
|
|
github.com/mailgun/lemma v0.0.0-20170619173223-4214099fb348
|
2020-07-10 23:11:55 +00:00
|
|
|
github.com/mailgun/metrics v0.0.0-20150124003306-2b3c4565aafd // indirect
|
2021-02-23 23:37:31 +00:00
|
|
|
github.com/mailgun/minheap v0.0.0-20170619185613-3dbe6c6bf55f // indirect
|
|
|
|
github.com/mailgun/timetools v0.0.0-20170619190023-f3a7b8ffff47
|
|
|
|
github.com/mailgun/ttlmap v0.0.0-20170619185759-c1c17f74874f
|
|
|
|
github.com/mattermost/xml-roundtrip-validator v0.1.0 // indirect
|
|
|
|
github.com/mattn/go-isatty v0.0.12 // indirect
|
|
|
|
github.com/mattn/go-runewidth v0.0.10 // indirect
|
2021-01-29 20:15:14 +00:00
|
|
|
github.com/mattn/go-sqlite3 v1.14.6
|
2020-07-10 23:11:55 +00:00
|
|
|
github.com/mdp/rsc v0.0.0-20160131164516-90f07065088d // indirect
|
2021-02-23 23:37:31 +00:00
|
|
|
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
|
|
|
|
github.com/moby/term v0.0.0-20201216013528-df9cb8a40635
|
|
|
|
github.com/nsf/termbox-go v0.0.0-20210114135735-d04385b850e8 // indirect
|
|
|
|
github.com/pborman/uuid v1.2.1
|
2021-07-14 16:13:39 +00:00
|
|
|
github.com/pkg/errors v0.9.1
|
2021-02-23 23:37:31 +00:00
|
|
|
github.com/pquerna/otp v1.3.0
|
|
|
|
github.com/prometheus/client_golang v1.9.0
|
|
|
|
github.com/prometheus/client_model v0.2.0
|
|
|
|
github.com/prometheus/common v0.17.0
|
|
|
|
github.com/rivo/uniseg v0.2.0 // indirect
|
2020-12-14 19:34:20 +00:00
|
|
|
github.com/russellhaering/gosaml2 v0.6.0
|
2020-09-29 16:24:55 +00:00
|
|
|
github.com/russellhaering/goxmldsig v1.1.0
|
2020-07-10 23:11:55 +00:00
|
|
|
github.com/sergi/go-diff v1.1.0 // indirect
|
2021-08-27 00:29:08 +00:00
|
|
|
github.com/sethvargo/go-diceware v0.2.1
|
2020-07-10 23:11:55 +00:00
|
|
|
github.com/shabbyrobe/gocovmerge v0.0.0-20190829150210-3e036491d500 // indirect
|
2021-02-10 19:08:13 +00:00
|
|
|
github.com/siddontang/go-mysql v1.1.0
|
2021-02-23 23:37:31 +00:00
|
|
|
github.com/sirupsen/logrus v1.8.1-0.20210219125412-f104497f2b21
|
|
|
|
github.com/stretchr/testify v1.7.0
|
|
|
|
github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5 // indirect
|
2020-07-10 22:10:26 +00:00
|
|
|
github.com/tstranex/u2f v0.0.0-20160508205855-eb799ce68da4
|
|
|
|
github.com/vulcand/predicate v1.1.0
|
Add support for `tsh ssh` on Windows (#7790)
* Add support for `tsh ssh` on Windows
This adds Windows session support to tsh, taking advantage of ANSI
terminal support and VT emulation added in recent versions Windows
10. On supported Windows versions (Windows 10 1607+), `tsh ssh`
should work as expected in `cmd.exe`, PowerShell, and the new
Windows Terminal app.
* Address a few review comments
* Remove significant chunks of unnecessary tncon code.
Removes the global buffer, `GetVTSeqFromKeyStroke`, and several
ancillary headers and functions that aren't needed for our (current)
use-case. Also removes mouse and focus events.
* Refactor OS-specific terminal handling
This significantly simplifies OS-specific terminal behavior:
* Move OS specific terminal code into a new `terminal` package
* Remove `session_windows.go` in favor of an OS-independent
`session.go`, defer to terminal package for OS specific
functionality.
* Remove ConPTY since it's not needed.
* Always wait for the terminal and ssh session to fully close before
quitting.
* Refactor tncon; ensure the raw reader can be closed and reopened,
remove lots of unnecessary C code.
* Revert dependency changes
* Use WindowsOS constant.
* Fix `tsh play` on Windows
This fixes `tsh play` on Windows by using the new `terminal` module to
initialize the terminal for raw input in a cross-platform way.
Additionally, this simplifies `terminal.New()` since in practice we never
want interactive mode at init time, and fixes a broken unit test.
* Use correct log library
* Fix `tsh play` player controls on Windows
This fixes the console player controls on Windows as well as the timestamp
writer.
* Clean up lints
* Add missing license header
* Fix broken unit test
* Fix cross-compile builds on Linux/Docker
We need windows.h, which is not capitalized in the mingw packages
(and is case insensitive on Windows).
* Address code review feedback
- Rename `Terminal.InitInteractive` to `Terminal.InitRaw`
- Ensure goroutines terminate on close
- Fix outdated godoc comments
- Ensure Terminal event subscribers are cleared (and their channels
are closed)
- Ensure terminal output mode is reset on error in initTerminal
- Bubble up errors in Terminal.Close()
- Add author notice to tncon.c re: our changes
- Add go-ansiterm as a direct dependency
- Run `make update-vendor`
* Add constants and a small player.go TODO.
* Clear linter warning
2021-09-16 21:53:08 +00:00
|
|
|
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
|
2021-02-23 23:37:31 +00:00
|
|
|
go.etcd.io/etcd v0.5.0-alpha.5.0.20201125193152-8a03d2e9614b
|
2021-06-22 05:54:05 +00:00
|
|
|
go.mongodb.org/mongo-driver v1.5.3
|
2021-10-08 17:41:28 +00:00
|
|
|
go.mozilla.org/pkcs7 v0.0.0-20210826202110-33d05740a352
|
2021-02-23 23:37:31 +00:00
|
|
|
go.opencensus.io v0.22.5 // indirect
|
|
|
|
go.uber.org/atomic v1.7.0
|
|
|
|
golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83
|
|
|
|
golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5 // indirect
|
2021-09-14 09:32:53 +00:00
|
|
|
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4
|
2020-09-23 22:14:26 +00:00
|
|
|
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
|
2021-05-15 01:31:36 +00:00
|
|
|
golang.org/x/sys v0.0.0-20210514084401-e8d321eab015
|
2021-02-23 23:37:31 +00:00
|
|
|
golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d
|
|
|
|
golang.org/x/text v0.3.5
|
2021-09-14 09:32:53 +00:00
|
|
|
golang.org/x/tools v0.1.5 // indirect
|
2021-02-23 23:37:31 +00:00
|
|
|
google.golang.org/api v0.29.0
|
|
|
|
google.golang.org/appengine v1.6.7 // indirect
|
|
|
|
google.golang.org/genproto v0.0.0-20210223151946-22b48be4551b
|
|
|
|
google.golang.org/grpc v1.29.1
|
2020-10-17 23:06:36 +00:00
|
|
|
google.golang.org/protobuf v1.25.0
|
2021-02-23 23:37:31 +00:00
|
|
|
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
|
2021-01-15 02:21:38 +00:00
|
|
|
gopkg.in/ini.v1 v1.62.0
|
2021-02-23 23:37:31 +00:00
|
|
|
gopkg.in/mgo.v2 v2.0.0-20190816093944-a6b53ec6cb22 // indirect
|
2020-10-17 23:06:36 +00:00
|
|
|
gopkg.in/square/go-jose.v2 v2.5.1
|
2021-02-23 23:37:31 +00:00
|
|
|
gopkg.in/yaml.v2 v2.4.0
|
|
|
|
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
|
2021-03-22 16:38:05 +00:00
|
|
|
honnef.co/go/tools v0.0.1-2020.1.5 // indirect
|
2020-09-23 22:14:26 +00:00
|
|
|
k8s.io/api v0.0.0-20200821051526-051d027c14e1
|
2021-02-23 23:37:31 +00:00
|
|
|
k8s.io/apimachinery v0.20.4
|
2020-09-23 22:14:26 +00:00
|
|
|
k8s.io/client-go v0.0.0-20200827131824-5d33118d4742
|
2020-07-10 23:11:55 +00:00
|
|
|
launchpad.net/gocheck v0.0.0-20140225173054-000000000087 // indirect
|
2020-07-10 22:10:26 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
replace (
|
2021-10-05 20:41:19 +00:00
|
|
|
github.com/coreos/go-oidc => github.com/gravitational/go-oidc v0.0.5
|
2020-12-09 15:46:33 +00:00
|
|
|
github.com/gogo/protobuf => github.com/gravitational/protobuf v1.3.2-0.20201123192827-2b9fcfaffcbf
|
2021-07-30 22:34:19 +00:00
|
|
|
github.com/gravitational/teleport/api => ./api
|
2021-02-12 01:31:56 +00:00
|
|
|
github.com/siddontang/go-mysql v1.1.0 => github.com/gravitational/go-mysql v1.1.1-0.20210212011549-886316308a77
|
2021-08-17 19:58:20 +00:00
|
|
|
github.com/sirupsen/logrus => github.com/gravitational/logrus v1.4.4-0.20210817004754-047e20245621
|
2020-07-10 22:10:26 +00:00
|
|
|
)
|