Skip to content
This repository was archived by the owner on Oct 11, 2023. It is now read-only.

Commit 8a9e14f

Browse files
committed
v2.0.0-rc2
* Add ipset to network and console * Add fdisk to console * Use Docker 24.0.7 by default * SSH security hardenings
1 parent 615b3d4 commit 8a9e14f

File tree

5 files changed

+13
-5
lines changed

5 files changed

+13
-5
lines changed

Dockerfile.dapper

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ ARG OS_FIRMWARE=true
8181
ARG OS_BASE_URL_amd64=https://github.com/burmilla/os-base/releases/download/v2023.05-1/os-base_amd64.tar.xz
8282
ARG OS_BASE_URL_arm64=https://github.com/burmilla/os-base/releases/download/v2023.05-1/os-base_arm64.tar.xz
8383

84-
ARG OS_INITRD_BASE_URL_amd64=https://github.com/burmilla/os-initrd-base/releases/download/v2023.05-1/os-initrd-base-amd64.tar.gz
85-
ARG OS_INITRD_BASE_URL_arm64=https://github.com/burmilla/os-initrd-base/releases/download/v2023.05-1/os-initrd-base-arm64.tar.gz
84+
ARG OS_INITRD_BASE_URL_amd64=https://github.com/burmilla/os-initrd-base/releases/download/v2023.05-2/os-initrd-base-amd64.tar.gz
85+
ARG OS_INITRD_BASE_URL_arm64=https://github.com/burmilla/os-initrd-base/releases/download/v2023.05-2/os-initrd-base-arm64.tar.gz
8686

8787
ARG SYSTEM_DOCKER_VERSION=17.06.109
8888
ARG SYSTEM_DOCKER_URL_amd64=https://github.com/burmilla/os-system-docker/releases/download/${SYSTEM_DOCKER_VERSION}/docker-amd64-${SYSTEM_DOCKER_VERSION}.tgz
8989
ARG SYSTEM_DOCKER_URL_arm64=https://github.com/burmilla/os-system-docker/releases/download/${SYSTEM_DOCKER_VERSION}/docker-arm64-${SYSTEM_DOCKER_VERSION}.tgz
9090

91-
ARG USER_DOCKER_VERSION=24.0.5
91+
ARG USER_DOCKER_VERSION=24.0.7
9292
ARG USER_DOCKER_ENGINE_VERSION=docker-${USER_DOCKER_VERSION}
9393

9494
ARG AZURE_SERVICE=false

cmd/control/console_init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ func modifySshdConfig(cfg *config.CloudConfig) error {
407407
}
408408

409409
func setupSSH(cfg *config.CloudConfig) error {
410-
for _, keyType := range []string{"rsa", "dsa", "ecdsa", "ed25519"} {
410+
for _, keyType := range []string{"rsa", "ed25519"} {
411411
outputFile := fmt.Sprintf("/etc/ssh/ssh_host_%s_key", keyType)
412412
outputFilePub := fmt.Sprintf("/etc/ssh/ssh_host_%s_key.pub", keyType)
413413

images/02-console/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ COPY build/sshd_config.append.tpl /etc/ssh/
44
COPY build/lsb-release /etc/
55

66
RUN apt-get update \
7-
&& apt-get install -y --no-install-recommends iptables openssh-server rsync locales \
7+
&& apt-get install -y --no-install-recommends fdisk ipset iptables openssh-server rsync locales \
88
sudo less curl ca-certificates psmisc htop kmod iproute2 \
99
net-tools bash-completion wget \
1010
nano open-iscsi iputils-ping nvi \

images/02-console/sshd_config.append.tpl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,10 @@ IgnoreRhosts yes
2121
HostbasedAuthentication no
2222
PermitEmptyPasswords no
2323
AllowTcpForwarding no
24+
DebianBanner no
25+
26+
# Restrict key exchange, cipher, and MAC algorithms, as per sshaudit.com hardening guide.
27+
KexAlgorithms curve25519-sha256,[email protected],diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha256
28+
Ciphers [email protected],[email protected],[email protected],aes256-ctr,aes192-ctr,aes128-ctr
29+
30+
HostKeyAlgorithms ssh-ed25519,[email protected],[email protected],[email protected],rsa-sha2-256,rsa-sha2-512,[email protected],[email protected]

os-config.tpl.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ rancher:
289289
- system-volumes
290290
- command-volumes
291291
volumes:
292+
- /usr/bin/ipset:/sbin/ipset:ro
292293
- /usr/bin/iptables:/sbin/iptables:ro
293294
ntp:
294295
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}

0 commit comments

Comments
 (0)