mirror of
https://github.com/ovh/the-bastion.git
synced 2026-05-09 08:25:27 +02:00
[GH-ISSUE #43] Cannot impersonate a selfPlaySession command #14
Labels
No labels
answered
bug
documentation
enhancement
enhancement
feature
feature
kept-open-for-info
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/the-bastion#14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @snk33 on GitHub (Nov 13, 2020).
Original GitHub issue: https://github.com/ovh/the-bastion/issues/43
Hello,
We're doing a PoC to see how The Bastion could work for us but we're having some issue using selfPlaySession via adminSudo.
Our goal is to be able to play some user's session to be able to check what has been done on a server, in case something went wrong.
Command is sent from an admin account with these settings :
adminSudo -- --sudo-as USER --sudo-cmd selfPlaySession -- --id IDExample output (with admin/user replaced) :
We cannot press ENTER to make the session plays :(
Is there another (undocumented) way to play a session from a specific account ?
If not, could you either fix this stdin issue or add some --autoplay option to selfPlaySession plugin to bypass this ?
Thanks !
@speed47 commented on GitHub (Nov 13, 2020):
Thanks for the report!
We've never used
selfReplaySessionwithadminSudo(as we have a LOT of records, usually we push them to some other server and then do the research/replays there), but your use case is completely legit.The fix is pretty straighforward: connecting the STDIN of adminSudo to what's executed below. Implementing this change in a dev branch so you can test.
@snk33 commented on GitHub (Nov 13, 2020):
Thanks, I've tried to add expects_stdin to the execute call of adminSudo and it's working !
I've done a PR -> https://github.com/ovh/the-bastion/pull/44
PS : Sorry for branch name, I've done it through webUI :)
@speed47 commented on GitHub (Nov 13, 2020):
Haha, you beat me to it! ;)