Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

SharedDirectoryCreateRequest and SharedDirectoryCreateResponse#1090

Merged
ibeckermayer merged 11 commits intomasterfrom
isaiah/sd-create-request-and-response
Aug 9, 2022
Merged

SharedDirectoryCreateRequest and SharedDirectoryCreateResponse#1090
ibeckermayer merged 11 commits intomasterfrom
isaiah/sd-create-request-and-response

Conversation

@ibeckermayer
Copy link
Copy Markdown

@ibeckermayer ibeckermayer commented Aug 7, 2022

Adds the TDP messages and SharedDirectoryManager method necessary to allow users to copy files and directories into the shared directory.

You should now be able to:

  • Navigate the directory tree
  • Read files
  • Write files (< 16kb temporarily)
  • Copy files and directories from the shared directory
  • Copy files and directories into the shared directory (new)
  • Move files and directories into the shared directory (new)

Moving files and directories from the shared directory still won't work, since it requires unimplemented SharedDirectoryDelete messages.

Corresponds with: gravitational/teleport#15289

Requires backport to v9/v10

How to test manually

webapps

  1. Change the value below to true
    enableDirectorySharing: false, // note to reviewers: should be false in any PRs.
  2. run the development server like yarn start-teleport --target=https://ec2-35-171-27-185.compute-1.amazonaws.com/
  3. See https://gravitational.slack.com/archives/C02DQ1C2BMW/p1657807702085829 for a username/password combo

What to expect

Go to the top right ... menu and click Share Directory

image

(X-out of the "uncaught exception" screen if you get it). The directory you select should show up in the File Explorer as a shared drive

Screen Shot 2022-07-19 at 14 13 45

The drive should be navigable as well should any folders within it

image

Isaiah Becker-Mayer added 7 commits August 4, 2022 14:28
Comment thread packages/teleport/src/lib/tdp/client.ts
Comment thread packages/teleport/src/lib/tdp/client.ts Outdated
Comment thread packages/teleport/src/lib/tdp/playerClient.ts Outdated
Comment thread packages/teleport/src/lib/tdp/sharedDirectoryManager.ts
@ibeckermayer ibeckermayer requested a review from hatched August 9, 2022 02:45
@ibeckermayer ibeckermayer enabled auto-merge (squash) August 9, 2022 23:09
@ibeckermayer ibeckermayer merged commit eb3b8cd into master Aug 9, 2022
ibeckermayer pushed a commit that referenced this pull request Aug 24, 2022
* `SharedDirectoryInfoResponse` (#996)

* `SharedDirectoryListRequest` (#999)

* `SharedDirectoryListResponse` (#1000)

* `SharedDirectoryReadRequest` (#1003)

* `SharedDirectoryReadResponse` (#1005)

* `SharedDirectoryWriteRequest` (#1007)

* `SharedDirectoryWriteResponse` (#1008)

* Tidy up `sharedDirectoryManager` (#1010)

* `SharedDirectoryMoveRequest` (#1045)

* `SharedDirectoryMoveResponse` (#1074)

* `SharedDirectoryCreateRequest` and `SharedDirectoryCreateResponse` (#1090)

* SharedDirectoryDeleteRequest and SharedDirectoryDeleteResponse (#1096)

* Add warning dialog for unsupported browsers for directory sharing (#1110)

* updates yarn.lock
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants