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

Permit use of shell aliases #327

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

kevineor
Copy link

@kevineor kevineor commented May 5, 2024

Today, the provider does not handle programs that are defined as shell alias.

This is primarily due to the go exec LookPath limitation, it searches from PATH environment variable but does not provide any shell implementations.

This is a proposition to execute the program from a shell when the program is not located in PATH.
For now the following shells are supported :

  • bash
  • fish
  • zsh
  • ksh
  • ash
  • sh
  • dash

I took as example an implementation from https://github.com/mmmorris1975/aws-runas

@kevineor kevineor requested a review from a team as a code owner May 5, 2024 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant