StackStorm / StackStorm/st2

Why are not all actions with different runner types executed as user stanley?

Open
#3,218 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

documentation stale status:under discussion
Dominant language
Python
Stars
6.5k
Forks
787
PR merge metrics
No merged PRs in 30d

Description

Taken from https://docs.stackstorm.com/install/rhel7.html:

"To run local and remote shell actions, StackStorm uses a special system user (default stanley). For remote Linux actions, SSH is used. It is advised to configure identity file based SSH access on all remote hosts. We also recommend configuring SSH access to localhost for running examples and testing."

Local and remote shell actions are executed as the stanley user. It was to my big surprise that another action of mine that uses runner_type python-script instead of shell, is executed as root user instead of stanley.

Why is that? And shouldn't this be consistent?

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

Start with the runner-user guidance in docs/install/rhel7.html, then trace how shell and python-script actions select their execution user. Determine whether the differing users are intentional and document or fix the behavior so the result matches the project's intended consistency.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.