StackStorm / StackStorm/st2

Pack-level environment varaibles

Open
#3,608 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature proposal
Dominant language
Python
Stars
6.5k
Forks
787
PR merge metrics
No merged PRs in 30d

Description

It would be helpful to have access to a set of environment variables at the pack level, that are generated at runtime, to guarantee they will be there. Something like a pack.env file that could be easily configured on the fly, as @nmaludy mentioned in slack today. This feature would allow existing python scripts that rely on the environment to be converted to actions without a major refactor. The only solution I'm currently aware of is storing these variables in a data store somewhere -- requires a major refactor of existing code to access them and feels like there should be a better solution.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are identified. Begin by tracing how pack and action environments are currently configured, then define the runtime generation and configuration behavior for a pack-level environment file; done should include a clear way for existing Python scripts to access the variables without a major refactor.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devops
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.