Skip to content

Set environment variables without passing as argument #408

Closed

Description

@synedraIT

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!

Activity

  1. bugy commented on Mar 15, 2021

    @bugy
    Owner

    Hi @synedraIT unfortunately not

  2. synedraIT commented on Mar 15, 2021

    @synedraIT
    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.

  3. bugy commented on Mar 15, 2021

    @bugy
    Owner

    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

  4. added this to the 1.18.0 milestone on Mar 17, 2023
  5. added a commit that references this issue on Mar 17, 2023
  6. bugy commented on Mar 17, 2023

    @bugy
    Owner

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions