Commit Graph
1103 Commits
Author SHA1 Message Date
Isaiah Becker-Mayer 99914cf059 Fix clipboard permissions apparent inconsistency (#1509) 2023-01-12 18:02:51 +00:00
Yassine Bounekhla 25177ab6ba Revert "Use sessionStorage for Authentication Bearer Token (#1275)" (#1505) 2023-01-11 14:17:04 -05:00
Michelle Bergquist 9b23ff6aaf capture additional prehog events (#1466) 2023-01-11 10:48:19 -07:00
Yassine Bounekhla 5df7ae9176 Refactor clusters service (#1501)
* refactor clusters service
* remove unused import
2023-01-10 16:12:52 -07:00
Grzegorz Zdunek 53da3a19c4 Connect: Collect usage events (#1451) 2023-01-10 18:29:23 +01:00
matheus 1604aae4ab Add downloads page (#1452) 2023-01-10 14:11:16 -03:00
Rafał Cieślak f2a05c9187 Update Electron to 22.0.0 (#1498) 2023-01-09 10:28:04 +00:00
Lisa Kim 3692fc3295 [Discover] Temp remove db service checker until bug is fixed (#1495)
* Fix bug where matcher label ret val can be string or array
* Add a skip button to skip adding db service (since we removed checker)
2023-01-06 10:44:46 -08:00
matheus 8e8125bfa0 Make trusted cluster screen hidden based on user roles (#1484)
* Make cluster screen role-based. Add methods to access request_access permissions
2023-01-06 12:04:43 +00:00
Michael 26c645a9c4 Update sessionPath value to new endpoint (#1486) 2023-01-05 12:23:46 -06:00
Lisa Kim e38f665de5 [Discover] Add database service checker and various db tweaks (#1481)
* Create ToolTipInfo component
* Update FieldInput to accept optional tool tip content
* Temp fix for story viewing timed out polling state
* Support different informational texts depending on database
* Add database service checker to determine if we can skip next step
* Enable AWS RDS postgres flow
2023-01-05 06:47:22 +00:00
Rafał Cieślak 87ffebf7f8 Make bundled tsh available outside of Connect (#1445)
* Rename assets to build_resources

* Add resources\bin to Path during installation on Windows

* Adjust docs related to USE_SYSTEM_FPM

It turns out you need that for deb packages too.

* Create symlink to bundled tsh on Linux targets

* after-install: Get rid of old symlink removal

* Expand story for QuickInput

* Make command suggestions stay in place

* Align suggestion icons to the top rather than center

This makes it easier to tell when one suggestion ends and another starts.

* Add install & uninstall cmds to command bar

* Exclude new commands from OSes other than macOS

* Implement commands for symlinking tsh
2023-01-04 17:05:47 +00:00
Grzegorz Zdunek 4f037f0630 [Connect] Update protofiles to support authClusterId (#1483) 2023-01-04 15:12:27 +01:00
Rafał Cieślak 40b901a96e Connect: Add missing modal stories, misc modal fixes (#1479)
* Group all modal stories under ModalsHost

* Fix type of DialogClusterConnect, rename DialogBase to DialogNone
2023-01-04 10:15:17 +00:00
Rafał Cieślak de66460718 Notifications: Add showcase story, fix types & icon alignment (#1474) 2023-01-04 09:50:10 +00:00
Lisa Kim a5cbd0a8b7 [Discover] Implement the IAM policy screen (#1459) 2023-01-03 23:59:22 -08:00
Michael 6e63d3658b [Connect] Update protofiles and webapps.e to support suggestedReviewers and requestableRoles (#1449) 2023-01-03 16:36:55 -06:00
Lisa Kim b1457b048b [Discover] Tweaks based on design review and regression fixes (#1433)
* Change placement of info content for SetupAccessWrapper
* Create AnimatedProgressBar
* Allow fixed labels for LabelsCreater
* Fix a regression where events were getting passed
  down to nextStep function on button click (expected number)
* Add matching label rule for DB DownloadScript
* Add a modal loader for CreateDatabase (also add port input field)
    - Add countdown and error to this modal
2023-01-03 20:36:42 +00:00
Steven Martin 987aaf98d3 Include session id in Session Uploaded event (#1475) 2023-01-02 23:20:17 +00:00
Isaiah Becker-Mayer fa3dd60667 awaits the file write and close to avoid data corruption (#1471) 2022-12-30 09:05:25 -08:00
Zac BergquistandIsaiah Becker-Mayer b0ac4cf409 Fix websocket close (#1463)
In #1442 we added a close code when closing websockets, but didn't
properly adhere to the API. When explicitly setting a close code,
you must either use the normal code or use a custom code. Usage of
the standard codes in the 1001-1015 range is reserved for the browser.

Fixes gravitational/teleport#19688

Co-authored-by: Isaiah Becker-Mayer <isaiah@goteleport.com>
2022-12-29 11:23:19 -07:00
Gavin Frazar 601f97ada6 Add dynamodb event formatting (#1461)
* Add dynamodb event formatting
2022-12-29 05:14:24 +00:00
David Janda 4110794acd Display instructions for connecting to a database with passwordless auth 2022-12-23 15:40:58 +00:00
Michael 80ed096f17 [Connect] Use resourcesList in review access request table (#1430) 2022-12-21 19:10:20 -06:00
Rafał Cieślak d171bf73e4 Connect: Use default config in main process fixtures (#1450)
This unbreaks some Connect stories which depend on keyboard shortcuts
config.

If we ever need to change the config in stories or tests, we should
revisit the mock. But it might be enough to call the `set` method on
the config service.
2022-12-21 11:41:07 +00:00
Isaiah Becker-Mayer 16a9862c78 Adds a status code to the closing of the tdp client's websocket (#1442) 2022-12-21 00:01:50 +00:00
Grzegorz Zdunek 41020cc29c Connect: Store installation ID (#1443) 2022-12-20 18:55:12 +01:00
Yassine Bounekhla 6872c9e6d3 Use sessionStorage for Authentication Bearer Token (#1275) 2022-12-16 22:38:26 +00:00
Lisa Kim 843567498a [Discover] Add all db options to db selector (#1441)
* Refactored add db modal to accept a selected database 
  resource and removed drop down selector
* Unimplemented db flow will fallback to the refactored 
   modal
* Enabled self-hosted postgres flow
2022-12-16 19:23:59 +00:00
Ryan Clark 5bab34f3c1 Change Discover navigation & flow to be dynamic from the user's selection (#1379) 2022-12-16 17:49:56 +00:00
Mike Jensen 2250138850 Add Dependency Review Action (#1437)
This action is documented on shared-workflows here: https://github.com/gravitational/shared-workflows/blob/de06c07914b7b42452bd99ef6691325abd2d1c45/.github/workflows/dependency-review.yaml#L1-L9
2022-12-15 17:24:07 +00:00
Grzegorz Zdunek ed135ae92a Connect: Add UsageData dialog (#1404) 2022-12-15 16:38:10 +01:00
Grzegorz Zdunek 5267ae8dba Connect: Add config file (#1403) 2022-12-15 15:50:54 +01:00
Rafał Cieślak 3341950aeb Update electron-builder to 24.0.0-alpha.5 (#1434) 2022-12-15 09:42:02 +00:00
Rafał Cieślak f21ebd1139 Connect: Use typed URIs (#1394)
* Remove ClustersService methods related to apps

I had problems with the new types and apps because I didn't create a
separate type for app URI. So I decided to remove it all because it isn't
used anyway.

* Remove WorkspacesService.getWorkspacesDocumentsServices

This method wasn't used anywhere since #1203 got merged.
2022-12-14 17:19:59 +01:00
Lisa Kim 67e5179300 [Discover] Implement mutual TLS screen (#1418) 2022-12-14 07:14:39 +00:00
Noah Stride bd40cad5cf Add support for InstanceJoin and BotJoin audit events (#1414)
* Add support for InstanceJoin and BotJoin audit events

* Update snapshot and add advice on doing so

* Add newline back to package josn
2022-12-13 21:11:54 +00:00
Yassine Bounekhla 83f5e17e74 Allow for specifying roles when making Resource Access Requests (#1321) 2022-12-09 17:19:53 +00:00
Gavin Frazar b3accec7fa Add subject value to app sessions (#1413)
* Add opaque value

* Rename opaque -> subject
2022-12-09 01:04:41 +00:00
Michelle Bergquist 10c6095eda alert convention matches grpc (#1424) 2022-12-08 15:45:06 -07:00
Rafał Cieślak f700292389 Fix Connect stories (#1422) 2022-12-08 16:59:30 +00:00
Michael cfa7941f34 [Connect] Async autocomplete (#1406) 2022-12-08 10:38:19 -06:00
Matheus 031c51b6b1 Update e ref (#1417) 2022-12-07 11:55:43 +00:00
Lisa Kim a37ccabaf0 [Discover] Database Tweaks and Add ons (#1412)
- Adds db access flags
- Adds missing permission check when users 
  are at create db step
- Add `sign/db` endpoint
- Add new db resource hostname field 
- Allow PingTeleportContext to take in an alternate search term
- Adds expected json fields for db connection tester
2022-12-06 20:08:10 +00:00
Matheus d9690b85f1 Add recoveryCodesEnabled (#1408)
* Add `recoveryCodesEnabled` to config
2022-12-06 18:38:45 +00:00
Rafał Cieślak eafdaf04a4 Connect: Implement tshd event handlers for db cert renewal (#1383)
* tshd events: Wait for listeners before responding

When tshd is sending the relogin event, it needs to be able to know when
the Electron app has finished relogging the user. I wanted to implement
this by simply waiting for the response from the RPC.

I'm so glad we did not use gRPC streams for tshd events as this would be
much harder to implement with streams.

* Return a function from ModalsService.openDialog which closes dialog

With the introduction of important and regular modals, this will help us
close the specific dialog if need arises.

* Make tshd events listeners aware of request cancellation

This will be useful in the upcoming commits. Basically, tshd is going to
ask the Electron app to relogin the user, with a 1 minute timeout.
The Electron app will show a login modal but if the user doesn't submit
it within 1 minute, tshd is going to cancel the request.

In that situation, we need to be able to close the modal.

* Add support for passing reason in DialogClusterConnect

* Add support for important modals

This will let us show the relogin modal on expired cert, even if the user
was using some other modal at that moment.

* Remove title attr from notification text

The user can read more by expanding the notification. The title attribute
persisted even after expanding the notification, making reading it harder.

* Add WindowsManager.forceFocusWindow

* Use IAppContext instead of AppContext

The next commit is going to add a private method to AppContext.
IAppContext is an interface which enables us to pass a mocked version of
AppContext in tests. That mock is not going have that private method,
so any place accepting AppContext wouldn't be able to accept the mocked
AppContext.

Instead, classes & functions should accept IAppContext rather than AppContext.

* Implement handlers for new tshd events

tshd needs to be able to do two things:

- Ask the user to log in again.
- Forward errors from goroutines running gateways to the Electron app
  in form of a notification. Otherwise those error would be visible
  only in the logs.

* Don't restart gateways after logging in

Restarting the gateways on login was a workaround from times where gateways
didn't manage their own certs.

In the new flow, a gateway takes care of refreshing the certs itself
through the middleware passed to alpnproxy.LocalProxy.

syncRootClusterAndRestartClusterGatewaysAndCatchErrors used to call two
functions:

- syncRootClusterAndCatchErrors
- restartClusterGatewaysAndCatchErrors

The second function is no longer necessary, so we can make any place that
was calling syncRootClusterAndRestartClusterGatewaysAndCatchErrors
call just syncRootClusterAndCatchErrors instead.
2022-12-06 12:31:15 +01:00
Mariusz dc0335a4c4 Fix table cell styles and correctly sort time column (#1334)
* Fix table cell styles and correctly sort time column

* add test case for iso date formatting and small fixes

* update sub module commit

* fix mistake with iso dates

* update sub module commit

* move wrapped labels example to main one

* apply new enterprise snapshot commit

* fix styles for big labels

* update enterprise with master

* Make labels single line and add tooltip

* make labels more responsible

* update e repo

* adjust styling of labels to be consitent and refactor table story a bit

* fix key errors and use proper labels in Users list

* remove label ellipsis

* update e repo commit
2022-12-06 08:13:49 +01:00
Michelle Bergquist fd6b974deb capture events from webapps (#1344) 2022-12-05 20:22:30 +00:00
Rafał CieślakandGrzegorz Zdunek 568d4cda28 Connect: Tell fpm to not use symlinks when building the rpm package (#1407)
Co-authored-by: Grzegorz Zdunek <grzegorz.zdunek@goteleport.com>
2022-12-05 13:41:46 +00:00
Rafał Cieślak c6be949085 useAsync: Add support for abort signal (#1377) 2022-12-01 16:47:50 -06:00