[FEATURE REQUEST] Document and test issues with grains on salt-master run as non-root user
Nobody has claimed this yet.
- 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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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