Skip to content

Commit fe4776b

Browse files
authored
Merge pull request #278 from ansible-lockdown/devel
v2.0.0 release to main
2 parents 383c057 + b3c81dc commit fe4776b

150 files changed

Lines changed: 10603 additions & 8834 deletions

File tree

Some content is hidden

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

.ansible-lint

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,7 @@
33
parseable: true
44
quiet: true
55
skip_list:
6-
- 'schema'
7-
- 'no-changed-when'
8-
- 'var-spacing'
9-
- 'experimental'
10-
- 'name[play]'
11-
- 'name[casing]'
12-
- 'name[template]'
13-
- 'key-order[task]'
14-
- 'yaml[line-length]'
15-
- '204'
16-
- '305'
17-
- '303'
18-
- '403'
19-
- '306'
20-
- '602'
21-
- '208'
6+
- 'package-latest'
7+
- 'risky-shell-pipe'
228
use_default_rules: true
239
verbosity: 0

.config/.secrets.baseline

Lines changed: 0 additions & 119 deletions
This file was deleted.

.github/workflows/devel_pipeline_validation.yml

Lines changed: 1 addition & 1 deletion
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

.pre-commit-config.yaml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,26 @@
22
##### CI for use by github no need for action to be added
33
##### Inherited
44
ci:
5-
autofix_prs: false
6-
skip: [detect-aws-credentials, ansible-lint ]
5+
autofix_prs: false
6+
skip: [detect-aws-credentials, ansible-lint ]
77

88
repos:
99
- repo: https://github.com/pre-commit/pre-commit-hooks
1010
rev: v5.0.0
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,22 +32,21 @@ 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
3339
rev: v1.5.0
3440
hooks:
3541
- id: detect-secrets
36-
args: [ '--baseline', '.config/.secrets.baseline' ]
3742

3843
- repo: https://github.com/gitleaks/gitleaks
39-
rev: v8.21.2
44+
rev: v8.23.3
4045
hooks:
4146
- id: gitleaks
42-
args: ['--baseline-path', '.config/.gitleaks-report.json']
4347

4448
- repo: https://github.com/ansible-community/ansible-lint
45-
rev: v24.9.2
49+
rev: v25.1.2
4650
hooks:
4751
- id: ansible-lint
4852
name: Ansible-lint
@@ -53,14 +57,15 @@ repos:
5357
# https://github.com/ansible/ansible-lint/issues/611
5458
pass_filenames: false
5559
always_run: true
56-
additional_dependencies:
60+
# additional_dependencies:
5761
# https://github.com/pre-commit/pre-commit/issues/1526
5862
# If you want to use specific version of ansible-core or ansible, feel
5963
# free to override `additional_dependencies` in your own hook config
6064
# file.
61-
- ansible-core>=2.10.1
65+
# - ansible-core>=2.10.1
6266

6367
- repo: https://github.com/adrienverge/yamllint.git
6468
rev: v1.35.1 # or higher tag
6569
hooks:
6670
- id: yamllint
71+
name: Check YAML Lint

.yamllint

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,38 @@
11
---
2-
32
extends: default
4-
53
ignore: |
64
tests/
75
molecule/
86
.github/
97
.gitlab-ci.yml
108
*molecule.yml
11-
129
rules:
13-
indentation:
14-
# Requiring 4 space indentation
15-
spaces: 4
16-
# Requiring consistent indentation within a file, either indented or not
17-
indent-sequences: consistent
18-
braces:
19-
max-spaces-inside: 1
20-
level: error
21-
brackets:
22-
max-spaces-inside: 1
23-
level: error
24-
empty-lines:
25-
max: 1
26-
line-length: disable
27-
key-duplicates: enable
28-
new-line-at-end-of-file: enable
29-
new-lines:
30-
type: unix
31-
trailing-spaces: enable
32-
truthy:
33-
allowed-values: ['true', 'false']
34-
check-keys: true
10+
braces:
11+
max-spaces-inside: 1
12+
level: error
13+
brackets:
14+
max-spaces-inside: 1
15+
level: error
16+
comments:
17+
ignore-shebangs: true
18+
min-spaces-from-content: 1 # prettier compatibility
19+
comments-indentation: enable
20+
empty-lines:
21+
max: 1
22+
indentation:
23+
# Requiring 2 space indentation
24+
spaces: 2
25+
# Requiring consistent indentation within a file, either indented or not
26+
indent-sequences: consistent
27+
key-duplicates: enable
28+
line-length: disable
29+
new-line-at-end-of-file: enable
30+
new-lines:
31+
type: unix
32+
octal-values:
33+
forbid-implicit-octal: true # yamllint defaults to false
34+
forbid-explicit-octal: true
35+
trailing-spaces: enable
36+
truthy:
37+
allowed-values: ['true', 'false']
38+
check-keys: true

Changelog.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Ubuntu22CIS
22

3+
## Based on CIS v2.0.0
4+
5+
### Do not migrate
6+
7+
CIS have rewritten with a full release including but not limited to
8+
9+
- reordering
10+
- new sections and controls in differing sections
11+
12+
This is a rewrite off approx 75% of controls
13+
14+
- New variables
15+
- improved audit related checks
16+
- greater options on some controls
17+
- linting improvements and updated to latest
18+
319
## Based on CIS V1.0.0
420

521
### 1.1.1

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2023 MindPoint Group / Lockdown Enterprise / Lockdown Enterprise Releases
3+
Copyright (c) 2025 Mindpoint Group - A Tyto Athene Company / Ansible Lockdown
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Configure a Ubuntu 22 machine to be [CIS](https://www.cisecurity.org/cis-benchmarks/) compliant
44

5-
### Based on CIS Ubuntu Linux 22.04 LTS Benchmark v1.0.0 [Release](https://learn.cisecurity.org/l/799323/2022-09-15/3l9d2k)
5+
### Based on CIS Ubuntu Linux 22.04 LTS Benchmark v2.0.0 [Release](https://downloads.cisecurity.org/#/)
66

77
![Org Stars](https://img.shields.io/github/stars/ansible-lockdown?label=Org%20Stars&style=social)
88
![Stars](https://img.shields.io/github/stars/ansible-lockdown/ubuntu22-cis?label=Repo%20Stars&style=social)

collections/requirements.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22

33
collections:
4-
- name: community.general
5-
source: https://github.com/ansible-collections/community.general
6-
type: git
4+
- name: community.general
5+
source: https://github.com/ansible-collections/community.general
6+
type: git
77

8-
- name: community.crypto
9-
source: https://github.com/ansible-collections/community.crypto
10-
type: git
8+
- name: community.crypto
9+
source: https://github.com/ansible-collections/community.crypto
10+
type: git
1111

12-
- name: ansible.posix
13-
source: https://github.com/ansible-collections/ansible.posix
14-
type: git
12+
- name: ansible.posix
13+
source: https://github.com/ansible-collections/ansible.posix
14+
type: git

0 commit comments

Comments
 (0)