Skip to content

Add initial command to session trackers#32947

Merged
tigrato merged 1 commit intomasterfrom
tigrato/add-intial-command-active-sessions
Oct 7, 2023
Merged

Add initial command to session trackers#32947
tigrato merged 1 commit intomasterfrom
tigrato/add-intial-command-active-sessions

Conversation

@tigrato
Copy link
Copy Markdown
Contributor

@tigrato tigrato commented Oct 4, 2023

When user starts a session, we do not report the initial command used which causes visibility problems to moderators when they need to figure out if they join or not the session.

This PR exposes the initial command for SSH and Kubernetes so moderators can decide if they want to join the session or not based on the initial command.

@github-actions github-actions Bot added kubernetes-access size/sm tsh tsh - Teleport's command line tool for logging into nodes running Teleport. ui labels Oct 4, 2023
Comment thread api/types/session_tracker.go Outdated
@ibeckermayer
Copy link
Copy Markdown
Contributor

Is there some mechanism by which we prevent the user from "spoofing" which command they used?

Copy link
Copy Markdown
Member

@ravicious ravicious left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The UI looks good even with longer commands like top -o command -o cpu -o boosts -o cycles -o cow -o user -o vsize -o csw -o threads -o ports -o ppid (an arbitrary one just to pad the length of the command).

The type check is failing because session fixtures are missing. I recommend executing yarn type-check -w so that you get instant feedback in watch mode.

It'd be good to add some normal and long commands to some of the sessions in fixtures so that the stories for them give a preview of this feature (yarn storybook followed by opening http://localhost:9002/?path=/story/teleport-activesessions--loaded).

@tigrato tigrato enabled auto-merge October 6, 2023 14:09
@tigrato tigrato added this pull request to the merge queue Oct 6, 2023
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 6, 2023
@tigrato tigrato added this pull request to the merge queue Oct 6, 2023
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 6, 2023
@tigrato tigrato added this pull request to the merge queue Oct 6, 2023
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 6, 2023
@tigrato tigrato added this pull request to the merge queue Oct 7, 2023
@tigrato tigrato removed this pull request from the merge queue due to a manual request Oct 7, 2023
When user starts a session, we do not report the initial command used
which causes visibility problems to moderators when they need to figure
out if they join or not the session.

This PR exposes the intial command for SSH and Kubernetes so moderators
can decide if they want to join the session or not based on the initial
command.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
@tigrato tigrato force-pushed the tigrato/add-intial-command-active-sessions branch from beb2a4f to 7cfcf46 Compare October 7, 2023 20:04
@tigrato tigrato enabled auto-merge October 7, 2023 20:04
@tigrato tigrato added this pull request to the merge queue Oct 7, 2023
Merged via the queue into master with commit c210c39 Oct 7, 2023
@tigrato tigrato deleted the tigrato/add-intial-command-active-sessions branch October 7, 2023 20:45
@public-teleport-github-review-bot
Copy link
Copy Markdown

@tigrato See the table below for backport results.

Branch Result
branch/v12 Failed
branch/v13 Failed
branch/v14 Create PR

tigrato added a commit that referenced this pull request Oct 7, 2023
When user starts a session, we do not report the initial command used
which causes visibility problems to moderators when they need to figure
out if they join or not the session.

This PR exposes the intial command for SSH and Kubernetes so moderators
can decide if they want to join the session or not based on the initial
command.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
github-merge-queue Bot pushed a commit that referenced this pull request Oct 9, 2023
When user starts a session, we do not report the initial command used
which causes visibility problems to moderators when they need to figure
out if they join or not the session.

This PR exposes the intial command for SSH and Kubernetes so moderators
can decide if they want to join the session or not based on the initial
command.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kubernetes-access size/sm tsh tsh - Teleport's command line tool for logging into nodes running Teleport. ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants