Commit Graph
1976 Commits
Author SHA1 Message Date
Michael 265b58cb7e Apply new logos based on license (#41294) 2024-05-15 19:09:33 +00:00
Brian Joerger 000679cdca Add abortSignal to getWebauthnResponse. (#41568) 2024-05-15 17:46:26 +00:00
Bartosz Leper 7c55bc3fe0 Update the account screen loading state (#41481)
- Don't show state pills until MFA devices are loaded
- Actually show the spinner on the passkey list
- Fix the test flakiness
2024-05-15 14:06:13 +00:00
Bartosz Leper 1297b5fd26 Prepare for moving the RecoveryCodes component to enterprise (#41464)
Allow the call site to specify component that will be displayed in the welcome
flow and add some icons required to implement the new UI on the Enterprise
side.
2024-05-15 09:34:49 +00:00
Michael 50d56b28b4 Web: add bypass for flaky test (#41551) 2024-05-14 22:33:26 +00:00
Michael 6b0797adba Update shared access requests components for e changes (#41333) 2024-05-14 17:55:57 +00:00
Grzegorz Zdunek 238b6e4954 Update Electron to 30.0.3 and Node.js to 20.13.0 (#41404)
* Update `electron` to 30.0.3

* Update Node.js to 20.13.0
2024-05-14 09:01:19 +00:00
Trent Clarke fbd0091b9b SCIM only okta (#41125)
* Changes required for implementing a standalone (i.e. without Okta Sync compatibility) SCIM service in teleport.e.

Includes:

 * `tctl plugins delete` and `tctl plugins create scim` tooling
 * Moving some constants from teleport.e to OSS
 * Protobuf message types for standalone SCIM settings
 * UI updates for rendering SCIM users

Changelog: Added plugin management tooling to tctl

* Adds validation to SCIM settigs

* Linter fixup

* linter appeasement
2024-05-14 08:36:11 +00:00
Przemko Robakowski bb1a287817 Fix "The source data has been detached" error (#41492) 2024-05-13 21:14:27 +00:00
Justinas Stankevičius 46fcfe4954 Fix integration filtering in AwsAccount selector (#41329) 2024-05-13 13:15:57 +00:00
Marco Dinis be29fd972c Always show the account id when listing IAM roles in AWS Apps (#41228) 2024-05-13 10:48:00 +00:00
Grzegorz Zdunek 0a26cdc5ef Fetch resources using ListUnifiedResources in the search bar (#41357)
* Get rid of `clusters.App` type

We shouldn't have added it, `addrWithProtocol` is calculated from other `tsh.App` properties, so we can just do it when needed.
This type prevents assigning `listUnifiedResources` response to the type returned from `searchResources`.
Also, this change will make setting up mocks and tests simpler.

* Remove resource kind from `ResourceSearchError`

We will fetch all resources for a cluster in a single request, so it is no longer needed.

* Replace separate calls for resources with `listUnifiedResources`

* In preview mode, fetch 20 items instead of 5

Previously we fetched 5 items x 4 resource kinds.

* Move `getAppAddrWithProtocol` to `services/tshd/app.ts`

* Extract `MAX_RANKED_RESULTS`
2024-05-10 07:26:24 +00:00
Lisa Kim bc115eb21e Web: Add unto flakey test and throws console.error (#41390) 2024-05-09 20:06:05 +00:00
Rafał Cieślak 1e9dc9044c Fail when JS test uses console.error or console.warn (#41252) 2024-05-09 14:44:57 +00:00
Lisa Kim e2f6f104fb WebDiscover: Fix broken finish page for SSO user on auto discover (#41293)
* WebDiscover: Fix broken finish page for SSO user on auto discover

* WebDiscover: clarify SSO users can't add traits
2024-05-08 18:33:08 +00:00
Steven MartinandLisa Kim e42ee4d28b WebDiscover: displays user or db name holder instead of wildcards for tsh db connect suggestion (#41314)
* displays user or db name holder instead of wildcards for tsh db connect suggestion

* match other examples for user and database name

* correct tsh db command with selected db name

* Tweak and add test

---------

Co-authored-by: Lisa Kim <lisa@goteleport.com>
2024-05-08 17:01:35 +00:00
Lisa Kim 3a88c153b5 WebDiscover: Add custom input fields for database test connection with wildcard (#40931)
* WebDiscover: Add custom input fields for database test connection with asterisks

* Add specific validation rule and add tests

* Update database fixture for testing
2024-05-08 00:58:03 +00:00
Gavin Frazar ed7d0d223e support gcloud spanner in tsh and web UI (#41129)
* add spanner to tsh and teleterm

* handle spanner events in web ui

* update web audit events test snapshot

* customize web ui connect for spanner

* update ConnectDialog snapshot
2024-05-07 23:17:03 +00:00
Lisa Kim 06e2aec3dc WebDiscover: Fix same route link not updating component (#41283) 2024-05-07 22:26:34 +00:00
Grzegorz Zdunek bf6a52ee59 Generate bigint for int64 proto type in Connect (#41250)
* Use bigint representation for int64 types

It's a protobuf-ts default, using number is not recommended.
JavaScript numbers do not cover the range of all possible int64 values.

* Use bigint where needed

* Replace deprecated tshd types

* Add custom serialization for bigint

* Change `LoginPasswordlessCredentialResponse` index field to int32

* Use int32 in tshd check too

* Revert "Change `LoginPasswordlessCredentialResponse` index field to int32"

This reverts commit 788e770681.

Revert "Use int32 in tshd check too"

This reverts commit 6a9e6a0c87.
2024-05-07 13:16:24 +00:00
Isaiah Becker-Mayer b416859073 Ignores resizes when a desktop has screen_size set (#41198)
* Ignores resizes when a desktop has `screen_size` set

`screen_size` is meant to be a static override of the screen size,
however this property was mistakenly lost when
https://github.com/gravitational/teleport/pull/39819 was merged.

This commit restores the behavior of `screen_size` by ignoring resizes
when it is set.

* hasSizeOverride and //nolint
2024-05-06 20:35:00 +00:00
Isaiah Becker-Mayer 81eb6f5f65 Removes unused dependencies, cleans up code comments (#41028) 2024-05-06 18:26:53 +00:00
Grzegorz Zdunek 089c32094f Remove e-teleterm leftovers (#41208)
* Remove `e-teleterm` leftovers

* Fix tests
2024-05-06 13:58:53 +00:00
Michael 05ec1fdbc3 Fix DeviceTrustWeb Connect double window open (#41187)
This PR fixes a bug introduced when adding the "window.open" feature on
cancel. It would run the 'close' method (which included an extra open)
on a successful authorize. This separates the close and cancel methods
and calls them correctly now. The desired behavior is:
1. on close -> dialog closes and open window to /web
2. on authorize -> dialog closes and open window to /webconfirm
2024-05-03 16:31:42 +00:00
Michael bd78044426 Export ClusterResources (#41171) 2024-05-03 16:15:41 +00:00
Lisa Kim 5b49e573e2 Web: pass react transition states to Dialog.jsx (#41176) 2024-05-03 15:45:25 +00:00
Bartosz Leper c341bd2dc5 Add authentication method status indicators to the account settings page (#40904)
* Add authentication method status indicators to the account settings page

* Review

* Review
2024-05-02 17:00:15 +00:00
Michael 80f314a550 Add DisableIncludeRequestableRequests to UIConfig (#41064) 2024-05-02 16:53:13 +00:00
Lisa Kim 2af98c6db7 Web: Modify components, define new types for yaml parse/stringify endpoints (#40974)
* Web: update SlideTabs to render spinner depending on condition

* Web: Add async version of FieldSelectCreatable

* Web: Allow modifying fetched resources with useKeyBasedPagination

* Web: Add yaml parse/stringify api endpoints and types

* Web: Allow input search bgColor to take on parents bgColor

* Address CRs

* Update snaps and test
2024-05-02 13:00:01 +00:00
Michael 5170df529a Forward to web if device trust authorize cancelled (#41079)
If a user decides to not authorize their session, the cancel button will
now send them to /web in the browser. This will allow the user to
continue using the web UI but without device trust enabled (similar to
selecting 'continue without device trust' in the passthrough page)
2024-05-01 20:43:47 +00:00
Lisa Kim 00d8addbfc Web: create js version of parsing string with double quotes and commas (#41086) 2024-05-01 17:05:26 +00:00
Michael f97e82e73e Add includeRequestable param to unified params (#41075) 2024-05-01 16:08:21 +00:00
Steven Martin e2d6ea1cf4 update in webui references to azure ad to msft entra id (#41090) 2024-05-01 15:24:36 +00:00
Yassine Bounekhla 11cafbd34c add support for enterprise-only notifications (#40264) 2024-05-01 13:23:37 +00:00
Michael 15109b9691 Add DeviceTrust badge when session upgraded (#41029) 2024-04-30 21:44:52 +00:00
Yassine Bounekhla d281cf47fa add notifications list component (#40263) 2024-04-30 20:29:32 +00:00
Grzegorz Zdunek 3ee2c51564 Move the shared part of access requests UI to OSS (#41036)
* Move `teleport.e/AccessRequests` to `shared/components/AccessRequests`

The last commit from teleport.e that includes the original files: gravitational/teleport.e@5ca6881e29

* Move `teleport.e/services/accessRequests` to `shared/services/AccessRequests`

* Move `teleterm.e/ui` to `teleterm/ui`

* `make fix-license`

* Fix imports

* Run prettier and eslint

* Rename stories

* Remove ts-ignore comments

`accessRequestsService.test.ts` was refactored slightly,
we don't need assumed requests there at all.
2024-04-30 18:08:38 +00:00
ddbd9eefed Replace isTeam with new flags (#39794)
* Add new flags to modules

* Add deprecated comments to isTeam

* Make support flag an enum

* Add a TODO instead of deprecating flag right away

Co-authored-by: Alan Parra <alan.parra@goteleport.com>

* Add gogoproto.jsontag to new fields

* remove meaning from enum zero value

* Reuse proto.SupportType instead of suping

* Replace isTeam for new flags in web app

* Update proto file: rename enum 0 value to unspecified;fix json tag casing

* Reuse proto file instead of aliasing it

* undo removing method by accident

* Add MobileDeviceManagement field to web config struct

* Improve comments

* Fix tests

* Simplify lockedFeatures object

* Include JoinActiveSessions in the web config object

* Remove more instances of isTeam

* Apply suggestions from code review - improve comments

Co-authored-by: Michelle Bergquist <11967646+michellescripts@users.noreply.github.com>

* Use consistent comments to remove isTeam

* Update godocs comments

* Revert removign `isTeam` from stories it still should

* Fix godoc typo

Co-authored-by: Michelle Bergquist <11967646+michellescripts@users.noreply.github.com>

---------

Co-authored-by: Alan Parra <alan.parra@goteleport.com>
Co-authored-by: Michelle Bergquist <11967646+michellescripts@users.noreply.github.com>
2024-04-30 11:54:17 +00:00
Isaiah Becker-MayerandPrzemko Robakowski f2a51ed929 Resize (#39819)
* Resize

* ???

* ???

* Fixes to compile

* Updates to latest IronRDP with dvc fix, cleans up some of the debug code

* Hooks up resize listener on the client and sends changes as ClientScreenSpecs to the backend. Currently just gets logged in the WDS

* Handles the new DeactivateAll ProcessorOutput

* hooks up client_write_screen_resize

* Renames tdp Connection Initialized to Connection Activated
This message is now used both after the connection is first established
and after the connection executes a Deactivation-Reactivation Sequence.

This fits snugly in to our existing message flow and ensures that the fast
path processor is updated appropriately whenever a Deactivation-Reactivation
Sequence is executed due to a resize event.

* Switch monitor orientation based on width/height

* remove superfluous canvas size sync

* Updates to the most up-to-date hash for IronRDP (not merged to master). Screen resize works in this commit, though its still the case that if you do so before the channel is announced by the rdp server, it will end the session

* Updates to the most recent hash for IronRDP feat/dynamic-resize

* Adds a mechanism to withhold sending resize requests to the RDP server until we're alerted by a new callback mechanism of the DisplayControlClient that the server has sent us its capabilities. This prevents an error where we send a resize before this event, which results either in an RDP error (if the channel is not opened) or a dropped event (if the server has not sent its capabilities yet).

* Refactoring after update to the tip of https://github.com/Devolutions/IronRDP/pull/424

* Adds windowOnResize to story

* adds Determine Toolchain Versions and cache paths and Print versions steps to os-compatibility-test.yaml

* fixes debug log formatting

* Updates to local IronRDP and later IronRDP api

* updates to IronRDP latest rev on https://github.com/Devolutions/IronRDP/pull/430

* reverting mistaken changes

* throttle -> debounce and naming changes

* js renamings

* updates to IronRDP master

---------

Co-authored-by: Przemko Robakowski <przemko.robakowski@goteleport.com>
2024-04-29 20:14:03 +00:00
Rafał Cieślak a6ccb5ebf5 Capture access_through in protocol use events in Connect (#40995)
* Update prehog.ConnectProtocolUseEvent with access_through

* Add accessThrough as extra arg to captureProtocolUse
2024-04-29 15:44:51 +00:00
Lisa Kim fea1e43f4c Web: Add a quotas info for ec2 eice flow (#40910) 2024-04-26 17:34:16 +00:00
Michael 0051a2b563 Open authorize device popup with deeplink (#40802) 2024-04-26 15:36:32 +00:00
Rafał Cieślak 15bbb9c135 Use distinct styles for off and errors states in connection list (#40901)
* Fix error case in MockedUnaryCall

* Use distinct styles for off and errors states in connection list
2024-04-26 09:57:52 +00:00
Ryan ClarkandJakub Nyckowski 37d73247ed Remove the Assist UI (#40813)
* Remove Assist command execution and chat feature

The changes remove tests and related code for command execution in the assist package and web command handling.

* Remove the Assist UI

---------

Co-authored-by: Jakub Nyckowski <jakub.nyckowski@goteleport.com>
2024-04-26 09:39:09 +00:00
Rafał Cieślak e12c54ba8d Implement autostart for VNet in Connect (#40900)
* Refactor tests that depended on workspace service state

Those tests explicitly set the entire WorkspacesService state and would
have to be modified each time we added something to the state.

There's no reason for them to know about WorkspacesService state, so this
commit refactors them out of that knowledge.

* Add useAppState

* Automatically start VNet

* subscribeWithSelector: Return unsubscribe function

The unsubscribe function will be needed in order to comply with
useSyncExternalStore API in the next commit.

* Add isInitialized to WorkspacesService

* Add useImmutableStore

* Wait for workspace init before VNet autostart

* Rename useAppState to usePersistedState

* Rename useImmutableStore to useStoreSelector
2024-04-26 09:35:50 +00:00
Andrew Burke cb8e50eba8 Improve error message for SSO logins with hardware keys (#40641)
This change updates the error message shown when a user logs in
to tsh with SSO and requeres hardware key input.
2024-04-25 17:14:35 +00:00
Marco André DinisandRafał Cieślak 774b54ae5c Add AWS AccountID to IAM Roles in AWS App Access (#40657)
* Add AWS AccountID to IAM Roles in AWS App Access

* add story

* Use named export

---------

Co-authored-by: Rafał Cieślak <rafal.cieslak@goteleport.com>
2024-04-25 07:33:59 +00:00
Przemko Robakowski 59664c8b4c Fix Windows pointer (#40639)
* Fix Windows pointer

* Use default flags

* comment

* update IronRDP, enable shadow

* Revert "update IronRDP, enable shadow"

This reverts commit 0d7acf353a.

* Update IronRDP
2024-04-24 21:34:22 +00:00
Michael 879de3a41d Open Connect if DeviceTrustWeb token received (#40803) 2024-04-24 17:58:37 +00:00
Michael 420d51d580 Add AuthenticateWebService deeplink in Connect (#40420) 2024-04-24 16:53:35 +00:00