Skip to content

Commit 2a8abca

Browse files
update
1 parent 80b6ed1 commit 2a8abca

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ RUN addgroup --gid 1001 dev && \
5959
# Adjust permissions for /usr/local and home directories
6060
RUN chown -R dev:dev /usr/local /home/dev
6161

62-
RUN echo "+:dev:ALL" >> /etc/security/access.conf
62+
RUN echo "+:dev:ALL" >> /etc/security/access.conf && touch /etc/nologin
6363

6464
# Switch to non-root user
6565
USER dev

chart/templates/cm-entrypoint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ data:
3030
3131
3232
echo "Starting SSH service with host keys from /home/dev/ssh_keys on port 2222."
33-
/usr/sbin/sshd -D -ddd -e -f /etc/ssh/sshd_config \
33+
/usr/sbin/sshd -D -e -f /etc/ssh/sshd_config \
3434
-o Port={{ .Values.service.targetPort }} \
3535
-o HostKey=/home/dev/ssh_keys/ssh_host_rsa_key \
3636
-o HostKey=/home/dev/ssh_keys/ssh_host_ecdsa_key \

chart/templates/cm-sshconfig.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ data:
88
PermitRootLogin no
99
PasswordAuthentication yes
1010
ChallengeResponseAuthentication no
11+
UsePrivilegeSeparation no
1112
UsePAM yes
1213
X11Forwarding yes
1314
PrintMotd no

chart/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
replicaCount: 1
22

33
image:
4-
source: ghcr.io/syntax3rror404/k8s-devmachine@sha256:b25b3089bece565cf372eb90ac4302db4decbf57af2ee67b6e09df2fa7438d66
4+
source: ghcr.io/syntax3rror404/k8s-devmachine@sha256:d0917c569a0ac6267cb7bc18a0d950dc97afaaf495f799637394a682be81e95e
55
pullPolicy: IfNotPresent
66

77
service:

0 commit comments

Comments
 (0)