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
Conversation
Is there some mechanism by which we prevent the user from "spoofing" which command they used? |
There was a problem hiding this 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).
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>
beb2a4f
to
7cfcf46
Compare
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>
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>
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.