Browse Source

Use /dev/urandom to create random password (#2298)

* Make sure generated password is random

Use /dev/urandom to get a 32 char password

* Make sure generated password is random

Use /dev/urandom to generate 32 char password

* Make sure generated password is random
tags/v1.2.0-rc1
Pontus Leitzler Lunny Xiao 8 years ago
parent
commit
3a945fbd97
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      Dockerfile
  2. +1
    -1
      Dockerfile.aarch64
  3. +1
    -1
      Dockerfile.rpi

+ 1
- 1
Dockerfile View File

@@ -24,7 +24,7 @@ RUN addgroup \
-u 1000 \
-G git \
git && \
echo "git:$(date +%s | sha256sum | base64 | head -c 32)" | chpasswd
echo "git:$(dd if=/dev/urandom bs=24 count=1 status=none | base64)" | chpasswd

ENV USER git
ENV GITEA_CUSTOM /data/gitea


+ 1
- 1
Dockerfile.aarch64 View File

@@ -23,7 +23,7 @@ RUN addgroup \
-u 1000 \
-G git \
git && \
echo "git:$(date +%s | sha256sum | base64 | head -c 32)" | chpasswd
echo "git:$(dd if=/dev/urandom bs=24 count=1 status=none | base64)" | chpasswd

ENV USER git
ENV GITEA_CUSTOM /data/gitea


+ 1
- 1
Dockerfile.rpi View File

@@ -24,7 +24,7 @@ RUN addgroup \
-u 1000 \
-G git \
git && \
echo "git:$(date +%s | sha256sum | base64 | head -c 32)" | chpasswd
echo "git:$(dd if=/dev/urandom bs=24 count=1 status=none | base64)" | chpasswd

ENV USER git
ENV GITEA_CUSTOM /data/gitea


Loading…
Cancel
Save