ComplianceAsCode / ComplianceAsCode/content

Template or macro for umask related rules

Open
#8,919 0 comments 0 reactions 1 assignee Claimed by @marcusburghardt View on GitHub
enhancement triaged
Dominant language
Shell
Stars
2.8k
Forks
828
Avg merge
3d 8m
Merged PRs (30d)
80

Description

#### Description of problem:

The following rules intend to adjust the `umask` value in different files:
- accounts_umask_etc_bashrc
- accounts_umask_etc_csh_cshrc
- accounts_umask_etc_login_defs
- accounts_umask_etc_profile
- accounts_umask_interactive_users

While the `accounts_umask_interactive_users` is more specific, the other rules are pretty similar and are using repeated code.
There is an opportunity to make it better using Jinja2 macros, creating a template (if worth) or even using existing templates (if any can be used).

The proper solution demands a deeper analysis of the options, but all options are relatively simple.

There was an improvement on Ansible remediation through the PR https://github.com/ComplianceAsCode/content/pull/8920 which should be taken in account when working on this issue.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.