Skip to content

Commit 219b416

Browse files
authored
Merge pull request #257 from ansible-lockdown/devel
Benchmark 3.1.1 Updates Signed-off-by: George Nalen <[email protected]>
2 parents ed38bf4 + aabe282 commit 219b416

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+4579
-4366
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: Report Issue
3+
about: Create a bug issue ticket to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the Issue**
11+
A clear and concise description of what the bug is.
12+
13+
**Expected Behavior**
14+
A clear and concise description of what you expected to happen.
15+
16+
**Actual Behavior**
17+
A clear and concise description of what's happening.
18+
19+
**Control(s) Affected**
20+
What controls are being affected by the issue
21+
22+
**Environment (please complete the following information):**
23+
- Ansible Version: [e.g. 2.10]
24+
- Host Python Version: [e.g. Python 3.7.6]
25+
- Ansible Server Python Version: [e.g. Python 3.7.6]
26+
- Additional Details:
27+
28+
**Additional Notes**
29+
Anything additional goes here
30+
31+
**Possible Solution**
32+
Enter a suggested fix here
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Feature Request or Enhancement
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Feature Request or Enhancement**
11+
- Feature []
12+
- Enhancement []
13+
14+
**Summary of Request**
15+
A clear and concise description of what you want to happen.
16+
17+
**Describe alternatives you've considered**
18+
A clear and concise description of any alternative solutions or features you've considered.
19+
20+
**Suggested Code**
21+
Please provide any code you have in mind to fulfill the request

.github/ISSUE_TEMPLATE/question.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Question
3+
about: Ask away.......
4+
title: ''
5+
labels: question
6+
assignees: ''
7+
8+
---
9+
10+
**Question**
11+
Pose question here.
12+
13+
**Environment (please complete the following information):**
14+
- Ansible Version: [e.g. 2.10]
15+
- Host Python Version: [e.g. Python 3.7.6]
16+
- Ansible Server Python Version: [e.g. Python 3.7.6]
17+
- Additional Details:

.github/pull_request_template.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
**Overall Review of Changes:**
2+
A general description of the changes made that are being requested for merge
3+
4+
**Issue Fixes:**
5+
Please list (using linking) any open issues this PR addresses
6+
7+
**Enhancements:**
8+
Please list any enhancements/features that are not open issue tickets
9+
10+
**How has this been tested?:**
11+
Please give an overview of how these changes were tested. If they were not please use N/A
12+

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ benchparse/
4343
test_inv
4444

4545
# ignore refactr pipeline test conf
46-
.github/workflows
46+
.github/

.yamllint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ extends: default
99
rules:
1010
indentation:
1111
# Requiring 2 space indentation
12-
spaces: 2
12+
spaces: 4
1313
# Requiring consistent indentation within a file, either indented or not
1414
indent-sequences: consistent
1515
truthy: disable

CONTRIBUTING.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,3 @@ following text in your contribution commit message:
6464
This message can be entered manually, or if you have configured git
6565
with the correct `user.name` and `user.email`, you can use the `-s`
6666
option to `git commit` to automatically include the signoff message.
67-

ChangeLog.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,38 @@
1111
- assert has been created if rule still enabled and password not changed
1212
- Use of the packages facts module
1313

14+
## Major 1.1
15+
16+
- Upgrade to CIS 3.1.1
17+
18+
### Highlights
19+
20+
- rhel7cis_allow_reboot is now an option to reboot at the end of remediation - default false
21+
- linting - including command replaced with shell
22+
- section 1
23+
- 1.1 rewritten to providing better auditing and output
24+
- 1.3 sudo no longer required move to section 5
25+
- 1.4.1 bootloader password reworked
26+
- other groups changes increased tests
27+
- more controls for GDM
28+
- section 2
29+
- reorder of server services
30+
- rsyncd masked
31+
- 2.5 - 2.4
32+
- section 3
33+
- some controls now L2
34+
- tidy of some rules
35+
- 3.1 disable ipv6 now via grub 9No longer sysctl
36+
- section 4
37+
- tidy up
38+
- section 5
39+
- sudo moved from 1.3 to 5.2
40+
- Other controls changed numbers
41+
- ssh kex, mac and ciphers updates
42+
- section 6
43+
- many control orders changed
44+
- 6.2.11 create missing home dirs rewritten
45+
1446
## Whats new in 1.0.3
1547

1648
- Thanks to Thulium-Drake
@@ -42,4 +74,4 @@
4274
## Whats new 1.0.1
4375

4476
- Fixed typos
45-
- Added audit output file permissions
77+
- Added audit output file permissions

README.md

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RHEL 7 CIS
88
Configure RHEL/Centos 7 machine to be [CIS](https://www.cisecurity.org/cis-benchmarks/) compliant
99
Untested on OEL
1010

11-
Based on [CIS RedHat Enterprise Linux 7 Benchmark v3.0.1 - 09-21-2020 ](https://www.cisecurity.org/cis-benchmarks/)
11+
Based on [CIS RedHat Enterprise Linux 7 Benchmark v3.1.1 - 05-21-2021 ](https://www.cisecurity.org/cis-benchmarks/)
1212

1313
Caution(s)
1414
-------
@@ -17,7 +17,7 @@ This role **will make changes to the system** which may have unintended conseque
1717

1818
This role was developed against a clean install of the Operating System. If you are implimenting to an existing system please review this role for any site specific changes that are needed.
1919

20-
To use release version please point to main branch.
20+
To use release version please point to main branch and relevant release for the cis benchmark you wish to work with.
2121

2222
Coming from a previous release
2323
------------------------------
@@ -96,24 +96,25 @@ Below is an example of the tag section from a control within this role. Using th
9696
Example Audit Summary
9797
---------------------
9898

99-
This is based on a vagrant image with selections enabled. e.g. No Gui or firewall.
100-
Note: More tests are run during audit as we check config and running state.
99+
The audit when run from ansible also uses all the specific variables, so will test relevant variables based on host configuration settings.
100+
This is based on a vagrant image, based upon a preconfigured image for filesystem layout etc. e.g. No Gui or firewall.
101+
Note: More tests are run during audit as we are checking config and running state.
101102

102103
```sh
103-
TASK [/vagrant/RHEL7-CIS : Show Audit Summary] ******************************************************************************************************************************************************************************
104+
TASK [RHEL7-CIS : Show Audit Summary] ******************************************************************************************************************************************************************************
104105
******
105-
ok: [localhost] => {
106+
ok: [cent7_efi] => {
106107
"msg": [
107-
"The pre remediation results are: Count: 377, Failed: 127, Duration: 12.417s.",
108-
"The post remediation results are: Count: 377, Failed: 20, Duration: 14.133s.",
108+
"The pre remediation results are: Count: 380, Failed: 121, Duration: 10.399s.",
109+
"The post remediation results are: Count: 380, Failed: 10, Duration: 12.324s.",
109110
"Full breakdown can be found in /var/tmp",
110111
""
111112
]
112113
}
113114

114115
PLAY RECAP ******************************************************************************************************************************************************************************************************************
115116
******
116-
localhost : ok=270 changed=140 unreachable=0 failed=0 skipped=129 rescued=0 ignored=0
117+
cent7_efi : ok=274 changed=143 unreachable=0 failed=0 skipped=140 rescued=0 ignored=0
117118

118119
```
119120

@@ -136,6 +137,16 @@ We encourage you (the community) to contribute to this role. Please read the rul
136137
- Pull Requests into devel will confirm your commits have a GPG signature, Signed-off, and a functional test before being approved
137138
- Once your changes are merged and a more detailed review is complete, an authorized member will merge your changes into the main branch for a new release
138139

140+
Support
141+
-------
142+
143+
This is a community project at its core and will be managed as such.
144+
145+
If you would are interested in dedicated support to assist or provide bespoke setups
146+
147+
- [Ansible Counselor](https://www.mindpointgroup.com/products/ansible-counselor-on-demand-ansible-services-and-consulting/)
148+
- [Try us out](https://engage.mindpointgroup.com/try-ansible-counselor)
149+
139150
Credits
140151
-------
141152

0 commit comments

Comments
 (0)