Skip to content

Commit cd10dac

Browse files
authored
Merge pull request #337 from ansible-lockdown/devel
Release v2r1 to main
2 parents d3f99fd + a0cfae3 commit cd10dac

12 files changed

+1373
-842
lines changed

.github/workflows/devel_pipeline_validation.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
jobs:
2828
# This will create messages for first time contributers and direct them to the Discord server
2929
welcome:
30-
runs-on: self-hosted
30+
runs-on: ubuntu-latest
3131

3232
steps:
3333
- uses: actions/first-interaction@main

.github/workflows/main_pipeline_validation.yml

-12
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,6 @@
2323
# A workflow run is made up of one or more jobs
2424
# that can run sequentially or in parallel
2525
jobs:
26-
# This will create messages for first time contributers and direct them to the Discord server
27-
welcome:
28-
runs-on: self-hosted
29-
30-
steps:
31-
- uses: actions/first-interaction@main
32-
with:
33-
repo-token: ${{ secrets.GITHUB_TOKEN }}
34-
pr-message: |-
35-
Congrats on opening your first pull request and thank you for taking the time to help improve Ansible-Lockdown!
36-
Please join in the conversation happening on the [Discord Server](https://www.lockdownenterprise.com/discord) as well.
37-
3826
# This workflow contains a single job that tests the playbook
3927
playbook-test:
4028
# The type of runner that the job will run on

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,6 @@ benchparse/
4343

4444
# GitHub Action/Workflow files
4545
.github/
46+
47+
# ansible-lint
48+
.ansible/

.pre-commit-config.yaml

+12-5
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,17 @@ repos:
1111
hooks:
1212
# Safety
1313
- id: detect-aws-credentials
14+
name: Detect AWS Credentials
1415
- id: detect-private-key
16+
name: Detect Private Keys
1517

1618
# git checks
1719
- id: check-merge-conflict
20+
name: Check for merge conflicts
1821
- id: check-added-large-files
22+
name: Check for Large files
1923
- id: check-case-conflict
24+
name: Check case conflict
2025

2126
# General checks
2227
- id: trailing-whitespace
@@ -27,6 +32,7 @@ repos:
2732
types: [text]
2833
args: [--markdown-linebreak-ext=md]
2934
- id: end-of-file-fixer
35+
name: Ensure line at end of file
3036

3137
# Scan for passwords
3238
- repo: https://github.com/Yelp/detect-secrets
@@ -35,12 +41,12 @@ repos:
3541
- id: detect-secrets
3642

3743
- repo: https://github.com/gitleaks/gitleaks
38-
rev: v8.23.3
44+
rev: v8.24.2
3945
hooks:
4046
- id: gitleaks
4147

4248
- repo: https://github.com/ansible-community/ansible-lint
43-
rev: v25.1.2
49+
rev: v25.2.1
4450
hooks:
4551
- id: ansible-lint
4652
name: Ansible-lint
@@ -51,14 +57,15 @@ repos:
5157
# https://github.com/ansible/ansible-lint/issues/611
5258
pass_filenames: false
5359
always_run: true
54-
additional_dependencies:
60+
# additional_dependencies:
5561
# https://github.com/pre-commit/pre-commit/issues/1526
5662
# If you want to use specific version of ansible-core or ansible, feel
5763
# free to override `additional_dependencies` in your own hook config
5864
# file.
59-
- ansible-core>=2.10.1
65+
# - ansible-core>=2.10.1
6066

6167
- repo: https://github.com/adrienverge/yamllint.git
62-
rev: v1.35.1 # or higher tag
68+
rev: v1.37.0 # or higher tag
6369
hooks:
6470
- id: yamllint
71+
name: Check YAML Lint

Changelog.md

+18
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# Changes to RHEL8STIG
22

3+
## 3.4 STIG v2r1
4+
5+
RuleIDs updated for all controls
6+
Nist Control ID associations added
7+
8+
- RHEL-08-010350 - command updated
9+
- RHEL-08-010472 - Not Applicable if fips
10+
- RHEL-08-020035 - version 8.7+
11+
- RHEL-08-020039 RHEL-08-020040 RHEL-08-020041 RHEL-08-020042, RHEL-08-020070 - TMUX removed
12+
- RHEL-08-020220, RHEL-08-020221 - remember not required for PAM
13+
- RHEL-08-020320 - Updated Check and Fix
14+
- RHEL-08-030603, RHEL-08-040139, RHEL-08-040140, RHEL-08-040141 - Rules updated Ok if no USB peripherals
15+
- RHEL-08-040284
16+
- RHEL-08-040370
17+
- RHEL-08-010001 - removed as not a NIST value
18+
19+
Min OS version updated to 8.10
20+
321
## 3.3 STIG V1R14
422

523
- #232 - thanks to @eday87 @BJSmithIEEE

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Configure a RHEL8 based system to be complaint with Disa STIG
44

5-
This role is based on RHEL 8 DISA STIG: [Version 1, Rel 14 released on 24, April 2024](https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_RHEL_8_V1R14_STIG.zip).
5+
This role is based on RHEL 8 DISA STIG: [Version 2, Rel 1 released on 24, Oct 2024](https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_RHEL_8_V2R1_STIG.zip).
66

77
---
88

ansible.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ system_warnings=False
55
command_warnings=False
66
nocows=1
77
retry_files_save_path=/dev/null
8+
pipelining=true
89

910
# Use the YAML callback plugin.
1011
# stdout_callback = yaml

defaults/main.yml

+6-15
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
## metadata for Audit benchmark
3-
benchmark_version: 'v1r14'
3+
benchmark_version: 'v2r1'
44

55
## Benchmark name used by audting control role
66
# The audit variable found at the base
@@ -134,7 +134,6 @@ rhel_08_040200: true
134134
rhel_08_040360: true
135135

136136
# CAT 2 rules
137-
rhel_08_010001: true
138137
rhel_08_010010: true
139138
rhel_08_010019: true
140139
rhel_08_010030: true
@@ -275,12 +274,8 @@ rhel_08_020030: true
275274
rhel_08_020031: true
276275
rhel_08_020032: true
277276
rhel_08_020035: true
278-
rhel_08_020039: true
279-
rhel_08_020040: true
280-
rhel_08_020041: true
281277
rhel_08_020050: true
282278
rhel_08_020060: true
283-
rhel_08_020070: true
284279
rhel_08_020080: true
285280
rhel_08_020081: true
286281
rhel_08_020082: true
@@ -301,8 +296,6 @@ rhel_08_020180: true
301296
rhel_08_020190: true
302297
rhel_08_020200: true
303298
rhel_08_020210: true
304-
rhel_08_020220: true
305-
rhel_08_020221: true
306299
rhel_08_020230: true
307300
rhel_08_020235: true
308301
rhel_08_020231: true
@@ -479,7 +472,6 @@ rhel_08_010540: true
479472
rhel_08_010541: true
480473
rhel_08_010542: true
481474
rhel_08_020024: true
482-
rhel_08_020042: true
483475
rhel_08_020340: true
484476
rhel_08_030063: true
485477
rhel_08_030601: true
@@ -619,11 +611,11 @@ rhel8stig_blacklist_conf_file_perms: 0640
619611
# These are the minimum supported releases.
620612
# (Red Hat has support for older versions if you pay extra for it.)
621613
rhel8stig_min_supported_os_ver:
622-
RedHat: "8.7"
623-
CentOS: "8.7"
624-
Rocky: "8.7"
625-
AlmaLinux: "8.7"
626-
OracleLinux: "8.7"
614+
RedHat: "8.10"
615+
CentOS: "8.10"
616+
Rocky: "8.10"
617+
AlmaLinux: "8.10"
618+
OracleLinux: "8.10"
627619

628620
# RHEL-08-040260
629621
# If system is not router, run tasks that disable router functions.
@@ -760,7 +752,6 @@ rhel8stig_remove_unnecessary_user_files: false
760752
# RHEL-08-020221
761753
# pam_pwhistory settings - Verify the operating system prohibits password reuse for a minimum of five generations.
762754
rhel8stig_pam_pwhistory:
763-
remember: 5
764755
retries: 3
765756

766757
# RHEL-08-020010

0 commit comments

Comments
 (0)