Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Syntax3rror404 committed Aug 24, 2024
1 parent 2a8abca commit 99794de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,13 @@ RUN curl -L -o /usr/local/bin/mc https://dl.min.io/client/mc/release/linux-amd64
chmod +x /usr/local/bin/mc

# Create non-root user with specific UID/GID
RUN addgroup --gid 1001 dev && \
adduser --uid 1001 --ingroup dev --shell /bin/bash --home /home/dev --disabled-password dev && \
RUN groupadd -g 1001 dev && \
useradd -m -d /home/dev -s /bin/bash -g dev -u 1001 dev && \
echo "dev ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers

# Adjust permissions for /usr/local and home directories
RUN chown -R dev:dev /usr/local /home/dev

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

# Switch to non-root user
USER dev

Expand Down
1 change: 0 additions & 1 deletion chart/templates/cm-sshconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ data:
PermitRootLogin no
PasswordAuthentication yes
ChallengeResponseAuthentication no
UsePrivilegeSeparation no
UsePAM yes
X11Forwarding yes
PrintMotd no
Expand Down
2 changes: 1 addition & 1 deletion chart/values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
replicaCount: 1

image:
source: ghcr.io/syntax3rror404/k8s-devmachine@sha256:d0917c569a0ac6267cb7bc18a0d950dc97afaaf495f799637394a682be81e95e
source: ghcr.io/syntax3rror404/k8s-devmachine@sha256:9e166d8c10c7f2c27c17027f4363a5862eb4241c8ebb5661b30845b0fc6d2bfd
pullPolicy: IfNotPresent

service:
Expand Down

0 comments on commit 99794de

Please sign in to comment.