From 1dbe3fb8bc868608af6a4502ea2b9eeed03489ed Mon Sep 17 00:00:00 2001 From: Ryan Savino Date: Mon, 10 Mar 2025 18:29:48 -0500 Subject: [PATCH] tests: fix confidential ssh Dockerfile Need to set correct permissions for ssh directories and files Fixes: #11005 Signed-Off-By: Ryan Savino --- .../confidential/unencrypted/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/integration/kubernetes/runtimeclass_workloads/confidential/unencrypted/Dockerfile b/tests/integration/kubernetes/runtimeclass_workloads/confidential/unencrypted/Dockerfile index 9605c19528..8d45ab6302 100644 --- a/tests/integration/kubernetes/runtimeclass_workloads/confidential/unencrypted/Dockerfile +++ b/tests/integration/kubernetes/runtimeclass_workloads/confidential/unencrypted/Dockerfile @@ -34,4 +34,8 @@ RUN passwd -d root # Generated with `ssh-keygen -t ed25519 -f unencrypted -P "" -C ""` COPY ssh/unencrypted.pub /root/.ssh/authorized_keys +# Set correct permissions for SSH folders and files +RUN chmod 700 /root/.ssh +RUN chmod 600 /root/.ssh/authorized_keys + ENTRYPOINT ["/usr/sbin/sshd", "-D"]