Bug: AUTH_SECRET missing from celery service environment in docker-compose.prod.yml
Description
The celery service in docker-compose.prod.yml is missing the AUTH_SECRET environment variable, which causes it to crash on startup with the following error:
ValueError: AUTH_SECRET environment variable is not set. Please set it in your .env file.
This happens because flowsint_core/core/auth.py validates the presence of AUTH_SECRET at import time — and celery imports from flowsint_core on startup.
Steps to reproduce
Clone the repo
Copy .env.example to .env and set all required variables including AUTH_SECRET
Run docker compose -f docker-compose.prod.yml up
flowsint-celery-prod crashes immediately and restarts in a loop
Expected behavior
Celery worker starts successfully.
Actual behavior
ValueError: Couldn't import 'flowsint_core.core.celery': AUTH_SECRET environment variable is not set.
Fix
Add AUTH_SECRET to the celery service environment block in docker-compose.prod.yml:
celery:environment:- AUTH_SECRET=${AUTH_SECRET}
Note: the api service already correctly passes this variable — it was simply omitted from celery.
Environment
OS: Windows 10 / Docker Desktop with WSL2 backend
Flowsint version: latest main
Originally created by @Quaerendir on GitHub (Apr 6, 2026).
Original GitHub issue: https://github.com/reconurge/flowsint/issues/134
## Bug: `AUTH_SECRET` missing from `celery` service environment in `docker-compose.prod.yml`
### Description
The `celery` service in `docker-compose.prod.yml` is missing the `AUTH_SECRET` environment variable, which causes it to crash on startup with the following error:
```
ValueError: AUTH_SECRET environment variable is not set. Please set it in your .env file.
```
This happens because `flowsint_core/core/auth.py` validates the presence of `AUTH_SECRET` at import time — and `celery` imports from `flowsint_core` on startup.
### Steps to reproduce
1. Clone the repo
2. Copy `.env.example` to `.env` and set all required variables including `AUTH_SECRET`
3. Run `docker compose -f docker-compose.prod.yml up`
4. `flowsint-celery-prod` crashes immediately and restarts in a loop
### Expected behavior
Celery worker starts successfully.
### Actual behavior
```
ValueError: Couldn't import 'flowsint_core.core.celery': AUTH_SECRET environment variable is not set.
```
### Fix
Add `AUTH_SECRET` to the `celery` service environment block in `docker-compose.prod.yml`:
```yaml
celery:
environment:
- AUTH_SECRET=${AUTH_SECRET}
```
Note: the `api` service already correctly passes this variable — it was simply omitted from `celery`.
### Environment
- OS: Windows 10 / Docker Desktop with WSL2 backend
- Flowsint version: latest `main`
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @Quaerendir on GitHub (Apr 6, 2026).
Original GitHub issue: https://github.com/reconurge/flowsint/issues/134
Bug:
AUTH_SECRETmissing fromceleryservice environment indocker-compose.prod.ymlDescription
The
celeryservice indocker-compose.prod.ymlis missing theAUTH_SECRETenvironment variable, which causes it to crash on startup with the following error:This happens because
flowsint_core/core/auth.pyvalidates the presence ofAUTH_SECRETat import time — andceleryimports fromflowsint_coreon startup.Steps to reproduce
.env.exampleto.envand set all required variables includingAUTH_SECRETdocker compose -f docker-compose.prod.yml upflowsint-celery-prodcrashes immediately and restarts in a loopExpected behavior
Celery worker starts successfully.
Actual behavior
Fix
Add
AUTH_SECRETto theceleryservice environment block indocker-compose.prod.yml:Note: the
apiservice already correctly passes this variable — it was simply omitted fromcelery.Environment
main@dextmorgn commented on GitHub (Apr 6, 2026):
Hey @Quaerendir, thanks for spotting this !
Fixed with this commit.