diff --git a/README.md b/README.md deleted file mode 100644 index d66455c..0000000 --- a/README.md +++ /dev/null @@ -1,16 +0,0 @@ -# Projet Sécurité INFO5A 2022 - -**Auteurs**: -- Baptiste Peupier -- Wilfried Vallée -- Mihary Ranaivoson -- Yûki Vachot - -**Branches**: -- db1: Base de données Utilisateur -- db2: Base de données Log -- backend: Flask Backend -- frontend: Serveur Angular avec un autre serveur Flask Backend communiquant avec la "branche" backend -- development: non mis à jour ne pas cloner - -docker compose up pour chaque branche diff --git a/backend/__pycache__/app.cpython-310.pyc b/backend/__pycache__/app.cpython-310.pyc new file mode 100644 index 0000000..56671cd Binary files /dev/null and b/backend/__pycache__/app.cpython-310.pyc differ diff --git a/backend/__pycache__/app.cpython-38.pyc b/backend/__pycache__/app.cpython-38.pyc new file mode 100644 index 0000000..951bfbe Binary files /dev/null and b/backend/__pycache__/app.cpython-38.pyc differ diff --git a/backend/__pycache__/config.cpython-310.pyc b/backend/__pycache__/config.cpython-310.pyc new file mode 100644 index 0000000..6ca6f0b Binary files /dev/null and b/backend/__pycache__/config.cpython-310.pyc differ diff --git a/backend/__pycache__/config.cpython-38.pyc b/backend/__pycache__/config.cpython-38.pyc new file mode 100644 index 0000000..6e1dae2 Binary files /dev/null and b/backend/__pycache__/config.cpython-38.pyc differ diff --git a/backend/__pycache__/fictive_users.cpython-38.pyc b/backend/__pycache__/fictive_users.cpython-38.pyc new file mode 100644 index 0000000..477bdc3 Binary files /dev/null and b/backend/__pycache__/fictive_users.cpython-38.pyc differ diff --git a/backend/application/__pycache__/__init__.cpython-310.pyc b/backend/application/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000..4f97792 Binary files /dev/null and b/backend/application/__pycache__/__init__.cpython-310.pyc differ diff --git a/backend/application/__pycache__/__init__.cpython-38.pyc b/backend/application/__pycache__/__init__.cpython-38.pyc new file mode 100644 index 0000000..b057e9d Binary files /dev/null and b/backend/application/__pycache__/__init__.cpython-38.pyc differ diff --git a/backend/application/__pycache__/api_functions.cpython-310.pyc b/backend/application/__pycache__/api_functions.cpython-310.pyc new file mode 100644 index 0000000..037557d Binary files /dev/null and b/backend/application/__pycache__/api_functions.cpython-310.pyc differ diff --git a/backend/application/__pycache__/api_functions.cpython-38.pyc b/backend/application/__pycache__/api_functions.cpython-38.pyc new file mode 100644 index 0000000..9f49edf Binary files /dev/null and b/backend/application/__pycache__/api_functions.cpython-38.pyc differ diff --git a/backend/application/__pycache__/logs_model.cpython-310.pyc b/backend/application/__pycache__/logs_model.cpython-310.pyc new file mode 100644 index 0000000..c317af2 Binary files /dev/null and b/backend/application/__pycache__/logs_model.cpython-310.pyc differ diff --git a/backend/application/__pycache__/logs_model.cpython-38.pyc b/backend/application/__pycache__/logs_model.cpython-38.pyc new file mode 100644 index 0000000..f7aa63a Binary files /dev/null and b/backend/application/__pycache__/logs_model.cpython-38.pyc differ diff --git a/backend/application/__pycache__/responses.cpython-310.pyc b/backend/application/__pycache__/responses.cpython-310.pyc new file mode 100644 index 0000000..05d2496 Binary files /dev/null and b/backend/application/__pycache__/responses.cpython-310.pyc differ diff --git a/backend/application/__pycache__/responses.cpython-38.pyc b/backend/application/__pycache__/responses.cpython-38.pyc new file mode 100644 index 0000000..7975ba1 Binary files /dev/null and b/backend/application/__pycache__/responses.cpython-38.pyc differ diff --git a/backend/application/__pycache__/routes.cpython-310.pyc b/backend/application/__pycache__/routes.cpython-310.pyc new file mode 100644 index 0000000..d5552d7 Binary files /dev/null and b/backend/application/__pycache__/routes.cpython-310.pyc differ diff --git a/backend/application/__pycache__/routes.cpython-38.pyc b/backend/application/__pycache__/routes.cpython-38.pyc new file mode 100644 index 0000000..7a95df1 Binary files /dev/null and b/backend/application/__pycache__/routes.cpython-38.pyc differ diff --git a/backend/application/__pycache__/sessionJWT.cpython-310.pyc b/backend/application/__pycache__/sessionJWT.cpython-310.pyc new file mode 100644 index 0000000..2b9734d Binary files /dev/null and b/backend/application/__pycache__/sessionJWT.cpython-310.pyc differ diff --git a/backend/application/__pycache__/sessionJWT.cpython-38.pyc b/backend/application/__pycache__/sessionJWT.cpython-38.pyc new file mode 100644 index 0000000..2ea8bca Binary files /dev/null and b/backend/application/__pycache__/sessionJWT.cpython-38.pyc differ diff --git a/backend/application/__pycache__/users_model.cpython-310.pyc b/backend/application/__pycache__/users_model.cpython-310.pyc new file mode 100644 index 0000000..e386a6a Binary files /dev/null and b/backend/application/__pycache__/users_model.cpython-310.pyc differ diff --git a/backend/application/__pycache__/users_model.cpython-38.pyc b/backend/application/__pycache__/users_model.cpython-38.pyc new file mode 100644 index 0000000..43995d7 Binary files /dev/null and b/backend/application/__pycache__/users_model.cpython-38.pyc differ diff --git a/backend/init-db2.sql b/backend/init-db2.sql new file mode 100644 index 0000000..02ebdc9 --- /dev/null +++ b/backend/init-db2.sql @@ -0,0 +1,14 @@ +-- Table: logs + +CREATE TABLE IF NOT EXISTS logs +( + id serial PRIMARY KEY, + date timestamp NOT NULL, + id_user integer, + ip character varying(15) NOT NULL, + "table" character varying(25) NOT NULL, + action character varying(50) NOT NULL, + message character varying(512) NOT NULL, + has_succeeded boolean NOT NULL, + status_code smallint NOT NULL +); \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..10ddc98 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,17 @@ +version: '3.8' + +services: + flaskaled-srv2: + image: postgres:latest + container_name: flaskaled-srv2 + ports: + - "5434:5432" + volumes: + - ./backend/init-db2.sql:/docker-entrypoint-initdb.d/init-db2.sql + environment: + - POSTGRES_HOST=flaskaled-srv2 + - POSTGRES_PORT=5432 + - POSTGRES_DB=flaskaledDb2 + - POSTGRES_USER=flaskaled2 + - POSTGRES_PASSWORD=aled2 + restart: unless-stopped