Skip to content

root360/simple-java-web-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DO NOT USE THIS VERSION

DO NOT

DO NOT

DO NOT

Use master branch

(based on https://github.com/julianjupiter/java-web-app-with-embedded-tomcat)

Java Web Application with Embedded Tomcat

This is a simple web application in Java with Apache Tomcat and other dependencies embedded in a JAR. This is used as showcase for root360 deployments.

Running the application

git clone https://github.com/julianjupiter/java-web-app-with-embedded-tomcat
cd simple-java-web-app
mvn clean package && bash run.sh

Open your browser: http://localhost:8080/

Creating a Release

  1. build app
    git clone https://github.com/julianjupiter/java-web-app-with-embedded-tomcat
    cd simple-java-web-app
    bash release.sh target-version
    # e.g. bash release.sh v1.0.1
    
  2. upload generated jar file from target/ to Github Releases

Developing the application

This project used pre-commit to run some code checks on every commit.

  1. install pre-commit pip install pre-commit
  2. activate pre-commit pre-commit install
  3. commit your changes

Run test-code for log4shell tests

For internal testing within this branch is an application version that is affected by log4shell. To run the test:

  1. get ID from Huntress
  2. set environment variable LOGGING_CHECK: export LOGGING_CHECK="ID-from-Huntress"
  3. set environment variable LOGGING_CHECK_45046 to check for CVE-2021-45046: export LOGGING_CHECK_45046="\${jndi:ldap://log4shell.huntress.com:1389/ID-from-Huntress}"
  4. run app: bash run.sh
  5. check the Huntress results

About

Java Web Application with Embedded Tomcat

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 92.4%
  • Shell 7.6%