Skip to content

Commit 933b976

Browse files
committed
chainguard-security-guide: update to CG stig 3.2.2, add tests
v3.2.2 release tightens up the package pattern match in the Remote Services check to avoid false positives. Also add tests of individual rules and checks to ensure that we don't regress in the future: - ensure the certificate bundle hash passes / commit matches (will fail on updates to ca-certificates as the stig will need to be updated) - ensure the "no remote services" check passes even when python 3.12 with telnetlib.py in the standard python library is installed (telnetlib.py was removed in python 3.13, will need to come up with a different check then). Signed-off-by: Steve Beattie <steve.beattie@chainguard.dev> Ref: chainguard-dev/stigs#14 Ref: chainguard-dev/prodsec#220
1 parent 8493230 commit 933b976

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

chainguard-security-guide.yaml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package:
22
name: chainguard-security-guide
3-
version: "3.2.1"
3+
version: "3.2.2"
44
epoch: 0
55
description: Security automation content for Chainguard Images
66
copyright:
@@ -15,7 +15,7 @@ pipeline:
1515
- uses: git-checkout
1616
with:
1717
repository: https://github.com/chainguard-dev/stigs
18-
expected-commit: 5a25438df5f75d1ab7c9b6ad1f7446e97538ebb9
18+
expected-commit: cbeaacf878bcdf6647f2d0bcc5082cd1290a811f
1919
tag: v${{package.version}}
2020

2121
- runs: |
@@ -35,7 +35,21 @@ test:
3535
contents:
3636
packages:
3737
- openscap
38+
- python-3.12
39+
- ca-certificates-bundle
3840
pipeline:
3941
- name: Verify gpos content is recognized by oscap
4042
runs: |
4143
oscap info /usr/share/xml/scap/ssg/content/ssg-chainguard-gpos-ds.xml
44+
- name: Verify that the trust anchor check passes
45+
runs: |
46+
if ! oscap xccdf eval --verbose WARNING --rule xccdf_._rule_V_263659 /usr/share/xml/scap/ssg/content/ssg-chainguard-gpos-ds.xml ; then
47+
# if we failed, then re-run more verbosely to help make diagnosing easier
48+
oscap xccdf eval --verbose INFO --rule xccdf_._rule_V_263659 /usr/share/xml/scap/ssg/content/ssg-chainguard-gpos-ds.xml
49+
fi
50+
- name: Verify that the remote service check passes, even with python-3.12 (telnetlib.py) installed
51+
runs: |
52+
if ! oscap xccdf eval --verbose WARNING --rule xccdf_._rule_V_203736 /usr/share/xml/scap/ssg/content/ssg-chainguard-gpos-ds.xml ; then
53+
# if we failed, then re-run more verbosely to help make diagnosing easier
54+
oscap xccdf eval --verbose INFO --rule xccdf_._rule_V_203736 /usr/share/xml/scap/ssg/content/ssg-chainguard-gpos-ds.xml
55+
fi

0 commit comments

Comments
 (0)