Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add initial command to session trackers #32947

Merged
merged 1 commit into from Oct 7, 2023

Conversation

tigrato
Copy link
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
api/types/session_tracker.go Outdated Show resolved Hide resolved
@ibeckermayer
Copy link
Contributor

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

Copy link
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
35 checks passed
@tigrato tigrato deleted the tigrato/add-intial-command-active-sessions branch October 7, 2023 20:45
@public-teleport-github-review-bot

@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
backport/branch/v12 backport/branch/v13 backport/branch/v14 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.

None yet

3 participants