blob: 5e0e3420ca87f1cae88f8d356ed024e503a639c8 [file] [log] [blame]
vexxhost-bota62d9312024-06-01 21:13:59 +02001# SPDX-License-Identifier: Apache-2.0
vexxhost-bot4a8f0912024-06-28 22:34:23 +02002# Atmosphere-Rebuild-Time: 2024-06-28T12:14:26Z
Mohammed Naser37694382024-04-02 21:11:31 -04003
Mohammed Naseraa212e62025-01-15 16:49:44 -05004ARG REGISTRY
Mohammed Naser19c6c8a2024-04-18 01:47:10 -04005ARG RELEASE
6
Mohammed Naseraa212e62025-01-15 16:49:44 -05007FROM ${REGISTRY}/openstack-runtime:${RELEASE}
Mohammed Naserd28fbaf2024-04-08 17:15:00 -04008RUN <<EOF bash -xe
9apt-get update -qq
10apt-get install -qq -y --no-install-recommends \
vexxhost-botda7ae3f2025-01-08 02:38:24 -050011 iproute2 \
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040012 openssh-server \
13 openssh-client
14EOF
15RUN <<EOF bash -xe
16chown -R nova: /etc/ssh
17mkdir /var/run/sshd
18chmod 0755 /var/run/sshd
19EOF
vexxhost-bot410f5112024-06-05 20:52:28 +020020COPY <<EOF /etc/ssh/sshd_config.d/00-hardening.conf
21Ciphers aes256-ctr,aes192-ctr
22MACs hmac-sha2-512,hmac-sha2-256
23KexAlgorithms diffie-hellman-group-exchange-sha256
24HostKeyAlgorithms ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
25MaxAuthTries 3
26EOF