8000 support exec using shell script for TTY applications by JoshuaWilkes · Pull Request #549 · fwdcloudsec/granted · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

support exec using shell script for TTY applications #549

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

Merged
merged 2 commits into from
Nov 29, 2023

Conversation

JoshuaWilkes
Copy link
Contributor

What changed?

Fixes #250

Uses the shell script to exec commands instead of Go, this enables TTY applications to work as expected

@todo need to implement the exec feature in the other shell scripts

https://www.loom.com/share/dead201f196a44da8df631c562ff83ef

Why?

Some programs like Bash would not work otherise

How did you test it?

Potential risks

Exec is now dependent on the shell script, so assumego cannot be called directly to exec. Though I don't think this would be an issue for anyone

Coudl mitigate this by still supporting Go based exec as well as shell based exec

Is patch release candidate?

Link to relevant docs PRs

@JoshuaWilkes JoshuaWilkes changed the title support exec using shell script support exec using shell script for TTY applications Nov 8, 2023
@lgg42
Copy link
lgg42 commented Nov 15, 2023

I'm so looking forward to this merge! In my case it is for using terragrunt apply wrapped by assume, e.g.

assume testing/RoleFoo --exec -- terraform apply

right now it is failing with

│ Error: error asking for approval: EOF

Sign up for 6673 free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--exec does not work for programs requiring a TTY [CLI-15]
3 participants
0