Prowler-App Login Error 502 Bad Gateway on Kubernetes #6017
-
Hi, i just tried to install the 5.0.0 release. I converted the docker-compose with kompose to a kubernetes deployment. I am able to register a user and when i check the database, everything is stored correctly. I am not able to log in though. I enabled DEBUG for DJANGO and saw that the requests for Seems like the auth.js of the So the My ConfigMap: API_BASE_URL: https://my-api.domain.tld/api/v1
AUTH_TRUST_HOST: 'true'
DJANGO_ACCESS_TOKEN_LIFETIME: '30'
DJANGO_ALLOWED_HOSTS: localhost,127.0.0.1,prowler-api,my.domain.tld,my-api.domain.tld
DJANGO_BIND_ADDRESS: 0.0.0.0
DJANGO_CACHE_MAX_AGE: '3600'
DJANGO_DEBUG: 'False'
DJANGO_LOGGING_FORMATTER: human_readable
DJANGO_LOGGING_LEVEL: INFO
DJANGO_MANAGE_DB_PARTITIONS: 'True'
DJANGO_PORT: '8080'
DJANGO_REFRESH_TOKEN_LIFETIME: '1440'
DJANGO_SETTINGS_MODULE: config.django.production
DJANGO_STALE_WHILE_REVALIDATE: '60'
DJANGO_WORKERS: '4'
PGDATA: /pgdata/data
POSTGRES_DB: prowler_db
POSTGRES_HOST: postgres
POSTGRES_PORT: '5432'
PROWLER_API_VERSION: latest
PROWLER_UI_VERSION: latest
SITE_URL: https://my.domain.tld
UI_PORT: '3000'
VALKEY_DB: '0'
VALKEY_HOST: valkey
VALKEY_PORT: '6379' The secret related stuff is in a secret key-value map and should not be related i think. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
I was able to replicate this error on a desktop with docker compose too. When using local IP and Port, everythin is working fine! When putting the webserver & API behind a reverse proxy (nginx / caddy), the registration works but the login still not works and returns a 502. The Django also works (it updates the "last_login" in the database but In reality I am not logged in due to the 502). In contrast to the kubernetes deploy i get a bit more details:
Seems like the problem is related to the wrong callback URL: |
Beta Was this translation helpful? Give feedback.
-
I have follwed below steps to do the compose and after that I can do the http://localhost:3000/ . However end up with above error with signup and login. curl -LO https://raw.githubusercontent.com/prowler-cloud/prowler/refs/heads/master/docker-compose.yml |
Beta Was this translation helpful? Give feedback.
Cheers, This worked. 👍