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

"400 Bad Request" - "Oops... something went wrong." errors on local "DefectDojo" webpage #11317

Open
1 of 3 tasks
romboc opened this issue Nov 25, 2024 · 0 comments
Open
1 of 3 tasks

Comments

@romboc
Copy link

romboc commented Nov 25, 2024

Hello Everyone,

I'm currently trying to launch a local "DefectDojo" instance by using Kubernetes ("minikube" on my computer, running Windows 10). I'm following these instructions: https://github.com/DefectDojo/django-DefectDojo/blob/dev/readme-docs/KUBERNETES.md

I'm able to install a "Helm" chart and all the necessary pods launch successfully. I then execute the following command to be able to access the webpage on the local host:

kubectl port-forward --namespace=default service/defectdojo-django 8080:80

And that is when the problems start to appear. When I try to access the "DefectDojo" webpage (on http://127.0.0.1:8080/), I can see this:

image

The command executed above does not display any errors:

image

The only places where I can see errors are:

  • "defectdojo-django" pod:

image

  • "defectdojo-postgresql" pod:

image

Therefore, my questions would be:

  1. Am I missing something in the configuration or can the "400 Bad Request" error be caused by "Django" or "PostgreSQL" errors, pictured above?
  2. Where in the "DefectDojo" configuration can I find the "ALLOWED_HOSTS" setting? I can only find "${DD_ALLOWED_HOSTS:-}" in "docker-compose.yml", which is already set to " (asterisk)".

Please let me know if I should provide more information.

Thank you!

Expected behavior
Upon accessing the "DefectDojo" webpage, I expect to see the login form, where I could login and begin the interaction with the tool.

Deployment method (select with an X)

  • Docker Compose
  • Kubernetes
  • GoDojo

Environment information

  • Operating System: Windows 10 Enterprise 22H2
  • DefectDojo version: Chart version: 1.6.160 App version: 2.40.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant