Skip to content

Conversation

@zubcevic
Copy link
Collaborator

Thank you for submitting a pull request to the WebGoat!
With these changes the application will work in java or as docker mode in the same way.

Please take a look at this and let me know what you think.
I'll need to add an extra commit to update some README. But the default will still be the same.
I tested with running in docker and executing the integration tests and this gave only two failing tests. So I'll take another close look at that

@zubcevic zubcevic requested review from aolle and nbaars November 25, 2023 09:45
@zubcevic zubcevic linked an issue Nov 25, 2023 that may be closed by this pull request
@zubcevic zubcevic self-assigned this Nov 25, 2023
@zubcevic
Copy link
Collaborator Author

The base image has been changed to be a JDK in stead of a JRE. One of the assignments for SQL Injection Mitigation relies on this. This was one of the failing tests when running the integration tests against the container. Also a default TZ environment setting has been added.

@zubcevic
Copy link
Collaborator Author

It all looks good now. Even with running with the changed host names:
podman run -it -p 127.0.0.1:8080:8080 -p 127.0.0.1:9090:9090 -e WEBGOAT_HOST=www.webgoat.local -e WEBWOLF_HOST=www.webwolf.local webgoatlocal

@zubcevic zubcevic merged commit 826887c into main Nov 27, 2023
@zubcevic zubcevic deleted the consistent-env-values branch November 27, 2023 13:35
@zubcevic zubcevic mentioned this pull request Dec 5, 2023
nbaars pushed a commit that referenced this pull request Mar 19, 2024
* organizing environment variables

* Update application-webgoat.properties

* Update pom.xml

* test without ssl

* fix docker base image and default env entries

* seperate server.address from webgoat.host and webwolf.host

* change base image and enable endpoint logging for docker as well

* change README

* change README

* make integration test able to verify against alternative host names

* use dynamic ports and remove system println
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

Successfully merging this pull request may close these issues.

some links show incorrect hostname or context path

3 participants