Commit Graph
1103 Commits
Author SHA1 Message Date
Grzegorz Zdunek 985bda8d58 Assumed roles bar improvements (#1274) 2022-10-21 15:12:09 +02:00
Rafał Cieślak d9ca0fd94e Connect: Adjust size of sync button & search input (#1280)
The size of the sync button was changed to match the refresh button of access requests (https://github.com/gravitational/webapps.e/pull/396#discussion_r982842537). The change was reverted in #1269.

Instead of making the sync button to be of custom height, I think we should just change the size of the search input.

It also has the added bonus of making the sync and refresh button be on a matching height on both tabs, so they don't shift when switching between access requests and cluster resources.
2022-10-21 08:24:40 +00:00
Michael 18c2cf6141 [Connect] Conditionally render Access Request navigation menu (#1273)
The Access Requests navigation menu should now only show when a root cluster's
auth server has Advanced Workflows feature enabled.
2022-10-20 15:23:18 -05:00
Rafał CieślakandMichael 04592a8f1e Connect: Accommodate for making gRPC server creds in shared process (#1220)
* Add comment to resolveNetworkAddress

* Log errors during boot of React app

* Connect: Accommodate for making gRPC server creds in shared process

* Adjust timeout for resolveNetworkAddress

Some of the timeouts in preload.ts, the shared process and tshd are set
to 10s. If the timeout to resolve the network address is lower or equal
to that, those timeout won't have the chance kick in.

Hence setting the timeout to a slightly larger value.

* makeCert: Add subjectAltName to certs

Without this, the cert generated by makeCert was failing when loaded
in Go as the gRPC server cert. The error message was:

    x509: certificate relies on legacy Common Name field, use SANs instead

See:

* https://stackoverflow.com/a/31143907/742872
* Search for "subjectAltName" https://github.com/digitalbazaar/forge/blob/2bb97afb5058285ef09bcf1d04d6bd6b87cffd58/README.md

* Fix lint issues

* Reword comment

Co-authored-by: Michael <michael.myers@goteleport.com>

* Remove unused imports

Co-authored-by: Michael <michael.myers@goteleport.com>
2022-10-20 12:38:39 +02:00
Grzegorz Zdunek 972353f11a Connect testing fixes (#1269) 2022-10-17 11:18:56 +02:00
Yassine Bounekhla e58f3cad5a Update support ticket url (#1257) 2022-10-14 17:08:23 -04:00
Isaiah Becker-Mayer d29d69bb29 Fixes clipboard sync (#1250)
* Now that clipboard.readText() requires transient user activation
(see https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/readText#security),
our system of syncing the local clipboard to remote onfocus and onmouseenter
no longer works, since those events don't necessarily imply a transient event.

With this change, we instead sendLocalClipboardToRemote onMouseDown and onKeyDown,
which should guarantee that the sync is always within a transient event.
Because the user must preform at least one of these actions in order to
initiate a paste, the clipboard should appear to always be in sync from
their perspective.

* eliminates the entire useClipboard hook and its surrounding state, which
was a big rube goldberg machine ensuring that
1. If a user had clipboard sharing enabled by RBAC
2. they were on chrome and
3. they had clipboard permissions allowed

If 1 was true, but either of 2 or 3 wasn’t, we blocked the UI and forced
them to correct it. That was also the mechanism that caused the clipboard
permissions dialog to pop up at the beginning of the session if clipboard
access wasn’t "granted".

Now the UX is much simpler: if a user has clipboard sharing allowed by RBAC,
and they’re on Chrome, clipboard sharing is enabled. If either of those is false,
clipboard sharing is disabled. If a user’s clipboard permissions are in
"prompt" state (aka neither "granted" nor "denied"), the first time they
try to copy/cut something on the remote, or have something in their clipboard
locally and click a mouse button or press a key, the browser prompt asking
for clipboard permissions will show up.
2022-10-13 20:02:01 +00:00
Lisa Kim d8b39dab50 CatchError and Discover related feature extensions (#1249)
* Refactor CatchError component
- add retry and providing custom fallback funcs

* Make existing discover work resusable elsewhere
- Pull out reusable files to Share/*
- Add custom timeout messages and margin top styles for Timeout
- Allow fetching/pinging for services based on type of service for PingTeleportContext
- JoinTokenContext
  - allow fetching for tokens based on type of service
  - fix a bug that uses cached token, when coming back to the flow
2022-10-13 10:43:55 -07:00
Grzegorz Zdunek c290483bfd Do not keep assumed requests in app_state.json (#1254) 2022-10-13 12:25:21 +02:00
MichaelandGrzegorz Zdunek fe004fc158 [Connect] Add Document Access Requests (#1203)
* init webapps.e ref

* update web.e

* added imported components

* udpated to correct imported types

* webapps.e update

* readme update and lint fix

* removed extra console logs

* sub head fix for webe

* reattached webape head

* fixed tests

* added access request change confirm dialog

* null check

* webappe

* count to accessRequestSerivce, import/export names, small fixes

* fixed imports and createrequest params

* updated imports from removed containers in teleterm-e

* optional params for reuse outside of ClusterLogout

* webapps.e ref update

* update webapps.e ref

* webapps.e ref update

* webapps.e ref update and navigation item update

* webapps.e update

* align sync button center to match access request size

* added accessRequestsSerice tests

* updating webapps.e

* created accessRequests object on workspace type and cleanup

* added requestId to documentaccessrequest type and webapps.e update

* protobuf updates changing created/expires from string to timestamppb

* webappse update and review feedback

* updated protos with comments

* changing delete/review access request responses to void

* updated getaccessrequests to not include ID

* protobuf updates

* webappse update

* update to resource tables styles

* update to standard access_request_id field in RPCs

* webappse upddate

* updated tests and added types

* updated webappse

* clusterService method for getrequestableroles, retryWithRelogin for fetch, webappse update

* webappse update

* story fixes

* added kubes support to tsh

* proto files

* update webappse

* Provide `WorkspaceContext` for documents in each workspace

* updating webappse

* webappse update

* accessrequestservice fix for resoruces

* updated webapps.e after master merge

* removed extra data from persisted state for assumed access requests

* update webappse

* protobuf files

* lint fixes

* adding getWorkspaces stub to fix tests

* webappse update

* webappse snapshots update

* protobuf updates

Co-authored-by: Grzegorz Zdunek <grzegorz.zdunek@goteleport.com>
2022-10-11 18:53:57 -05:00
Ryan Clark f975d40417 Fix the proxying logic for localhost (#1243) 2022-10-11 20:22:41 +00:00
Ryan Clark d0fedf0fdf Add spacing between the text and generate button (#1247) 2022-10-11 16:22:07 +00:00
Ryan Clark ae1fea7945 [Discover] Update the Desktop animation to output a v3 config (#1205) 2022-10-11 16:11:07 +00:00
Marek Smoliński 8572de4715 Fix SQLServer and Cassandra audit log format (#1242) 2022-10-11 12:06:23 +02:00
Lisa Kim 6b57f55795 Update e-ref (#1246) 2022-10-10 19:05:32 +00:00
Grzegorz Zdunek e16340c5fe Add file transfer to Connect (#1225) 2022-10-10 18:38:42 +02:00
Ryan Clark 08d8624878 Improve proxying logic to allow for application access to work (#1235) 2022-10-10 15:20:38 +00:00
Marek Smoliński 4a7547f8ff Add support for Cassandra audit events (#1240) 2022-10-10 11:43:56 +02:00
Lisa Kim c6d624f6ad [Teleport] Create Tabs Component(#1234) 2022-10-05 15:00:42 +00:00
Zac Bergquist 3b292f5285 Fix copy for SCP upload audit event (#1233) 2022-10-04 22:57:18 -06:00
Isaiah Becker-Mayer d7b52ebc23 TDP PNG2 (#1230) 2022-10-04 17:21:11 +00:00
Steven Martin 9251273475 Handles connect and disconnect audits for database servers where database name is not given. (#1226) 2022-10-01 20:25:41 -06:00
Lisa Kim 1e4bf2c666 Create TextSelectCopyMulti that allows multi lines and adding comments (#1194)
* Remove deprecated use of exec for copying to clipboard
* Rename existing Tabs to TabIcon
* Add and use @react/user-event library for testing clipboard
2022-09-30 16:55:05 +00:00
Alex McGrath 07d6c298d5 Add audit log changes for SSM executions (#1192)
* Add audit log changes for SSM executions

* prettier

* copy changes
2022-09-29 13:44:53 +01:00
Ryan Clark f2ab192947 Add WEBPACK_PORT (#1215) 2022-09-28 12:05:12 +00:00
Mike Wilson a2af322bb1 Add application CRUD audit events.
Application audit events for CRUD events are now recognized in the frontend
as opposed to being displayed as 'unknown.'

This will address https://github.com/gravitational/teleport/issues/9490.
2022-09-27 16:21:55 -04:00
Krzysztof Skrzętnicki 6fc4108a47 Elasticsearch audit events. (#1213) 2022-09-27 20:55:42 +02:00
Ryan Clark 97b1f862ae Update Hot Reloading to work under more conditions, add WEBPACK_PORT (#1210) 2022-09-27 12:55:43 +00:00
Ryan Clark 5c71c89631 Create a FeatureContext to replace passing features as a prop (#1211)
* Move features to be passed down to `Teleport` when it's being wrapped by enterprise
* Make features optional as they default to OSS
2022-09-27 01:33:44 +00:00
Ryan Clark 7a71803325 Add caching to Webpack during development (#1207) 2022-09-26 21:50:05 +01:00
Tiago Silva 6d8e6e088d Add events for create, update and delete kube_clusters (#1202)
* Add events for create, update and delete `kube_clusters`

Add support for `kube_cluster` audit events:
- `kube.create`
- `kube.update`
- `kube.delete`

From  gravitational/teleport#16276
2022-09-26 21:31:43 +01:00
Ryan Clark d33c02aad5 Remove raw-loader completely (#1206) 2022-09-26 19:57:45 +00:00
Ryan Clark 503d099edb [Discover] Desktop Setup Flow (#1172) 2022-09-23 22:22:14 +00:00
Grzegorz Zdunek 8e544c6039 Minor kube fixes (#1195) 2022-09-23 10:24:26 +02:00
Michelle Bergquist 057e8ff9bc add cluster alert links to UX (#1193) 2022-09-21 10:09:26 -06:00
Yassine Bounekhla 3751fdbfc8 Add type-check step to CI (#1197) 2022-09-20 14:03:37 -04:00
Yassine Bounekhla 04f07f1d51 Remove auto-refresh for Active Sessions list (#1196) 2022-09-20 17:44:08 +00:00
Grzegorz Zdunek e7236f9d70 Add kube support (#1191) 2022-09-19 12:26:15 +02:00
Ryan Clark 1e06c89c64 Fix double scroll bars, make everything have min width 1250px (#1178) 2022-09-14 18:29:26 +01:00
Jeff Pihach 37e2382cc1 Add BannerList and Banner components to display cluster alerts on load (#1169)
* Add BannerList and Banner components.
2022-09-12 18:14:08 +00:00
Lisa Kim 0ce3783dc0 [Discover] Check permission during the flow step instead of at beginning (#1185)
* Don't show prompt when clicking to go to discover when already there
* Remove sidenav titles for unfinished flows
* Copy change and show example rules and logins as YAML editor
2022-09-09 15:23:20 +00:00
Steven MartinandLisa Kim 81e66d4923 Use node server_name of addr.local in audit log display (#1089)
* extend page size for audit log story

Co-authored-by: Lisa Kim <lisa@goteleport.com>
2022-09-08 13:10:41 -07:00
Grzegorz Zdunek bd667fa398 Change DEB artifact name (#1183) 2022-09-07 14:50:50 +02:00
Lisa Kim c6c3040656 [Discover] Bug fix appending index number to login trait names (#1180) 2022-09-06 17:50:32 +00:00
Lisa Kim 0d5a961e6f [Discover] User menu checkmark, alert bubble, tweaks (#1173)
* Update diagnostic json field values
* Fix bugs
- React bug about requiring unique keys (TestConnection traces)
- Regression bug in LoginTrait where if you have a login name "root"
  it does not render the checkbox. Solved by making the "id" more
  unique by appending the index number to login names.
* Apply backend field name change for updating user traits with renewing 
   session
* Gracefully handle network error which allows user to refetch failure points
* Update styling to match figma (though button stays top of traces
  to avoid moving of button when re-testing)
2022-09-06 07:18:56 -07:00
Isaiah Becker-Mayer b887b09d31 Adds is_empty to the File System Object (#1174) 2022-09-01 12:23:21 -04:00
Rafał Cieślak 524c86719c Remove leftover Connect proto file, update shared process protos (#1162) 2022-08-31 10:45:29 +00:00
Ryan Clark c04f6ee39f [Discover] Add permissions checks and available Teleport versions (#1126) 2022-08-30 21:06:41 +01:00
Lisa Kim 8f8d5ccad6 [Discover] Update copy and design tweaks (#1131) 2022-08-30 19:46:12 +00:00
Rafał Cieślak 656e03e991 Update generated protos for Connect (#1155) 2022-08-30 09:46:29 +00:00