diff --git a/owasp-top10-2021-apps/a1/ecommerce-api/Makefile b/owasp-top10-2021-apps/a1/ecommerce-api/Makefile index d5d76ad8a..24da4a39a 100644 --- a/owasp-top10-2021-apps/a1/ecommerce-api/Makefile +++ b/owasp-top10-2021-apps/a1/ecommerce-api/Makefile @@ -9,7 +9,7 @@ GODEP ?= $(GOBIN)/dep GOLINT ?= $(GOBIN)/golint GOSEC ?= $(GOBIN)/gosec -A5APIBIN ?= a5ecommerceapi +A1APIBIN ?= a1ecommerceapi COLOR_RESET = \033[0m COLOR_COMMAND = \033[36m diff --git a/owasp-top10-2021-apps/a1/ecommerce-api/deployments/api.Dockerfile b/owasp-top10-2021-apps/a1/ecommerce-api/deployments/api.Dockerfile index a1135ccda..0efdff1b0 100644 --- a/owasp-top10-2021-apps/a1/ecommerce-api/deployments/api.Dockerfile +++ b/owasp-top10-2021-apps/a1/ecommerce-api/deployments/api.Dockerfile @@ -1,6 +1,6 @@ FROM golang:1.14 -WORKDIR /go/src/github.com/globocom/secDevLabs/owasp-top10-2017-apps/a5/ecommerce-api/app +WORKDIR /go/src/github.com/globocom/secDevLabs/owasp-top10-2021-apps/a1/ecommerce-api/app COPY app/go.mod app/go.sum ./ RUN go mod download diff --git a/owasp-top10-2021-apps/a1/ecommerce-api/deployments/check-init.sh b/owasp-top10-2021-apps/a1/ecommerce-api/deployments/check-init.sh index ba9f814d2..58eed787f 100755 --- a/owasp-top10-2021-apps/a1/ecommerce-api/deployments/check-init.sh +++ b/owasp-top10-2021-apps/a1/ecommerce-api/deployments/check-init.sh @@ -9,7 +9,7 @@ COLOR_GREEN='\033[32m' COLOR_BLUE='\033[1;34m' COLOR_RESET='\033[0m' -PROJECT='A5 Vulnerable Ecommerce API' +PROJECT='A1 Vulnerable Ecommerce API' PORT=10005 TRIES=480 LOADING=0 @@ -69,4 +69,4 @@ if [ $TRIES == 0 ]; then printf "\n${COLOR_RED}SecDevLabs: Ooops! Something went wrong, please check api details for more information!\n${COLOR_RESET}" else printf "\n${COLOR_GREEN}SecDevLabs: 🔥 ${PROJECT} is now running at ${COLOR_RESET}${COLOR_BLUE}http://localhost:$PORT${COLOR_RESET}\n" -fi \ No newline at end of file +fi diff --git a/owasp-top10-2021-apps/a1/ecommerce-api/deployments/docker-compose.yml b/owasp-top10-2021-apps/a1/ecommerce-api/deployments/docker-compose.yml index 60f7ab9c3..c05be8d7c 100644 --- a/owasp-top10-2021-apps/a1/ecommerce-api/deployments/docker-compose.yml +++ b/owasp-top10-2021-apps/a1/ecommerce-api/deployments/docker-compose.yml @@ -1,8 +1,8 @@ version: '3' services: - a5api: - container_name: a5api + a1api: + container_name: a1api environment: GOPATH: /go/ API_PORT: 10005 @@ -21,7 +21,7 @@ services: ports: - "10005:10005" networks: - - a5_net + - a1_net depends_on: - mongodb @@ -38,9 +38,9 @@ services: volumes: - mongo_vol:/data/db networks: - - a5_net + - a1_net networks: - a5_net: + a1_net: volumes: docker_vol: