Commit graph

36 commits

Author SHA1 Message Date
Isaiah Becker-Mayer f8057226f6
Fix vite development for desktop websocket endpoint (#23815)
* sets changeOrigin to false

* fixes README
2023-03-30 16:39:25 +00:00
Ryan Clark 471a82bd6f
Move teleport over to Vite (#21168) 2023-03-21 18:01:53 +00:00
Jeff Pihach 0f21a8b8e3
Resolve issues to enable passing CI tests. (#20582)
* Move lint commands to root package.json

* Correctly resolve e-teleport paths.

* Fix prettier issues.

* move eslint configuration files to root.

* resolve lint errors.
2023-01-23 22:06:56 +00:00
Rafał Cieślak b94edcf450
Move tsconfig.json to root dir, remove web Makefile and Dockerfile (#20399)
* Move tsconfig.json to root dir

At the moment, it looks like the TS language server has problems with
recognizing imports when editing files inside e/web.

I figured this is probably because tsconfig.json is in web, so the lang
server doesn't recognize it when editing files from e/web.

* Remove web/Dockerfile and web/Makefile

* Misc updates to readme

* Fix links in readme
2023-01-23 11:50:16 +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
Ryan Clark 83aa06791f Code split routes, reduce the initial bundle size + loading times (#1277) 2022-11-15 10:15:06 +00:00
Ryan Clark 113a594f19 Disable hostname comparison when proxying by default, add feature flag (#1303) 2022-11-09 14:55:51 +00:00
Michael 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 f2ab192947 Add WEBPACK_PORT (#1215) 2022-09-28 12:05:12 +00:00
Ryan Clark 7a71803325 Add caching to Webpack during development (#1207) 2022-09-26 21:50:05 +01:00
Ryan Clark 3efe6af34f Allow Webpack's HTTPS options to be set through environment variables (#1151) 2022-08-26 15:49:10 +00:00
Ryan Clark a35e7efbf3 Add source maps and type checking to Webpack, config improvements (#985) 2022-07-25 16:57:07 +01:00
Matheus c6d72268ed Add section to README about audit events (#1022) 2022-07-22 15:37:10 +00:00
Isaiah Becker-Mayer cd17fa16d8 Updates Babel build targets (#977) 2022-07-15 15:26:31 +00:00
Isaiah Becker-Mayer 8606bf71d4 changes 0.0.0.0 to 127.0.0.1 (#905) 2022-06-22 16:58:56 -04:00
Rafał Cieślak 901fa87d21 Mention Teleport Connect in the README (#888)
* Mention Teleport Connect in the README

Also, make a better distinction about which sections are Web UI related.

* Update the command for copying protogen files

This way you don't have to leave the webapps dir when developing Connect.
2022-06-15 15:01:26 +00:00
Lisa Kim d343e5618c Remove u2f components and logic (#711)
* Also updates e-ref
2022-04-04 17:56:49 -07:00
Isaiah Becker-Mayer 099c4dda6c desktop per session mfa (#613)
* adding desktopPOC player

* updates to proper playback test websocket endpoint

* Changes EventQuery to take an EventCode in order to facilitate more comprehensible typing for AuditService.fetchEvents. Updates RecordingsService to use the general events search endpoint in order to easily add DESKTOP_SESSION_ENDED events to the response alongside regular [ssh] SESSION_END events.

* Adds logic for distinguishing between session types and displaying appropriate icon

* Deleting DesktopPlayerPOC which should not have been on this branch

* Breaks the handling of the two types of end events passed into makeRecording into two separate functions. Also types RecordingDescription

* touchups

* yarn tsc fixes

* updates storybook

* updating snapshot

* removing unused import

* adds skeleton for distinguishing between ssh and desktop recordings

* Testing connection of the playerClient

* Puts TdpClientCanvas into the DesktopPlayer

* adds toggle to PlayerClient

* small fixes

* adds an onerror to proxyServer so that websocket closures don't shut down the webpack-dev-server

* updates to match backend

* shifting preventDefaults out of TdpClientCanvas since that isn't always desired (for example with the desktop player)

* Adds a ProgressBarDesktop component and makes it respond to the new PlayerClientEvent.TOGGLE_PLAY_PAUSE event emitted by the PlayerClient

* Adds support for decoding client screen spec and using it to determine canvas size during playback. requires some code cleanup

* Some significant refactoring, DesktopSession and DesktopPlayer now both up to par in terms of function. Requires further refactoring for storybook.

* fixes storybook

* fixes codec test

* fixing build warnings

* reverts audit log changes

* removes unused type Region

* decodes the jsons that are now sent over websocket

* replace fqdm with fqdn

* Stops re-adding TOGGLE_PLAY_PAUSE listener each rerender and adds cleanup for that listener

* Make naming more precise

* removing unnecessary logging and fixing a type

* adding todo

* makes recordingType the more appropriate query param

* change let to const

* tiny fixes

* reverting

* The progress bar now moves with the recording timing

* Makes the rest of TdpClientCanvas props optional and wraps relevant logic in relevant if statements where necessary. Gets rid of ugly doNothing

* fixes event listener cleanup

* removes unnecessary prop

* Adds standard error handling display and a storybook for it

* moving detailed TODO to an issue

* changing toHuman to remove brittle reliance on iso string

* removes base64-arraybuffer, refactors base64url.ts into the more general base64.ts and uses it for base64 to array buffer translation

* fixes Storybook

* fixes validDurationMs

* Copies in base64url-arraybuffer library and modifies it for our purposes

* putting import statements in their proper place

* removes (preview) from desktop titles

* adds a hook for confirming the clipboard permissions are either granted or denied

* Moves Base64urlString type to where its needed

* removes DS_Store

* addresses code review

* simplifies and fixes durationMs logic

* adds clipboard to acl

* moves the teleport ctx init() call to the context provider, to ensure that consumers always have an initiated context

* Updates useClipboard and adds clipboard state management to DesktopSession

* Adds clipboard message

* adds code for sending local clipboard to remote over TDP

* adds clipboard decoding and syncronization with the local clipboard

* removes deprecated encodeClipboard

* Updates Main story to account for possibility of TeleportContextProvider processing the ctx.init() or ctx.init() failing

* Updates test to use new context provider

* fixes existing storybooks

* Simplifies DesktopSession rendering logic and adds a test for clipboard error

* Adds test based on storybook

* fixing comments and errors

* renaming to uppercase, apparently vscode rename didn't do the job previously

* Reverts TeleportContextProvider changes, removes teleport context from DesktopSession

* Major updates to useClipboard and dependent logic

* making useClipboard hook local to DesktopSession

* removes hasError by saying that an empty string for errorText means no error

* Fixes storybook

* simplifies error alert jsx and adds an additional test for unknown connection failure

* fixes the fact that the user was prompted for clipboard permissions even if the role had clipboard sharing disabled

* making styled component and updating snapshot

* Adds handling of the desktopSessionRecording flag to the acl and fixes the clipboard flag in the acl

* fixes the actual clipboard sharing which had been broken by changing recording to a useState variable in useDesktopSession.tsx

* code cosmetics

* CR cosmetic changes

* Adds extra check to onClipboardData

* changes allowedHosts to all since this allows for easier development of mfa stuff

* refactors useWebauthn to be generalizeable

* updating client

* fixes test

* integrates mfa challenge into DesktopSession

* fixing tests

* renaming

* cleanup from CR

* Gives all the props passed in to TdpClientCanvas their own useEffect so listeners are updated when those passed functions change. This allowed me to remove the gross useRef in useTdpClientCanvas

* small fixes and updates snapshot

* fixes useWebAuthn scope

* fixes story

* emit an error when u2f is tried

* CR and updates README with information about setting up MFA development

* turning magic numbers into constants
2022-02-22 19:50:55 +00:00
Lisa Kim 87c1fc1918 Delete Gravity (#410)
* Remove gravity/*
* Remove gravity references: images, storybook, comps,
  README's, makefile, dockerfile, and gitignore
* Remove jquery, update yarn.lock and e-ref
2021-10-06 10:17:49 -07:00
Alexey Kontsevoy 7fa6d2c5e8 🐛 Fix not being able to filter nodes by searching exact label
Co-authored-by: Yassine Bounekhla <yassine@goteleport.com>
2021-04-23 18:05:15 -04:00
Alexey Kontsevoy 0d0d34c2aa Update README.md 2021-03-26 23:34:49 -04:00
Alexey Kontsevoy 537b95ed03 Update README.md 2021-03-04 14:08:15 -05:00
Alexey Kontsevoy 233f1d566d Update README.md 2021-01-21 01:24:12 -05:00
Alexey Kontsevoy 2489e907e6 Update README.md 2021-01-21 01:23:35 -05:00
Alexey Kontsevoy ab1ddcf096 Update README.md 2021-01-21 01:19:39 -05:00
Alexey Kontsevoy 43d2a39a21 Teleport V5 (#185)
* New Top Nav (#136)
* Moves AuthConnectors/TrustedClusters/Roles to the Dashboard Top Nav
* Add feature to allow user in context to perform operations on other users (#137)
* Added List/Create/Update/Delete/Reset user functionality
* Added enterprise api endpoint to OSS config
Co-authored-by: Alexey Kontsevoy <biz.kovoy@gmail.com>

* Fix handling of feature flags (#138)
* Prevent closing when there is an error with deleting user (#142)
* Alexey/v5nav (#155)
* Touch Ups (#157)
* Create a story for Teleport App (#158)
* Add Application Launcher (AAP) (#162)
* use publicAddr and clusterName URL parameters to launch apps. (#169)
* Update sideNav styles and ssh input box (#170)
* [teleport] Implement add node dialog (#165)
* [teleport] Change NodeJoinToken prop expires to expiry (#176)
* Remove empty state from NodesList (#179)
* [teleport] Add -f flag to add node curl command (#180)
* [teleport] Add app session chunk and start events (#181)
* Add Application Dialog
* Delete Force
Co-authored-by: Lisa Kim <lisa@gravitational.com>
2020-11-09 17:02:33 -05:00
Lisa Kim 67e99d5dea [teleport] Remove url, proxy version, node count from clusters list (#152) 2020-09-15 11:45:23 -07:00
Alexey Kontsevoy 29e78cab52 README file updates 2020-04-16 01:43:05 -04:00
Alexey Kontsevoy 56f6961968 Simplify and clean up Makefile (#62)
* Simplify and clean up Makefile

* Update Makefile

This fixes the `test` command and deploys assets to Teleport

* Update Makefile

don't print as much

* Update enterprise paths

* Don't archive artifacts anymore

* Stop removing `dist` before building

* Explicitly push to a branch on origin

* Update Makefile

initialize teleport submodules after cloning

* Remove build artifacts, such as teleport

* Fetch submodule updates before updating

* Address CR comments

Co-authored-by: Pierre Beaucamp <pierre@gravitational.com>
2020-04-07 00:50:07 -04:00
Pierre Beaucamp 05bc6f6904 Automated builds (#53)
* Remove existing dist directories

* Update Makefile to deploy assets to seperate repo

* Split asset delivery over two repositories

* Update e reference

* Use a special 'builder' user inside Dockerfile

* Revert "Use a special 'builder' user inside Dockerfile"

This reverts commit 5e72f48ff9364109bce99ec40a56311ae4264891.

* Fix a bug regarding git branches

* Use older git cli options for compatibility with Jenkins

* Stop resetting the branch after checkout

* Further git cli adjustments

* Add test command to Makefile

* Add Jenkinsfile for PR workflow

* Add comments to Makefile, include gravity & force artifacts

* Update README

* Adjust makefile to run even without e submodule

* Fix unit-test errors

* Archive build artifacts on Jenkins

* Adjust Jenkinsfile syntax

* Update e ref

* Update Jenkinsfile

* Update Jenkinsfile

* Update Jenkinsfile

clean directory before checkout

* Update Jenkinsfile

de-init submodules before checkout

* Update Jenkinsfile

* Update Jenkinsfile

* Update Jenkinsfile

* Fix syntax error in make file
2020-04-02 14:49:53 -04:00
Alexey Kontsevoy 5975f5c4ea Update README.md 2020-02-18 18:04:47 -05:00
Lisa Kim a5d83a03a7 Unit Test ButtonSso and Validator Class (#24)
* Refactor and unit test ButtonSso
* Unit test Validator class inside Validation.jsx
* Update failing snapshot caused by reformatting
2020-02-18 14:28:27 -08:00
Lisa Kim 8d6573b7d8 Update README and convert Alert, Button to CSF (#5)
* Convert Alert, Button to CSF
* Prettify and replace div wrappers w/ fragments
* Update README to include prettify setup

Part of: https://github.com/gravitational/webapps/issues/3
2020-01-22 12:26:35 -08:00
Alexander Klizhentas 0ac0a37db8 Update README.md (#2) 2019-11-20 10:14:28 -08:00
Alexey Kontsevoy 0b321caefe Docs (#1) 2019-09-20 15:13:48 -04:00
Alexey Kontsevoy bdc3984503 Initial commit 2019-09-12 17:58:35 -04:00