saltstack / saltstack/salt

[FEATURE REQUEST] Document and test issues with grains on salt-master run as non-root user

Open
#61,768 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

documentation Grains severity-medium Tests time-estimate-sprint
Dominant language
Python
Stars
15.7k
Forks
5.6k
Avg merge
2d 44m
Merged PRs (30d)
80

Description

Opened as a task for the Security WG

Is your feature request related to a problem? Please describe.

As part of the work to implement SEP19 we need to be able to run the salt-master process as a non-root user. When the salt-master starts up it attempts to collect some grains (for the MasterMinion?) that require root privileges and throw errors if called as a non-root user.

Describe the solution you'd like

Test and document what grains modules fail when run as a non-root user.

Investigate options for disabling those when the salt-master is not running as root.

Additional context

SEP19

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 by reviewing SEP19 and the salt-master startup path that collects grains for the MasterMinion. Run the salt-master as a non-root user to identify failing grains modules, then add tests and documentation covering those failures and possible ways to disable them. Done means the affected grains and non-root behavior are documented and tested.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.