Skip to content

Commit

Permalink
Merge pull request ComplianceAsCode#4394 from ggbecker/remove-ed25519…
Browse files Browse the repository at this point in the history
…-keytype-from-dockerfiles

Remove ed25519 key generation from Dockerfiles as it is not supported when FIPS is enabled.
  • Loading branch information
matejak authored Jun 13, 2019
2 parents 4858592 + f798ae3 commit 911f147
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Dockerfiles/test_suite-centos
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ENV AUTH_KEYS=/root/.ssh/authorized_keys
ARG CLIENT_PUBLIC_KEY
ARG ADDITIONAL_PACKAGES

# Insall Python so Ansible remediations can work
# Install Python so Ansible remediations can work
# Don't clean all, as the test scenario may require package install.
RUN true \
&& yum install -y openssh-clients openssh-server openscap-scanner \
Expand All @@ -15,7 +15,7 @@ RUN true \
&& true

RUN true \
&& for key_type in rsa ecdsa ed25519; do ssh-keygen -N '' -t $key_type -f /etc/ssh/ssh_host_${key_type}_key; done \
&& for key_type in rsa ecdsa; do ssh-keygen -N '' -t $key_type -f /etc/ssh/ssh_host_${key_type}_key; done \
&& mkdir -p /root/.ssh \
&& printf "%s\n" "$CLIENT_PUBLIC_KEY" >> "$AUTH_KEYS" \
&& chmod og-rw /root/.ssh "$AUTH_KEYS" \
Expand Down
4 changes: 2 additions & 2 deletions Dockerfiles/test_suite-fedora
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ENV AUTH_KEYS=/root/.ssh/authorized_keys
ARG CLIENT_PUBLIC_KEY
ARG ADDITIONAL_PACKAGES

# Insall Python so Ansible remediations can work
# Install Python so Ansible remediations can work
# Don't clean all, as the test scenario may require package install.
RUN true \
&& yum install -y openssh-clients openssh-server openscap-scanner \
Expand All @@ -15,7 +15,7 @@ RUN true \
&& true

RUN true \
&& for key_type in rsa ecdsa ed25519; do ssh-keygen -N '' -t $key_type -f /etc/ssh/ssh_host_${key_type}_key; done \
&& for key_type in rsa ecdsa; do ssh-keygen -N '' -t $key_type -f /etc/ssh/ssh_host_${key_type}_key; done \
&& mkdir -p /root/.ssh \
&& printf "%s\n" "$CLIENT_PUBLIC_KEY" >> "$AUTH_KEYS" \
&& chmod og-rw /root/.ssh "$AUTH_KEYS" \
Expand Down
4 changes: 2 additions & 2 deletions Dockerfiles/test_suite-rhel
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ENV AUTH_KEYS=/root/.ssh/authorized_keys
ARG CLIENT_PUBLIC_KEY
ARG ADDITIONAL_PACKAGES

# Insall Python so Ansible remediations can work
# Install Python so Ansible remediations can work
# Don't clean all, as the test scenario may require package install.
RUN true \
&& yum install -y openssh-clients openssh-server openscap-scanner \
Expand All @@ -15,7 +15,7 @@ RUN true \
&& true

RUN true \
&& for key_type in rsa ecdsa ed25519; do ssh-keygen -N '' -t $key_type -f /etc/ssh/ssh_host_${key_type}_key; done \
&& for key_type in rsa ecdsa; do ssh-keygen -N '' -t $key_type -f /etc/ssh/ssh_host_${key_type}_key; done \
&& mkdir -p /root/.ssh \
&& printf "%s\n" "$CLIENT_PUBLIC_KEY" >> "$AUTH_KEYS" \
&& chmod og-rw /root/.ssh "$AUTH_KEYS" \
Expand Down

0 comments on commit 911f147

Please sign in to comment.