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

shell built-in command & ksm: No such file or directory: 'source' #543

Open
bzitzow-osh opened this issue Nov 8, 2023 · 4 comments
Open

Comments

@bzitzow-osh
Copy link

ksm exec -- source .my.secrests.file

Error: Cannot execute command: [Errno 2] No such file or directory: 'source'

However, when I run it directly, it does as I expect and does not throw an error.

@maksimu
Copy link
Collaborator

maksimu commented Nov 8, 2023

Hi @bzitzow-osh for reporting this issue. the source command is a built-in shell command. We are looking into the solution for this.

@maksimu
Copy link
Collaborator

maksimu commented Nov 8, 2023

in the mean time would you tell us your exact use case. What are you trying to achieve in your situation?

@jwalstra-keeper
Copy link
Contributor

If you are trying to get secrets and place them into environment variables, you could just export LOGIN=$(ksm secret get --field login XXXXXXXX)

@bzitzow-osh
Copy link
Author

I'd like to have a file of secrets:

secrets.env

whose content is:

MY_SECRET_TOKEN=keeper://...
... etc

and I'd like to load them all into the environment:

set -a
ksm exec -- source secrets.env
set +a

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

No branches or pull requests

3 participants