Commit Graph
1103 Commits
Author SHA1 Message Date
Zac Bergquist 5831c5f54c Update GitHub connector template (#1157)
We deprecated teams_to_logins in favor of teams_to_roles in v10.
Starting with v11, teams_to_logins will no longer be accepted.
2022-08-29 14:54:49 -06:00
Isaiah Becker-Mayer 77d922c2f4 Adds special handling for CapsLock on MacOS (#1153) 2022-08-29 15:21:37 +00:00
jkaczmarkiewiczandRyan Clark 09f08ab93e Enforce react-testing-library eslint rules (#1150)
* Add `eslint-plugin-{jest-dom,testing-library}`

* Enable `eslint-plugin-{jest-dom,testing-library}` rules

* Run `eslint --fix`

* refactor: apply eslint hints in FormPassword.test.tsx

* refactor: fix test in Table.test.tsx

* refactor: apply eslint hints in Table.test.tsx

* refactor: apply eslint hints in multiplefiles

* refactor: apply eslint hints in multiple files

* refactor: allow direct node access

* test: fix

* refactor: ButtonSso FileldInput

* refactor: FieldSelect

* refactor: FieldSelect

* refactor: MenuAction

* refactor: ShareFeedback

* refactor: FormLogin

* refactor: LabelSelector

* refactor: Welcome

* refactor: useUrlFiltering

* refactor: Login

* refactor: LoginTrait

* refactor: apply eslint hints in multiple files

* refactor: apply eslint hints in multiple files

* refactor: apply eslint hints in MenageDevices

* refactor: Indicator and FieldSelect tests

* refactor: Portal tests

* fix: use @testing-library/react instead of react-test-renderer

* refactor: use find without assertion

* fix: add webapps.e

* refactor: find by instead of get by+wait for

* fix: remove unused waitFor

* test: LoginTrait checkboxes count

* test: SlideTabs check tabs len

Co-authored-by: Ryan Clark <ryan@ryanclark.me>
2022-08-29 10:57:55 +02:00
Ryan Clark 3efe6af34f Allow Webpack's HTTPS options to be set through environment variables (#1151) 2022-08-26 15:49:10 +00:00
Isaiah Becker-Mayer 5e653d5735 adds (preview) to Share Directory menu item (#1148) 2022-08-26 13:47:03 +00:00
Yassine Bounekhla cbcf87b943 Add --request-id flag to connection instructions for Kubes and Databases (#1130) 2022-08-25 20:31:18 +00:00
Isaiah Becker-Mayer 3102293a3b Turn on directory sharing by default (#1141) 2022-08-25 15:38:05 +00:00
Rafał Cieślak cb4ea71a1b Add default value for CONNECT_TSH_BIN_PATH in dev mode (#1143) 2022-08-25 10:35:23 +00:00
Grzegorz Zdunek 8b24c6dec7 Change Linux artifact names (#1142) 2022-08-24 17:23:48 +02:00
Rafał Cieślak cfa0c68841 Add support for Connect builds with Touch ID (#1116) 2022-08-24 16:38:26 +02:00
Ryan Clark d30defe54b Ignore *.story.tsx when type checking during Webpack builds (#1140) 2022-08-23 19:33:41 +01:00
Lisa Kim 06220fe8d0 [Discover] Implement onboarding (#1121)
* Create Onboard component
* Create check access resource endpoint and add cn diagnostic access
* Define a local storage item to persist that user has been notified once
2022-08-23 10:50:50 -07:00
Michelle Bergquist b6af9ea5bd update e ref (#1129) 2022-08-18 15:53:22 -06:00
Grzegorz Zdunek 07032095cc Improve Linux support (#1098) 2022-08-18 18:20:33 +02:00
Jeff Pihach 77df494cc9 Enable no-unused-vars (#1118)
* enable no-unused-vars as an error

* remove unused addApp modal functionality.

* remove unused AddDatabases popup code.

* remove unused variables.
2022-08-18 15:43:31 +00:00
Ryan Clark bae03d6b8f [Discover] Prompt the user on pressing the back button during Discover (#1119) 2022-08-18 09:11:54 +00:00
Jeff Pihach c8bbf06701 Add functional empty states to discover UI (#1106) 2022-08-17 19:52:59 +00:00
Jeff Pihach 8b451185e0 bump e-ref (#1117) 2022-08-17 10:35:13 -06:00
Lisa KimandJeff Pihach e5dff26649 [Discover] Refactor context and top nav user menu dropdown (#1113)
* Define user state getters

* Remove discover context and reuse teleport context

* Export top bar styling

* Sync top nav and user context fetching between Main and Discover

Co-authored-by: Jeff Pihach <hatched@users.noreply.github.com>
2022-08-17 16:00:50 +00:00
Grzegorz Zdunek 7f7ba3d170 Reorganize approach to cluster names (#1086) 2022-08-17 17:42:55 +02:00
Rafał Cieślak b5a19bc3d8 Move electron-builder to a JS file (#1111)
* notarize.js: Use app bundle ID from packager settings

The previous version used to always take build.appId as the app bundle ID.
This commit makes it so that if we overwrite the bundle ID by suppling
target-specific settings, notarize.js will pick up those changes.

* Add macOS category for Teleport Connect

* Remove custom entitlements

electron-builder adds some default ones if not specified and they're just
enough for us. On top of that, by letting electron-builder handle that
we make sure that they'll stay up to date in case they ever need to be
updated due to changes in Electron or Chromium. See [1] for an example.

[1] https://www.electronjs.org/blog/electron-6-0#electron-helper-rendererapp-electron-helper-gpuapp-and-electron-helper-pluginapp

* Refactor getTshBinaryPath and getBinDir into single function

One depended on the other and they both used different logic which was
different for packaged vs non-packaged app. Now they're encapsulated within
a single function that returns both paths.

* Move electron-builder config to a js file

* Remove unused `publish` key from electron-builder config
2022-08-17 08:58:59 +00:00
Lisa Kim 452e49a75b [Discover] Refactor and re-use Main component styling (#1112)
* Refactor and re-use Main component styling (layout and user menu dropdown)
* Add OpenBox icon
* Remove focus attribute on user menu button that leaves it focused 
  after clicking on item
* Remove disabling of discover feature and change icon based on design

* Update e-ref
2022-08-16 20:12:02 +00:00
Isaiah Becker-Mayer a2fe234195 Add warning dialog for unsupported browsers for directory sharing (#1110) 2022-08-15 21:11:46 +00:00
Ryan Clark 1abbf4563a Add an event for when a session recording is accessed (#970) 2022-08-15 18:10:46 +00:00
Isaiah Becker-Mayer 60cfc703a6 SharedDirectoryDeleteRequest and SharedDirectoryDeleteResponse (#1096) 2022-08-14 14:41:07 -04:00
Lisa Kim dd4219eec3 [Discovery] Add Finish Component and Tweaks (#1109)
* Renew web session after updating user traits
* Replace timeout with countdown timer for DownloadScript
* Create Finished Component
* Update TestConnection design and output
2022-08-12 21:39:05 +00:00
Rafał Cieślak e895f1dea2 Remove building native deps from yarn build-term (#1058)
Calling `electron-builder install-app-deps` during `yarn
build-and-package-term` is unnecessary as `electron-builder build`
already does that.

The only time where you'd need to run `electron-builder
install-app-deps` is when you just cloned the repo and would like to run
the dev version of the app without building the prod version.
2022-08-12 11:49:40 +02:00
Grzegorz Zdunek fdafe6de2b Use .ico for Windows (#1097) 2022-08-12 10:20:00 +02:00
Jeff Pihach caba61ae83 style sidebar (#1104) 2022-08-11 18:23:08 +00:00
Roman Tkachenko f056d6e276 Update app access events (#1100) 2022-08-10 14:13:50 -07:00
Jeff Pihach 9c583649df Remove AgentConnect (#1099)
* remove AgentConnect as it's no longer needed.
2022-08-10 17:05:34 +00:00
Lisa Kim 61e1698198 [Discover] Test Connection Boilerplating (#1094) 2022-08-10 16:45:51 +00:00
Isaiah Becker-Mayer 9b5c79b0df SharedDirectoryCreateRequest and SharedDirectoryCreateResponse (#1090) 2022-08-09 23:18:15 +00:00
Grzegorz Zdunek 4d06be9ffe Show Connect icon in better quality (#1091) 2022-08-09 12:23:34 +02:00
Joel 628a53cd70 Add a playback speed selector for Desktop Access recordings (#1072) 2022-08-08 21:24:26 +00:00
Lisa Kim 1983d3fa5c [Discover] Add resource discovery polling and static OS logins (#1088) 2022-08-08 18:38:43 +00:00
Lisa Kim 91afcd3ad2 [Connect] Refactor FormLogin and add passwordless capabilities (#1019)
* Make SSO buttons be more noticeable on focus/hover state
2022-08-05 17:33:47 +00:00
Isaiah Becker-Mayer 2daff008a8 SharedDirectoryMoveResponse (#1074) 2022-08-05 00:29:12 -07:00
Zac Bergquist bcacb9a128 Switch webapps automation to main repo (#1082) 2022-08-03 14:44:25 -06:00
STeve (Xin) Huang 7ebccf0f78 Mark app session with "AWS" (#1050) 2022-08-03 16:21:25 +00:00
Grzegorz Zdunek e9875a6966 Refactor input focusing after transition (#1071) 2022-08-03 18:05:04 +02:00
Grzegorz Zdunek 6d26558262 Move focus to active document (#1070) 2022-08-03 17:04:06 +02:00
Rafał Cieślak 71250017d5 Dockerfile: Check yarn.lock only on CI servers (#1076) 2022-08-03 16:32:03 +02:00
Rafał Cieślak 7836db272d Use git diff to show the difference after yarn install (#1069) 2022-08-03 09:08:04 +00:00
Matheus 675124dbf8 Update e reference to master (#1073) 2022-08-02 17:25:10 -03:00
Michael a787a87275 Add protocol interceptor (#1025)
* request target root validation

* added some example comments and moved conditional

* more commens and removing unneeded userDatapath

* removed casing details and added logging to webhandler

* combined protocol handler functions and unneeded imports

* handled nits

* fixed merge conflict and lint
2022-08-01 13:41:11 -05:00
Rafał Cieślak 952898de8b useDocumentGateway: Default to '' rather than '0' (#1061)
If '0' is provided as the default and the initial call to create a gateway
fails, the user will be presented with an input that says 0. 0 is an invalid
value though that this input will not accept.

An empty string, on the other hand, is a perfectly valid value (the input
doesn't have the `required` attribute). In that scenario, the backend will
default the value to '0' and pick a random port.
2022-08-01 17:48:09 +02:00
Andrew LeFevre 01c26fc3d7 Add SFTP audit events (#968)
* add SFTP audit events

* added error parameter to SFTP events
2022-07-29 15:11:06 +00:00
Grzegorz ZdunekandRafał Cieślak bd4866d5a4 Add ability to change port for db proxy (#900)
* Refactor `DocumentGateway`

* Update protobuf files

* Do not hide port input on reconnect

* Update port of gateway connection when doc gets updated

Co-authored-by: Rafał Cieślak <rafal.cieslak@goteleport.com>
2022-07-29 11:09:21 +02:00
Rafał Cieślak ae51c87446 CI: Fail if an update to yarn.lock is needed (#1047)
* CI: Fail if an update to yarn.lock is needed

* Clean up the lockfile
2022-07-29 08:52:48 +00:00