Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

tsh play should take a file argument as a valid parameter #1580

Closed
kontsevoy opened this issue Jan 12, 2018 · 5 comments · Fixed by #5984
Closed

tsh play should take a file argument as a valid parameter #1580

kontsevoy opened this issue Jan 12, 2018 · 5 comments · Fixed by #5984
Assignees
Labels
c-ib Internal Customer Reference feature-request Used for new features in Teleport, improvements to current should be #enhancements getting-started Features and bugs for beginner users, individuals, OSS users tsh tsh - Teleport's command line tool for logging into nodes running Teleport.
Milestone

Comments

@kontsevoy
Copy link
Contributor

Problem

If a user periodically backs up recorded sessions to a long-term storage (like Glacier) and decides to replay a sessions from 2 years ago, there is no easy way to do this in Teleport right now.

Solution

Currently a recorded session is a set of files:

So if a session stream files are named:

2394827492384723-x.gz 
2394827492384723-y.gz 
2394827492384723-z.gz 
2394827492384723.json  # events
2394827492384723.pem  # SSH signature 

Then all of the following should work:

$ tsh play ./2394827492384723-y.gz
$ tsh play 2394827492384723

And if the .pem file is missing or invalid, a warning should be shown:

WARNING: cluster signature is missing for session 2394827492384723
WARNING: cluster signature is INVALID for session 2394827492384723
@kontsevoy kontsevoy added the feature-request Used for new features in Teleport, improvements to current should be #enhancements label Jan 12, 2018
@kontsevoy kontsevoy modified the milestones: 2.5.1 "Portland", 2.6.0 "Austin" Feb 5, 2018
@klizhentas
Copy link
Contributor

it should actually take our tarball format as is and play it instead, this way folks can download and play all tarballs sent to S3 for example

@klizhentas
Copy link
Contributor

@kontsevoy I suggest we move this one out of 2.6.0 to reduce the scope a bit, does not seem like a pressing issue.

@kontsevoy kontsevoy removed this from the 2.6.0 "Austin" milestone Apr 24, 2018
@benarent
Copy link
Contributor

benarent commented Oct 8, 2019

This came up again today during an evaluation. +1 for providing tsh play to support working with the tarball format.

@webvictim
Copy link
Contributor

Another request for this in #3225

@benarent benarent added the tsh tsh - Teleport's command line tool for logging into nodes running Teleport. label May 6, 2020
@benarent benarent added the c-ib Internal Customer Reference label May 15, 2020
@benarent benarent removed this from the Reliability Improvements for I milestone May 15, 2020
@travelton
Copy link
Contributor

Another request in ZD#1699. Building some sort of index from stored objects would be helpful to locate the sessions of interest. The events object contains the session metadata.

@russjones russjones added this to the 5.0 Codename TBD milestone May 26, 2020
@klizhentas klizhentas assigned klizhentas and unassigned webvictim Oct 17, 2020
klizhentas added a commit that referenced this issue Oct 17, 2020
This commit fixes #4577, updates #1580

```bash
$ tsh play --format=json ~/play/0c0b81ed-91a9-4a2a-8d7c-7495891a6ca0.tar | jq '.event
"print"
"print"
"session.disk"
```
russjones pushed a commit that referenced this issue Nov 8, 2020
This commit fixes #4577, updates #1580

```bash
$ tsh play --format=json ~/play/0c0b81ed-91a9-4a2a-8d7c-7495891a6ca0.tar | jq '.event
"print"
"print"
"session.disk"
```
russjones pushed a commit that referenced this issue Nov 8, 2020
This commit fixes #4577, updates #1580

```bash
$ tsh play --format=json ~/play/0c0b81ed-91a9-4a2a-8d7c-7495891a6ca0.tar | jq '.event
"print"
"print"
"session.disk"
```
@travelton travelton modified the milestones: Runway Milestone, 6.1 Feb 18, 2021
@russjones russjones assigned quinqu and unassigned klizhentas Mar 10, 2021
@klizhentas klizhentas added getting-started Features and bugs for beginner users, individuals, OSS users bagel labels Mar 24, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
c-ib Internal Customer Reference feature-request Used for new features in Teleport, improvements to current should be #enhancements getting-started Features and bugs for beginner users, individuals, OSS users tsh tsh - Teleport's command line tool for logging into nodes running Teleport.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants