Skip to content

fr-me-jim/secure-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Francisco Mendoza Jimenez
Aug 31, 2022
d11afdf · Aug 31, 2022
Aug 11, 2022
Jul 5, 2022
Aug 30, 2022
Jul 6, 2022
Jun 21, 2022
Aug 4, 2022
Mar 31, 2022
Aug 16, 2022
Aug 31, 2022
Aug 10, 2022
Aug 10, 2022
Aug 3, 2022
Jul 6, 2022
Jul 26, 2022
Feb 22, 2022

Repository files navigation

Secure Ecommerce API

Description

This project is the result of my master thesis at Polithecnic University of Catalonia (UPC). I conducted the masters in Cybersecurity, given by the Computer Science Faculty of Barcelona (FIB) and (ETSETB).

The aim of the thesis was to develop a secure API following OWASP top ten recommendations and other Organisation standards in order to provide an example of good practices and API securisation.

Configuration

The app is fully dockerized, and only requires a couple of .env files to work. The first .env file will be for the api application itself, and the .env.docker file will be for the docker-compose.yml configuration.

The api .env file need the following variables:

# Port where API will listen
PORT=...

# Database configuration
DB_PORT=...
DB_USERNAME=...
DB_PASSWORD=...
DB_HOST=...
DB_NAME=...

# JWT signature configuration
JWT_ALG=... // (Ex: "HS256")
JWT_EXPIRATION=...
JWT_ISSUER=...
JWT_AUDIENCE=...
JWT_SECRET=...

And the .env.docker file needs the following variable definitions:

# DB user for configuration
POSTGRES_USER=...
POSTGRES_PASSWORD=...

# Server user, database, schema
PG_SERVER_USER=...
PG_SERVER_PWD=...
PG_SERVER_DB=...
PG_SERVER_DB_SCHEMA=...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages