Skip to content

Commit e72bae7

Browse files
authored
Merge pull request #144 from cisagov/improvement/add-code-to-allow-sha1
Add code to allow SHA-1 in the system crypto policy
2 parents f059a08 + 960a0a6 commit e72bae7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

build.pkr.hcl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ build {
3333
# noexec bit set on it.
3434
execute_command = "chmod +x {{ .Path }}; sudo env {{ .Vars }} bash {{ .Path }} ; rm -f {{ .Path }}"
3535
skip_clean = true
36-
inline = ["update-crypto-policies --set DEFAULT", "sed -i '/^users:/ {N; s/users:.*/users: []/g}' /etc/cloud/cloud.cfg", "rm --force /etc/sudoers.d/90-cloud-init-users", "rm --force /root/.ssh/authorized_keys", "/usr/sbin/userdel --remove --force fedora"]
36+
# TODO: Remove the explicit allowing of SHA-1 in the
37+
# update-crypto-policies command when possible. See #143 for more
38+
# details.
39+
inline = ["update-crypto-policies --set DEFAULT:SHA1", "sed -i '/^users:/ {N; s/users:.*/users: []/g}' /etc/cloud/cloud.cfg", "rm --force /etc/sudoers.d/90-cloud-init-users", "rm --force /root/.ssh/authorized_keys", "/usr/sbin/userdel --remove --force fedora"]
3740
}
3841
}

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.10.0
1+
0.10.1

0 commit comments

Comments
 (0)