plus3it / plus3it/watchmaker

[bug] Use of `sudo` in platform.py breaks ability to re-run on hardened systems

Open Beginner friendly
#2,283 0 comments 0 reactions 0 assignees View on GitHub

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.