From d9b9a8adda491fb1c8f313a7469bb7a38b6526e0 Mon Sep 17 00:00:00 2001 From: Christoph Petrausch Date: Wed, 18 Apr 2018 13:39:54 +0200 Subject: [PATCH 1/3] Do not print the admin credentials. All outputs from STDOUT may end up in a central log store. This will compromise the superuser credentials. --- docker/docker-entrypoint.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index bcf418f..5bf1df7 100755 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -29,7 +29,6 @@ if [ -z ${SUPERUSER_API_TOKEN+x} ]; then fi fi -echo "💡 Username: ${SUPERUSER_NAME}, E-Mail: ${SUPERUSER_EMAIL}, Password: ${SUPERUSER_PASSWORD}, Token: ${SUPERUSER_API_TOKEN}" ./manage.py shell --plain << END from django.contrib.auth.models import User From f124417f6952cd7aed45bfd4cb94d522b8dfd910 Mon Sep 17 00:00:00 2001 From: Christoph Petrausch Date: Thu, 19 Apr 2018 11:53:55 +0200 Subject: [PATCH 2/3] Added username and email of superuser --- docker/docker-entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index 5bf1df7..0f318f9 100755 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -29,6 +29,7 @@ if [ -z ${SUPERUSER_API_TOKEN+x} ]; then fi fi +echo "💡 Username: ${SUPERUSER_NAME}, E-Mail: ${SUPERUSER_EMAIL} ./manage.py shell --plain << END from django.contrib.auth.models import User From 2579036b0a0b2576568c717028e31127ebca960f Mon Sep 17 00:00:00 2001 From: Christoph Petrausch Date: Thu, 19 Apr 2018 11:55:41 +0200 Subject: [PATCH 3/3] Fixed missing " --- docker/docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index 0f318f9..a921bd9 100755 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -29,7 +29,7 @@ if [ -z ${SUPERUSER_API_TOKEN+x} ]; then fi fi -echo "💡 Username: ${SUPERUSER_NAME}, E-Mail: ${SUPERUSER_EMAIL} +echo "💡 Username: ${SUPERUSER_NAME}, E-Mail: ${SUPERUSER_EMAIL}" ./manage.py shell --plain << END from django.contrib.auth.models import User