[bug] Use of `sudo` in platform.py breaks ability to re-run on hardened systems
Open
Beginner friendly
Nobody has claimed this yet.
bug
- Dominant language
- Python
- Stars
- 42
- Forks
- 31
- Avg merge
- 5h 22m
- Merged PRs (30d)
- 19
Description
Use of sudo in the argments-list for the platform-setup tasks breaks function's ability to function if sudoer system has been hardened.
…and, since watchmaker has to run as root, any way, is a superfluous option.
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 at src/watchmaker/managers/platform.py around line 328, where sudo is included in the argument list for platform-setup tasks. Confirm how these tasks are rerun as root on hardened systems, then remove the unnecessary sudo usage and verify that platform setup can be invoked without requiring sudo permissions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100