Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Taiga: Email not working #293

Open
samaradel opened this issue Aug 20, 2024 · 8 comments
Open

Taiga: Email not working #293

samaradel opened this issue Aug 20, 2024 · 8 comments
Assignees
Labels
Milestone

Comments

@samaradel
Copy link

samaradel commented Aug 20, 2024

I created new Kanban and Scrum and modified the Email notifications to receive all messages and it doesn't work.

image

Related to #3265

We should have more hardened validation against SMTP configs

@xmonader
Copy link
Collaborator

Status?

@xmonader xmonader added this to 3.15.x Oct 14, 2024
@xmonader xmonader moved this to In Progress in 3.15.x Oct 14, 2024
@PeterNashaat
Copy link
Member

PeterNashaat commented Oct 14, 2024

@xmonader xmonader modified the milestone: 3.15.x Oct 14, 2024
@xmonader xmonader removed this from 3.15.x Oct 21, 2024
@xmonader xmonader added this to the 3.16.x milestone Oct 21, 2024
@xmonader
Copy link
Collaborator

Moved to 3.16

@PeterNashaat
Copy link
Member

  • Created a new taiga instance with smtp configurations :
    • this script here requiers all smtp envs available to start taiga with smtp configs else it will start smtp disabled
    • Checked the installed instance and i added smtp config and here is the env passed to the docker container with no smtp config
            "Env": [
                "POSTGRES_DB=taiga",
                "POSTGRES_USER=taiga",
                "POSTGRES_PASSWORD=taiga",
                "POSTGRES_HOST=taiga-db",
                "TAIGA_SECRET_KEY=taiga-back-secret-key",
                "TAIGA_SITES_SCHEME=https",
                "TAIGA_SITES_DOMAIN=tg288taigatest.gent02.test.grid.tf",
                "TAIGA_SUBPATH=",
                "RABBITMQ_USER=taiga",
                "RABBITMQ_PASS=taiga",
                "CELERY_BROKER_URL=amqp://taiga:taiga@taiga-async-rabbitmq:5672/taiga",
                "EVENTS_PUSH_BACKEND=taiga.events.backends.rabbitmq.EventsPushBackend",
                "EVENTS_PUSH_BACKEND_URL=amqp://taiga:taiga@taiga-events-rabbitmq:5672/taiga",
                "ENABLE_TELEMETRY=True",
                "ENABLE_THREEFOLD=True",
                "THREEFOLD_API_APP_SECRET=2W/qhWFeMF6XawIPuEnJ3dWge49bYZNhSsELF64daus=",
                "THREEFOLD_URL=https://login.threefold.me",
                "THREEFOLD_OPENKYC_URL=https://openkyc.live/verification/verify-sei",
                "PATH=/opt/venv/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "LANG=C.UTF-8",
                "GPG_KEY=0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D",
                "PYTHON_VERSION=3.7.12",
                "PYTHON_PIP_VERSION=21.2.4",
                "PYTHON_SETUPTOOLS_VERSION=57.5.0",
                "PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/c20b0cfd643cd4a19246ccf204e2997af70f6b21/public/get-pip.py",
                "PYTHON_GET_PIP_SHA256=fa6f3fb93cce234cd4e8dd2beb54a51ab9c247653b52855a48dd44e6b21ff28b",
                "DEBIAN_FRONTEND=noninteractive",
                "PYTHONUNBUFFERED=1",
                "PYTHONDONTWRITEBYTECODE=1",
                "PYTHONFAULTHANDLER=1",
                "GOSU_VERSION=1.12",
                "DJANGO_SETTINGS_MODULE=settings.config",
                "PUBLIC_REGISTER_ENABLED=False"
            ],

@PeterNashaat
Copy link
Member

  • Confirmed the smtp config are not passed to script from zinit log
[-] taiga: + echo Warning: Missing required env vars for smtp service! Email notifications will not be sent and will be only shown in the stdout
[+] taiga: Warning: Missing required env vars for smtp service! Email notifications will not be sent and will be only shown in the stdout
[-] taiga: + exec docker-compose -f /docker/docker-compose.yml up

@PeterNashaat
Copy link
Member

  • Eventhough i enabled tls while creating the taiga instance
image
  • After deploying it's disabled here
image

@PeterNashaat
Copy link
Member

@PeterNashaat
Copy link
Member

  • So there are 2 issue in how env works in tf_taiga.vue
    • Missing DEFAULT_FROM_EMAIL env variable , so it's not passed to the container so when the script try to verify all 7 env variables and only finds 6 variables it so it will runs taiga with no smtp config enabled
    • While testing the taiga smtp config i found out that the tls and ssl config is always disabled even though i enabled them
image
  • Fixed smtp configurations when i added a extra env to tf_taiga.vue with name DEFAULT_FROM_EMAIL
root@taiga7test:~# zinit log taiga
[-] taiga: + docker info
[-] taiga: + env
[-] taiga: + [ -z apikey ]
[-] taiga: + [ -z False ]
[-] taiga: + [ -z False ]
[-] taiga: + [ -z smtp.sendgrid.net ]
[-] taiga: + [ -z 587 ]
[-] taiga: + [ -z apikey ]
[-] taiga: + [ -z SG.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]
[-] taiga: + exec docker-compose -f /docker/docker-compose-smtp.yml -f /docker/docker-compose.yml up
[-]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants