Make user module also able to delete users
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 113
- Forks
- 34
- Avg merge
- 14h 10m
- Merged PRs (30d)
- 5
Description
delete_entities module is kind of complex for this task as it requires everything to be filled:
delete_entities:
- path: /etc/passwd
entity: |
kind: "user"
username: "foo"
password: "pass"
uid: 0
gid: 0
info: "Foo!"
homedir: "/home/foo"
shell: "/bin/bash"
We could have the user module have an extra key called delete: bool which in turns instead of creating the user, uses the given info to find the user and remove it instead, so it makes it easy to add/remove users
Contributor guide
No contributing guide indexed for this repository
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 locating the user module and the existing delete_entities handling, then compare how user information is currently interpreted. Add support for a boolean delete option that finds and removes the specified user without requiring every creation field. Done means a configuration can remove a user using the user module and existing behavior for creating users remains unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100