From d4cf54eb33038642e86d074d10bee728e96c3f0f Mon Sep 17 00:00:00 2001 From: erik Date: Thu, 31 Aug 2023 13:45:07 +0200 Subject: [PATCH] Describe state of knowledge about admin user --- README.md | 49 +++++++++++++++++++++++++++++++------------------ 1 file changed, 31 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 520b92c..8cd7035 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,37 @@ Note: taiga-manage,-back und -async verwenden die gleichen docker images mit unt https://github.com/kaleidos-ventures/taiga-docker https://community.taiga.io/t/taiga-30min-setup/170 +### Steps to start and get an admin user + +Philosophy: First create the superuser, then populate the DB. +https://docs.taiga.io/setup-production.html#taiga-back +https://docs.taiga.io/setup-production.html#_configure_an_admin_user +https://github.com/kaleidos-ventures/taiga-back/blob/main/docker/entrypoint.sh + +In the init container we create the super user. Difference between init-container and container: CELERY_ENABLED: false +The init container gets the following command and args: + +```yaml +command: ["/bin/bash"] +args: ["-c", "source /opt/venv/bin/activate && python manage.py createsuperuser"] +``` + +Thus the dockerfile default entrypoint is ignored. + +Problem: Login using this method is still not available with the proposed credentials. + +#### Option 1: Init container, currently under test + +Create an init container (celery disabled) with the python manage.py command and the taiga-manage createsuperuser args + +#### Option 2: Single container + +Create a single container that has celery disabled at the beginning. +Runs the following cmds: +* python manage.py taiga-manage createsuperuser +* enable celery +* execute entrypoint.sh + ### HTTPS Terminiert am ingress. Wie interagiert das mit taiga? @@ -51,24 +82,6 @@ taiga-async -> taiga-async-rabbitmq taiga-events -> taiga-events-rabbitmq This is not quite clear, but probably solved with the implementation of services. -### Init container - -Es gibt einen Init-Container mit namen *taiga-manage* im deployment. -Dieser erstellt einen Admin User mit credentials aus dem taiga-back-secret. - -#### Einen admin-user anlegen - -https://github.com/kaleidos-ventures/taiga-docker#configure-an-admin-user - -folglich: - -https://docs.djangoproject.com/en/4.2/ref/django-admin/#django-admin-createsuperuser - -Also DJANGO_SUPERUSER_TAIGAADMIN und DJANGO_SUPERUSER_PASSWORD -sollten für den Container gesetzt sein. - -Dann noch ein run befehl mit: python manage.py createsuperuser im init container unterbringen. - ### Deployments Separate deployments exist for each of the taiga modules: