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

Commit d29192d

Browse files
committed
v2.0.0-rc2
* Add ipset to network and console * Add fdisk to console * Use Docker 24.0.7 by default * Revert back to system-docker.sock instead of system-engine.sock * SSH security hardenings
1 parent 615b3d4 commit d29192d

File tree

8 files changed

+20
-12
lines changed

8 files changed

+20
-12
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

config/docker_config_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ func TestGenerateEngineOptsString(t *testing.T) {
3939

4040
testContains(t, fmt.Sprint(generateEngineOptsSlice(EngineOpts{
4141
Host: []string{
42-
"unix:///var/run/system-engine.sock",
42+
"unix:///var/run/system-docker.sock",
4343
"unix:///var/run/docker.sock",
4444
},
45-
})), "--host unix:///var/run/system-engine.sock", "--host unix:///var/run/docker.sock")
45+
})), "--host unix:///var/run/system-docker.sock", "--host unix:///var/run/docker.sock")
4646

4747
testContains(t, fmt.Sprint(generateEngineOptsSlice(EngineOpts{
4848
LogOpts: map[string]string{

config/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const (
1818
StateDir = "/state"
1919
RosBin = "/usr/bin/ros"
2020
SysInitBin = "/usr/bin/ros-sysinit"
21-
SystemDockerHost = "unix:///var/run/system-engine.sock"
21+
SystemDockerHost = "unix:///var/run/system-docker.sock"
2222
DockerHost = "unix:///var/run/docker.sock"
2323
ImagesPath = "/usr/share/ros"
2424
InitImages = "images-init.tar"

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: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ rancher:
7979
restart: false
8080
graph: /var/lib/system-docker
8181
group: root
82-
host: ["unix:///var/run/system-engine.sock"]
82+
host: ["unix:///var/run/system-docker.sock"]
8383
userland_proxy: false
8484
console: {{.OS_CONSOLE}}
8585
cloud_init:
@@ -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}}
@@ -341,7 +342,7 @@ rancher:
341342
privileged: true
342343
restart: always
343344
volumes:
344-
- /var/run/system-engine.sock:/var/run/docker.sock
345+
- /var/run/system-docker.sock:/var/run/docker.sock
345346
environment:
346347
DOCKER_API_VERSION: "1.22"
347348
udev-cold:
@@ -402,7 +403,7 @@ rancher:
402403
restart: false
403404
graph: /var/lib/system-docker
404405
group: root
405-
host: ["unix:///var/run/system-engine.sock"]
406+
host: ["unix:///var/run/system-docker.sock"]
406407
pid_file: /var/run/system-docker.pid
407408
exec_root: /var/run/system-docker
408409
config_file: /etc/docker/system-docker.json

pkg/init/recovery/recovery.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func Recovery(initFailure error) {
7777
Restart: &[]bool{false}[0],
7878
Graph: "/var/lib/recovery-docker",
7979
Group: "root",
80-
Host: []string{"unix:///var/run/system-engine.sock"},
80+
Host: []string{"unix:///var/run/system-docker.sock"},
8181
UserlandProxy: &[]bool{false}[0],
8282
},
8383
}

0 commit comments

Comments
 (0)