Skip to content

Commit

Permalink
[ubicloud] Update OpenSSH version due to vulnerability
Browse files Browse the repository at this point in the history
  • Loading branch information
velioglu committed Jul 4, 2024
1 parent 6e1b8fd commit 8d9a1bd
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions images/ubuntu/templates/ubuntu-22.04.arm64.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,12 @@ build {
scripts = ["${path.root}/../scripts/ubicloud/setup-runner-user.sh"]
}

// Update OpenSSH (https://ubuntu.com/security/CVE-2024-6387)
provisioner "shell" {
execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'"
inline = ["sudo apt-get update -qq && sudo apt -qq -y satisfy 'openssh-server (>= 1:8.9p1-3ubuntu0.10)'"]
}

// It's Hyper-V Key Value Pair daemon, which is not needed in Ubicloud
// It blocks booting the VM if it's not disabled
provisioner "shell" {
Expand Down
6 changes: 6 additions & 0 deletions images/ubuntu/templates/ubuntu-22.04.gpu.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,12 @@ build {
inline = ["sleep 30"]
}

// Update OpenSSH (https://ubuntu.com/security/CVE-2024-6387)
provisioner "shell" {
execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'"
inline = ["sudo apt-get update -qq && sudo apt -qq -y satisfy 'openssh-server (>= 1:8.9p1-3ubuntu0.10)'"]
}

// It's Hyper-V Key Value Pair daemon, which is not needed in Ubicloud
// It blocks booting the VM if it's not disabled
provisioner "shell" {
Expand Down
6 changes: 6 additions & 0 deletions images/ubuntu/templates/ubuntu-22.04.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,12 @@ build {
scripts = ["${path.root}/../scripts/ubicloud/setup-runner-user.sh"]
}

// Update OpenSSH (https://ubuntu.com/security/CVE-2024-6387)
provisioner "shell" {
execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'"
inline = ["sudo apt-get update -qq && sudo apt -qq -y satisfy 'openssh-server (>= 1:8.9p1-3ubuntu0.10)'"]
}

// It's Hyper-V Key Value Pair daemon, which is not needed in Ubicloud
// It blocks booting the VM if it's not disabled
provisioner "shell" {
Expand Down

0 comments on commit 8d9a1bd

Please sign in to comment.