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

Set environment variables without passing as argument #408

Open
synedraIT opened this issue Mar 15, 2021 · 4 comments
Open

Set environment variables without passing as argument #408

synedraIT opened this issue Mar 15, 2021 · 4 comments

Comments

@synedraIT
Copy link

Hello!

We want to pass a parameter as an environment variable, without passing it as a command line argument. Is this currently possible?

Thank you!

@bugy
Copy link
Owner

bugy commented Mar 15, 2021

Hi @synedraIT unfortunately not

@bugy bugy added the feature label Mar 15, 2021
@synedraIT
Copy link
Author

Hello, thanks for the quick response. Is such a feature planned for the future?
I think it would be very useful, especially for passwords and the like.

@bugy
Copy link
Owner

bugy commented Mar 15, 2021

I added a feature flag to it. But there is no timeline for when it will be done. I have quite a big backlog and unfortunately not so much time recently.

In the meantime, I would suggest using https://github.com/bugy/script-server/wiki/Script-config#--secure option

@bugy bugy added this to the 1.18.0 milestone Mar 17, 2023
bugy added a commit that referenced this issue Mar 17, 2023
…ssing parameters as arguments/env variables
@bugy
Copy link
Owner

bugy commented Mar 17, 2023

Hi @synedraIT, I added support for it (in dev version), there is a new configuration for every parameter:
pass_as, can be one of [argument, env_variable, stdin]. By default every parameter is passed as argument AND env_variable.

@bugy bugy added the resolved label Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants