Skip to content

A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.

fix: deploy

dextmorgnefc810a8bff2
diff --git a/.env.example b/.env.example
index c35d829b..60bf5b01 100644
--- a/.env.example
+++ b/.env.example
@@ -8,6 +8,8 @@ AUTH_SECRET="superscretchangeitplz"
AUTH_TRUST_HOST=true
NEO4J_URI_BOLT=bolt://neo4j:7687
NEO4J_URI_WEB=https://neo4j.flowsint.localhost
-NEO4J_USER=neo4j
+NEO4J_USERNAME=neo4j
NEO4J_PASSWORD=password
-WHOXY_API_KEY=
\ No newline at end of file
+WHOXY_API_KEY=
+VITE_API_URL=http://127.0.0.1:5001
+DATABASE_URL=postgresql://flowsint:flowsint@localhost:5433/flowsint
diff --git a/docker-compose.yml b/docker-compose.yml
index e69c6b26..258b66c0 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,30 +1,6 @@
name: flowsint
services:
- # Traefik reverse proxy
- reverse-proxy:
- image: traefik:v3.1
- container_name: traefik-reverse-proxy
- command:
- - "--api.insecure=true"
- - "--providers.docker"
- - "--entrypoints.ws.address=:80"
- - "--entrypoints.websecure.address=:443"
- - "--entrypoints.websecure.http.tls.certresolver=myresolver"
- - "--providers.file.filename=/etc/traefik/dynamic.yml"
- - "--providers.file.watch=true"
- ports:
- - "80:80"
- - "443:443"
- - "8080:8080" # Dashboard Traefik
- restart: unless-stopped
- volumes:
- - ./certs:/etc/traefik/certs
- - ./dynamic.yml:/etc/traefik/dynamic.yml
- - /var/run/docker.sock:/var/run/docker.sock
- networks:
- - traefik
-
# PostgreSQL database
postgres:
image: postgres:15
@@ -39,72 +15,8 @@ services:
volumes:
- pg_data:/var/lib/postgresql/data
networks:
- - traefik
-
- # Frontend Electron/Vite
- # web:
- # build:
- # context: flowsint-app
- # dockerfile: Dockerfile
- # container_name: flowsint-app
- # ports:
- # - "3000:3000"
- # env_file:
- # - .env
- # networks:
- # - traefik
- # labels:
- # - "traefik.enable=true"
- # - "traefik.http.routers.web.rule=Host(`app.flowsint.localhost`)"
- # - "traefik.http.services.web.loadbalancer.server.port=3000"
- # - "traefik.http.routers.web.entrypoints=websecure"
-
- # FastAPI backend
- api:
- build:
- context: flowsint-api
- dockerfile: Dockerfile
- args:
- GITHUB_TOKEN: ${GITHUB_TOKEN}
- container_name: flowsint-api
- ports:
- - "5000:5000"
- depends_on:
- - redis
- - neo4j
- - postgres
- env_file:
- - .env
- command: ["/app/entrypoint.sh", "app"]
- restart: always
- networks:
- - traefik
- labels:
- - "traefik.enable=true"
- - "traefik.http.routers.api.rule=Host(`api.flowsint.localhost`)"
- - "traefik.http.services.api.loadbalancer.server.port=5000"
- - "traefik.http.routers.api.entrypoints=websecure"
-
- # Celery worker
- celery:
- build:
- context: flowsint-api
- dockerfile: Dockerfile
- args:
- GITHUB_TOKEN: ${GITHUB_TOKEN}
- container_name: celery-worker
- depends_on:
- - redis
- - api
- - neo4j
- - postgres
- env_file:
- - .env
- command: ["/app/entrypoint.sh", "celery"]
- restart: always
- networks:
- - traefik
-
+ - flowsint_network
+
# Redis for Celery & cache
redis:
image: redis:alpine
@@ -112,7 +24,7 @@ services:
ports:
- "6379:6379"
networks:
- - traefik
+ - flowsint_network
# Neo4j graph database
neo4j:
@@ -122,7 +34,7 @@ services:
- "7474:7474" # Web UI
- "7687:7687" # Bolt
environment:
- - NEO4J_AUTH=${NEO4J_USER}/${NEO4J_PASSWORD}
+ - NEO4J_AUTH=${NEO4J_USERNAME}/${NEO4J_PASSWORD}
- NEO4J_PLUGINS=["apoc"]
- NEO4J_apoc_export_file_enabled=true
- NEO4J_apoc_import_file_enabled=true
@@ -134,16 +46,11 @@ services:
- neo4j_plugins:/plugins
restart: unless-stopped
networks:
- - traefik
- labels:
- - "traefik.enable=true"
- - "traefik.http.routers.neo4j.rule=Host(`neo4j.flowsint.localhost`)"
- - "traefik.http.services.neo4j.loadbalancer.server.port=7474"
- - "traefik.http.routers.neo4j.entrypoints=websecure"
+ - flowsint_network
networks:
- traefik:
- name: traefik
+ flowsint_network:
+ name: flowsint_network
driver: bridge
volumes:
diff --git a/flowsint-app/src/renderer/src/routes/register.tsx b/flowsint-app/src/renderer/src/routes/register.tsx
index d5d6ebcd..56dd200f 100644
--- a/flowsint-app/src/renderer/src/routes/register.tsx
+++ b/flowsint-app/src/renderer/src/routes/register.tsx
@@ -1,160 +1,130 @@
+// src/routes/register.tsx
import { createFileRoute, Link } from '@tanstack/react-router';
import { useRegister } from '@/hooks/use-auth';
-import { useForm } from 'react-hook-form';
+import { useForm, FormProvider } from 'react-hook-form';
import { z } from 'zod';
import { zodResolver } from '@hookform/resolvers/zod';
import FormField from '@/components/shared/form-field';
import { Button } from '@/components/ui/button';
export const Route = createFileRoute('/register')({
- component: Register,
-})
+ component: Register,
+});
-const registerSchema = z.object({
- username: z.string()
- .min(3, 'Le nom d\'utilisateur doit contenir au moins 3 caractères')
- .max(50, 'Le nom d\'utilisateur ne peut pas dépasser 50 caractères'),
- email: z.string()
- .email('Veuillez entrer une adresse email valide'),
- password: z.string()
- .min(6, 'Le mot de passe doit contenir au moins 6 caractères'),
- confirmPassword: z.string()
-}).refine((data) => data.password === data.confirmPassword, {
+const registerSchema = z
+ .object({
+ username: z
+ .string()
+ .min(3, "Le nom d'utilisateur doit contenir au moins 3 caractères")
+ .max(50, "Le nom d'utilisateur ne peut pas dépasser 50 caractères"),
+ email: z.string().email('Veuillez entrer une adresse email valide'),
+ password: z.string().min(6, 'Le mot de passe doit contenir au moins 6 caractères'),
+ confirmPassword: z.string(),
+ })
+ .refine((data) => data.password === data.confirmPassword, {
message: 'Les mots de passe ne correspondent pas',
path: ['confirmPassword'],
-});
+ });
-// Type inféré à partir du schéma Zod
type RegisterFormValues = z.infer<typeof registerSchema>;
function Register() {
- // Initialisation de React Hook Form avec Zod
- const {
- register,
- handleSubmit,
- formState: { errors, isSubmitting }
- } = useForm<RegisterFormValues>({
- resolver: zodResolver(registerSchema),
- defaultValues: {
- username: '',
- email: '',
- password: '',
- confirmPassword: '',
- }
- });
+ const methods = useForm<RegisterFormValues>({
+ resolver: zodResolver(registerSchema),
+ defaultValues: {
+ username: '',
+ email: '',
+ password: '',
+ confirmPassword: '',
+ },
+ });
+
+ const registerMutation = useRegister();
+
+ const onSubmit = async (data: RegisterFormValues) => {
+ try {
+ const { confirmPassword, ...registerData } = data;
+ await registerMutation.mutateAsync(registerData);
+ } catch (error) {
+ console.error("Erreur d'inscription:", error);
+ }
+ };
+
+ return (
+ <div className="min-h-screen flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8">
+ <div className="max-w-md w-full space-y-8">
+ <div>
+ <h2 className="mt-6 text-center text-3xl font-extrabold">Create an account</h2>
+ </div>
- // Hook d'inscription
- const registerMutation = useRegister();
+ <FormProvider {...methods}>
+ <form className="mt-8 space-y-6" onSubmit={methods.handleSubmit(onSubmit)}>
+ {registerMutation.error && (
+ <div className="p-3 mb-4 text-sm bg-red-100 border border-red-400 text-red-700 rounded">
+ {registerMutation.error instanceof Error
+ ? registerMutation.error.message
+ : 'An error occurred registering.'}
+ </div>
+ )}
- // Gestion de la soumission du formulaire
- const onSubmit = async (data: RegisterFormValues) => {
- try {
- // Soumettre le formulaire d'inscription (sans confirmPassword)
- const { confirmPassword, ...registerData } = data;
- await registerMutation.mutateAsync(registerData);
- // La redirection est gérée dans le hook useRegister
- } catch (error) {
- console.error('Erreur d\'inscription:', error);
- }
- };
+ <div className="rounded-md shadow-sm space-y-4">
+ <FormField name="username" label="Username" />
+ <FormField name="email" label="Email" type="email" />
+ <FormField name="password" label="Password" type="password" />
+ <FormField name="confirmPassword" label="Confirm password" type="password" />
+ </div>
- return (
- <div className="min-h-screen flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8">
- <div className="max-w-md w-full space-y-8">
- <div>
- <h2 className="mt-6 text-center text-3xl font-extrabold">
- Create an account
- </h2>
- </div>
- <form className="mt-8 space-y-6" onSubmit={handleSubmit(onSubmit)}>
- {registerMutation.error && (
- <div className="p-3 mb-4 text-sm bg-red-100 border border-red-400 text-red-700 rounded">
- {registerMutation.error instanceof Error
- ? registerMutation.error.message
- : 'An error occured registering.'}
- </div>
- )}
- <div className="rounded-md shadow-sm space-y-4">
- <div>
- <FormField
- label="Username"
- id="username"
- {...register('username')}
- type="text"
- disabled={registerMutation.isPending}
- />
- {errors.username && (
- <p className="mt-1 text-sm text-red-600">{errors.username.message}</p>
- )}
- </div>
- <div>
- <FormField
- label="Email"
- id="email"
- {...register('email')}
- type="email"
- disabled={registerMutation.isPending}
- />
- {errors.email && (
- <p className="mt-1 text-sm text-red-600">{errors.email.message}</p>
- )}
- </div>
+ <div>
+ <Button
+ type="submit"
+ disabled={registerMutation.isPending || methods.formState.isSubmitting}
+ className="group relative w-full flex justify-center py-2 px-4 border border-transparent text-sm font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2"
+ >
+ {registerMutation.isPending || methods.formState.isSubmitting ? (
+ <span className="flex items-center">
+ <svg
+ className="animate-spin -ml-1 mr-3 h-5 w-5 text-white"
+ xmlns="http://www.w3.org/2000/svg"
+ fill="none"
+ viewBox="0 0 24 24"
+ >
+ <circle
+ className="opacity-25"
+ cx="12"
+ cy="12"
+ r="10"
+ stroke="currentColor"
+ strokeWidth="4"
+ ></circle>
+ <path
+ className="opacity-75"
+ fill="currentColor"
+ d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2
+ 5.291A7.962 7.962 0 014 12H0c0
+ 3.042 1.135 5.824 3 7.938l3-2.647z"
+ ></path>
+ </svg>
+ Registering...
+ </span>
+ ) : (
+ 'Register'
+ )}
+ </Button>
+ </div>
+ </form>
+ </FormProvider>
- {/* Champ mot de passe */}
- <div>
- <FormField
- label="Password"
- id="password"
- {...register('password')}
- type="password"
- disabled={registerMutation.isPending}
- />
- {errors.password && (
- <p className="mt-1 text-sm text-red-600">{errors.password.message}</p>
- )}
- </div>
- <div>
- <FormField
- label="Confirm password"
- id="confirmPassword"
- {...register('confirmPassword')}
- type="password"
- disabled={registerMutation.isPending}
- />
- {errors.confirmPassword && (
- <p className="mt-1 text-sm text-red-600">{errors.confirmPassword.message}</p>
- )}
- </div>
- </div>
- <div>
- <Button
- type="submit"
- disabled={registerMutation.isPending || isSubmitting}
- className="group relative w-full flex justify-center py-2 px-4 border border-transparent text-sm font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2"
- >
- {registerMutation.isPending || isSubmitting ? (
- <span className="flex items-center">
- <svg className="animate-spin -ml-1 mr-3 h-5 w-5 text-white" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
- <circle className="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" strokeWidth="4"></circle>
- <path className="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
- </svg>
- Registering...
- </span>
- ) : 'Register'}
- </Button>
- </div>
- </form>
- <div className="text-center mt-4">
- <p className="text-sm">
- Already have an account ?{' '}
- <Link to="/login" className="font-medium text-primary underline">
- Login
- </Link>
- </p>
- </div>
- </div >
- </div >
- );
-};
+ <div className="text-center mt-4">
+ <p className="text-sm">
+ Already have an account ?{' '}
+ <Link to="/login" className="font-medium text-primary underline">
+ Login
+ </Link>
+ </p>
+ </div>
+ </div>
+ </div>
+ );
+}
-export default Register;
\ No newline at end of file
+export default Register;
diff --git a/flowsint-transforms/poetry.lock b/flowsint-transforms/poetry.lock
index 69c4e58a..308bceea 100644
--- a/flowsint-transforms/poetry.lock
+++ b/flowsint-transforms/poetry.lock
@@ -1,4 +1,4 @@
-# This file is automatically @generated by Poetry 2.1.4 and should not be changed by hand.
+# This file is automatically @generated by Poetry 2.2.0 and should not be changed by hand.
[[package]]
name = "about-time"
@@ -1038,49 +1038,49 @@ srsly = ">=2.4.0,<3.0.0"
[[package]]
name = "cryptography"
-version = "45.0.6"
+version = "45.0.7"
description = "cryptography is a package which provides cryptographic recipes and primitives to Python developers."
optional = false
python-versions = "!=3.9.0,!=3.9.1,>=3.7"
groups = ["main"]
files = [
- {file = "cryptography-45.0.6-cp311-abi3-macosx_10_9_universal2.whl", hash = "sha256:048e7ad9e08cf4c0ab07ff7f36cc3115924e22e2266e034450a890d9e312dd74"},
- {file = "cryptography-45.0.6-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:44647c5d796f5fc042bbc6d61307d04bf29bccb74d188f18051b635f20a9c75f"},
- {file = "cryptography-45.0.6-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:e40b80ecf35ec265c452eea0ba94c9587ca763e739b8e559c128d23bff7ebbbf"},
- {file = "cryptography-45.0.6-cp311-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:00e8724bdad672d75e6f069b27970883179bd472cd24a63f6e620ca7e41cc0c5"},
- {file = "cryptography-45.0.6-cp311-abi3-manylinux_2_28_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:7a3085d1b319d35296176af31c90338eeb2ddac8104661df79f80e1d9787b8b2"},
- {file = "cryptography-45.0.6-cp311-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:1b7fa6a1c1188c7ee32e47590d16a5a0646270921f8020efc9a511648e1b2e08"},
- {file = "cryptography-45.0.6-cp311-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:275ba5cc0d9e320cd70f8e7b96d9e59903c815ca579ab96c1e37278d231fc402"},
- {file = "cryptography-45.0.6-cp311-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:f4028f29a9f38a2025abedb2e409973709c660d44319c61762202206ed577c42"},
- {file = "cryptography-45.0.6-cp311-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:ee411a1b977f40bd075392c80c10b58025ee5c6b47a822a33c1198598a7a5f05"},
- {file = "cryptography-45.0.6-cp311-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:e2a21a8eda2d86bb604934b6b37691585bd095c1f788530c1fcefc53a82b3453"},
- {file = "cryptography-45.0.6-cp311-abi3-win32.whl", hash = "sha256:d063341378d7ee9c91f9d23b431a3502fc8bfacd54ef0a27baa72a0843b29159"},
- {file = "cryptography-45.0.6-cp311-abi3-win_amd64.whl", hash = "sha256:833dc32dfc1e39b7376a87b9a6a4288a10aae234631268486558920029b086ec"},
- {file = "cryptography-45.0.6-cp37-abi3-macosx_10_9_universal2.whl", hash = "sha256:3436128a60a5e5490603ab2adbabc8763613f638513ffa7d311c900a8349a2a0"},
- {file = "cryptography-45.0.6-cp37-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:0d9ef57b6768d9fa58e92f4947cea96ade1233c0e236db22ba44748ffedca394"},
- {file = "cryptography-45.0.6-cp37-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:ea3c42f2016a5bbf71825537c2ad753f2870191134933196bee408aac397b3d9"},
- {file = "cryptography-45.0.6-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:20ae4906a13716139d6d762ceb3e0e7e110f7955f3bc3876e3a07f5daadec5f3"},
- {file = "cryptography-45.0.6-cp37-abi3-manylinux_2_28_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:2dac5ec199038b8e131365e2324c03d20e97fe214af051d20c49db129844e8b3"},
- {file = "cryptography-45.0.6-cp37-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:18f878a34b90d688982e43f4b700408b478102dd58b3e39de21b5ebf6509c301"},
- {file = "cryptography-45.0.6-cp37-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:5bd6020c80c5b2b2242d6c48487d7b85700f5e0038e67b29d706f98440d66eb5"},
- {file = "cryptography-45.0.6-cp37-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:eccddbd986e43014263eda489abbddfbc287af5cddfd690477993dbb31e31016"},
- {file = "cryptography-45.0.6-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:550ae02148206beb722cfe4ef0933f9352bab26b087af00e48fdfb9ade35c5b3"},
- {file = "cryptography-45.0.6-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:5b64e668fc3528e77efa51ca70fadcd6610e8ab231e3e06ae2bab3b31c2b8ed9"},
- {file = "cryptography-45.0.6-cp37-abi3-win32.whl", hash = "sha256:780c40fb751c7d2b0c6786ceee6b6f871e86e8718a8ff4bc35073ac353c7cd02"},
- {file = "cryptography-45.0.6-cp37-abi3-win_amd64.whl", hash = "sha256:20d15aed3ee522faac1a39fbfdfee25d17b1284bafd808e1640a74846d7c4d1b"},
- {file = "cryptography-45.0.6-pp310-pypy310_pp73-macosx_10_9_x86_64.whl", hash = "sha256:705bb7c7ecc3d79a50f236adda12ca331c8e7ecfbea51edd931ce5a7a7c4f012"},
- {file = "cryptography-45.0.6-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:826b46dae41a1155a0c0e66fafba43d0ede1dc16570b95e40c4d83bfcf0a451d"},
- {file = "cryptography-45.0.6-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:cc4d66f5dc4dc37b89cfef1bd5044387f7a1f6f0abb490815628501909332d5d"},
- {file = "cryptography-45.0.6-pp310-pypy310_pp73-manylinux_2_34_aarch64.whl", hash = "sha256:f68f833a9d445cc49f01097d95c83a850795921b3f7cc6488731e69bde3288da"},
- {file = "cryptography-45.0.6-pp310-pypy310_pp73-manylinux_2_34_x86_64.whl", hash = "sha256:3b5bf5267e98661b9b888a9250d05b063220dfa917a8203744454573c7eb79db"},
- {file = "cryptography-45.0.6-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:2384f2ab18d9be88a6e4f8972923405e2dbb8d3e16c6b43f15ca491d7831bd18"},
- {file = "cryptography-45.0.6-pp311-pypy311_pp73-macosx_10_9_x86_64.whl", hash = "sha256:fc022c1fa5acff6def2fc6d7819bbbd31ccddfe67d075331a65d9cfb28a20983"},
- {file = "cryptography-45.0.6-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:3de77e4df42ac8d4e4d6cdb342d989803ad37707cf8f3fbf7b088c9cbdd46427"},
- {file = "cryptography-45.0.6-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:599c8d7df950aa68baa7e98f7b73f4f414c9f02d0e8104a30c0182a07732638b"},
- {file = "cryptography-45.0.6-pp311-pypy311_pp73-manylinux_2_34_aarch64.whl", hash = "sha256:31a2b9a10530a1cb04ffd6aa1cd4d3be9ed49f7d77a4dafe198f3b382f41545c"},
- {file = "cryptography-45.0.6-pp311-pypy311_pp73-manylinux_2_34_x86_64.whl", hash = "sha256:e5b3dda1b00fb41da3af4c5ef3f922a200e33ee5ba0f0bc9ecf0b0c173958385"},
- {file = "cryptography-45.0.6-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:629127cfdcdc6806dfe234734d7cb8ac54edaf572148274fa377a7d3405b0043"},
- {file = "cryptography-45.0.6.tar.gz", hash = "sha256:5c966c732cf6e4a276ce83b6e4c729edda2df6929083a952cc7da973c539c719"},
+ {file = "cryptography-45.0.7-cp311-abi3-macosx_10_9_universal2.whl", hash = "sha256:3be4f21c6245930688bd9e162829480de027f8bf962ede33d4f8ba7d67a00cee"},
+ {file = "cryptography-45.0.7-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:67285f8a611b0ebc0857ced2081e30302909f571a46bfa7a3cc0ad303fe015c6"},
+ {file = "cryptography-45.0.7-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:577470e39e60a6cd7780793202e63536026d9b8641de011ed9d8174da9ca5339"},
+ {file = "cryptography-45.0.7-cp311-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:4bd3e5c4b9682bc112d634f2c6ccc6736ed3635fc3319ac2bb11d768cc5a00d8"},
+ {file = "cryptography-45.0.7-cp311-abi3-manylinux_2_28_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:465ccac9d70115cd4de7186e60cfe989de73f7bb23e8a7aa45af18f7412e75bf"},
+ {file = "cryptography-45.0.7-cp311-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:16ede8a4f7929b4b7ff3642eba2bf79aa1d71f24ab6ee443935c0d269b6bc513"},
+ {file = "cryptography-45.0.7-cp311-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:8978132287a9d3ad6b54fcd1e08548033cc09dc6aacacb6c004c73c3eb5d3ac3"},
+ {file = "cryptography-45.0.7-cp311-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:b6a0e535baec27b528cb07a119f321ac024592388c5681a5ced167ae98e9fff3"},
+ {file = "cryptography-45.0.7-cp311-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:a24ee598d10befaec178efdff6054bc4d7e883f615bfbcd08126a0f4931c83a6"},
+ {file = "cryptography-45.0.7-cp311-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:fa26fa54c0a9384c27fcdc905a2fb7d60ac6e47d14bc2692145f2b3b1e2cfdbd"},
+ {file = "cryptography-45.0.7-cp311-abi3-win32.whl", hash = "sha256:bef32a5e327bd8e5af915d3416ffefdbe65ed975b646b3805be81b23580b57b8"},
+ {file = "cryptography-45.0.7-cp311-abi3-win_amd64.whl", hash = "sha256:3808e6b2e5f0b46d981c24d79648e5c25c35e59902ea4391a0dcb3e667bf7443"},
+ {file = "cryptography-45.0.7-cp37-abi3-macosx_10_9_universal2.whl", hash = "sha256:bfb4c801f65dd61cedfc61a83732327fafbac55a47282e6f26f073ca7a41c3b2"},
+ {file = "cryptography-45.0.7-cp37-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:81823935e2f8d476707e85a78a405953a03ef7b7b4f55f93f7c2d9680e5e0691"},
+ {file = "cryptography-45.0.7-cp37-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:3994c809c17fc570c2af12c9b840d7cea85a9fd3e5c0e0491f4fa3c029216d59"},
+ {file = "cryptography-45.0.7-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:dad43797959a74103cb59c5dac71409f9c27d34c8a05921341fb64ea8ccb1dd4"},
+ {file = "cryptography-45.0.7-cp37-abi3-manylinux_2_28_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:ce7a453385e4c4693985b4a4a3533e041558851eae061a58a5405363b098fcd3"},
+ {file = "cryptography-45.0.7-cp37-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:b04f85ac3a90c227b6e5890acb0edbaf3140938dbecf07bff618bf3638578cf1"},
+ {file = "cryptography-45.0.7-cp37-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:48c41a44ef8b8c2e80ca4527ee81daa4c527df3ecbc9423c41a420a9559d0e27"},
+ {file = "cryptography-45.0.7-cp37-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:f3df7b3d0f91b88b2106031fd995802a2e9ae13e02c36c1fc075b43f420f3a17"},
+ {file = "cryptography-45.0.7-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:dd342f085542f6eb894ca00ef70236ea46070c8a13824c6bde0dfdcd36065b9b"},
+ {file = "cryptography-45.0.7-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:1993a1bb7e4eccfb922b6cd414f072e08ff5816702a0bdb8941c247a6b1b287c"},
+ {file = "cryptography-45.0.7-cp37-abi3-win32.whl", hash = "sha256:18fcf70f243fe07252dcb1b268a687f2358025ce32f9f88028ca5c364b123ef5"},
+ {file = "cryptography-45.0.7-cp37-abi3-win_amd64.whl", hash = "sha256:7285a89df4900ed3bfaad5679b1e668cb4b38a8de1ccbfc84b05f34512da0a90"},
+ {file = "cryptography-45.0.7-pp310-pypy310_pp73-macosx_10_9_x86_64.whl", hash = "sha256:de58755d723e86175756f463f2f0bddd45cc36fbd62601228a3f8761c9f58252"},
+ {file = "cryptography-45.0.7-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:a20e442e917889d1a6b3c570c9e3fa2fdc398c20868abcea268ea33c024c4083"},
+ {file = "cryptography-45.0.7-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:258e0dff86d1d891169b5af222d362468a9570e2532923088658aa866eb11130"},
+ {file = "cryptography-45.0.7-pp310-pypy310_pp73-manylinux_2_34_aarch64.whl", hash = "sha256:d97cf502abe2ab9eff8bd5e4aca274da8d06dd3ef08b759a8d6143f4ad65d4b4"},
+ {file = "cryptography-45.0.7-pp310-pypy310_pp73-manylinux_2_34_x86_64.whl", hash = "sha256:c987dad82e8c65ebc985f5dae5e74a3beda9d0a2a4daf8a1115f3772b59e5141"},
+ {file = "cryptography-45.0.7-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:c13b1e3afd29a5b3b2656257f14669ca8fa8d7956d509926f0b130b600b50ab7"},
+ {file = "cryptography-45.0.7-pp311-pypy311_pp73-macosx_10_9_x86_64.whl", hash = "sha256:4a862753b36620af6fc54209264f92c716367f2f0ff4624952276a6bbd18cbde"},
+ {file = "cryptography-45.0.7-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:06ce84dc14df0bf6ea84666f958e6080cdb6fe1231be2a51f3fc1267d9f3fb34"},
+ {file = "cryptography-45.0.7-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:d0c5c6bac22b177bf8da7435d9d27a6834ee130309749d162b26c3105c0795a9"},
+ {file = "cryptography-45.0.7-pp311-pypy311_pp73-manylinux_2_34_aarch64.whl", hash = "sha256:2f641b64acc00811da98df63df7d59fd4706c0df449da71cb7ac39a0732b40ae"},
+ {file = "cryptography-45.0.7-pp311-pypy311_pp73-manylinux_2_34_x86_64.whl", hash = "sha256:f5414a788ecc6ee6bc58560e85ca624258a55ca434884445440a810796ea0e0b"},
+ {file = "cryptography-45.0.7-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:1f3d56f73595376f4244646dd5c5870c14c196949807be39e79e7bd9bac3da63"},
+ {file = "cryptography-45.0.7.tar.gz", hash = "sha256:4b1654dfc64ea479c242508eb8c724044f1e964a47d1d1cacc5132292d851971"},
]
[package.dependencies]
@@ -1093,7 +1093,7 @@ nox = ["nox (>=2024.4.15)", "nox[uv] (>=2024.3.2) ; python_full_version >= \"3.8
pep8test = ["check-sdist ; python_full_version >= \"3.8.0\"", "click (>=8.0.1)", "mypy (>=1.4)", "ruff (>=0.3.6)"]
sdist = ["build (>=1.0.0)"]
ssh = ["bcrypt (>=3.1.5)"]
-test = ["certifi (>=2024)", "cryptography-vectors (==45.0.6)", "pretend (>=0.7)", "pytest (>=7.4.0)", "pytest-benchmark (>=4.0)", "pytest-cov (>=2.10.1)", "pytest-xdist (>=3.5.0)"]
+test = ["certifi (>=2024)", "cryptography-vectors (==45.0.7)", "pretend (>=0.7)", "pytest (>=7.4.0)", "pytest-benchmark (>=4.0)", "pytest-cov (>=2.10.1)", "pytest-xdist (>=3.5.0)"]
test-randomorder = ["pytest-randomly"]
[[package]]
@@ -1197,25 +1197,26 @@ wmi = ["wmi (>=1.5.1)"]
[[package]]
name = "docker"
-version = "6.1.3"
+version = "7.1.0"
description = "A Python library for the Docker Engine API."
optional = false
-python-versions = ">=3.7"
+python-versions = ">=3.8"
groups = ["main"]
files = [
- {file = "docker-6.1.3-py3-none-any.whl", hash = "sha256:aecd2277b8bf8e506e484f6ab7aec39abe0038e29fa4a6d3ba86c3fe01844ed9"},
- {file = "docker-6.1.3.tar.gz", hash = "sha256:aa6d17830045ba5ef0168d5eaa34d37beeb113948c413affe1d5991fc11f9a20"},
+ {file = "docker-7.1.0-py3-none-any.whl", hash = "sha256:c96b93b7f0a746f9e77d325bcfb87422a3d8bd4f03136ae8a85b37f1898d5fc0"},
+ {file = "docker-7.1.0.tar.gz", hash = "sha256:ad8c70e6e3f8926cb8a92619b832b4ea5299e2831c14284663184e200546fa6c"},
]
[package.dependencies]
-packaging = ">=14.0"
pywin32 = {version = ">=304", markers = "sys_platform == \"win32\""}
requests = ">=2.26.0"
urllib3 = ">=1.26.0"
-websocket-client = ">=0.32.0"
[package.extras]
+dev = ["coverage (==7.2.7)", "pytest (==7.4.2)", "pytest-cov (==4.1.0)", "pytest-timeout (==2.1.0)", "ruff (==0.1.8)"]
+docs = ["myst-parser (==0.18.0)", "sphinx (==5.1.1)"]
ssh = ["paramiko (>=2.4.3)"]
+websockets = ["websocket-client (>=1.3.0)"]
[[package]]
name = "ecdsa"
@@ -1357,7 +1358,8 @@ develop = true
alembic = "1.13.0"
asyncpg = "^0.29"
celery = "^5.3"
-docker = "^6.1"
+cryptography = "^45.0.7"
+docker = "^7.1.0"
flowsint-transforms = {path = "../flowsint-transforms", develop = true}
neo4j = "^5.0"
networkx = "^2.6.3"
@@ -1365,6 +1367,7 @@ passlib = {version = "^1.7", extras = ["bcrypt"]}
phonenumbers = "^9.0.8"
psycopg2-binary = "^2.9"
pydantic = {version = "^2.11.7", extras = ["email"]}
+pytest = "^8.4.2"
python-dotenv = "^1.0"
python-jose = {version = "^3.3", extras = ["cryptography"]}
python-multipart = "^0.0.20"
@@ -1779,7 +1782,7 @@ version = "2.1.0"
description = "brain-dead simple config-ini parsing"
optional = false
python-versions = ">=3.8"
-groups = ["dev"]
+groups = ["main", "dev"]
files = [
{file = "iniconfig-2.1.0-py3-none-any.whl", hash = "sha256:9deba5723312380e77435581c6bf4935c94cbfab9b1ed33ef8d238ea168eb760"},
{file = "iniconfig-2.1.0.tar.gz", hash = "sha256:3abbd2e30b36733fee78f9c7f7308f2d0050e88f0087fd25c2645f63c773e1c7"},
@@ -3193,7 +3196,7 @@ version = "1.6.0"
description = "plugin and hook calling mechanisms for python"
optional = false
python-versions = ">=3.9"
-groups = ["dev"]
+groups = ["main", "dev"]
files = [
{file = "pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746"},
{file = "pluggy-1.6.0.tar.gz", hash = "sha256:7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3"},
@@ -3777,7 +3780,7 @@ version = "2.19.2"
description = "Pygments is a syntax highlighting package written in Python."
optional = false
python-versions = ">=3.8"
-groups = ["main"]
+groups = ["main", "dev"]
files = [
{file = "pygments-2.19.2-py3-none-any.whl", hash = "sha256:86540386c03d588bb81d44bc3928634ff26449851e99741617ecb9037ee5ec0b"},
{file = "pygments-2.19.2.tar.gz", hash = "sha256:636cb2477cec7f8952536970bc533bc43743542f70392ae026374600add5b887"},
@@ -3924,24 +3927,25 @@ files = [
[[package]]
name = "pytest"
-version = "7.4.4"
+version = "8.4.2"
description = "pytest: simple powerful testing with Python"
optional = false
-python-versions = ">=3.7"
-groups = ["dev"]
+python-versions = ">=3.9"
+groups = ["main", "dev"]
files = [
- {file = "pytest-7.4.4-py3-none-any.whl", hash = "sha256:b090cdf5ed60bf4c45261be03239c2c1c22df034fbffe691abe93cd80cea01d8"},
- {file = "pytest-7.4.4.tar.gz", hash = "sha256:2cf0005922c6ace4a3e2ec8b4080eb0d9753fdc93107415332f50ce9e7994280"},
+ {file = "pytest-8.4.2-py3-none-any.whl", hash = "sha256:872f880de3fc3a5bdc88a11b39c9710c3497a547cfa9320bc3c5e62fbf272e79"},
+ {file = "pytest-8.4.2.tar.gz", hash = "sha256:86c0d0b93306b961d58d62a4db4879f27fe25513d4b969df351abdddb3c30e01"},
]
[package.dependencies]
-colorama = {version = "*", markers = "sys_platform == \"win32\""}
-iniconfig = "*"
-packaging = "*"
-pluggy = ">=0.12,<2.0"
+colorama = {version = ">=0.4", markers = "sys_platform == \"win32\""}
+iniconfig = ">=1"
+packaging = ">=20"
+pluggy = ">=1.5,<2"
+pygments = ">=2.7.2"
[package.extras]
-testing = ["argcomplete", "attrs (>=19.2.0)", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"]
+dev = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "requests", "setuptools", "xmlschema"]
[[package]]
name = "pytest-asyncio"
@@ -5416,23 +5420,6 @@ files = [
{file = "webencodings-0.5.1.tar.gz", hash = "sha256:b36a1c245f2d304965eb4e0a82848379241dc04b865afcc4aab16748587e1923"},
]
-[[package]]
-name = "websocket-client"
-version = "1.8.0"
-description = "WebSocket client for Python with low level API options"
-optional = false
-python-versions = ">=3.8"
-groups = ["main"]
-files = [
- {file = "websocket_client-1.8.0-py3-none-any.whl", hash = "sha256:17b44cc997f5c498e809b22cdf2d9c7a9e71c02c8cc2b6c56e7c2d1239bfa526"},
- {file = "websocket_client-1.8.0.tar.gz", hash = "sha256:3239df9f44da632f96012472805d40a23281a991027ce11d2f45a6f24ac4c3da"},
-]
-
-[package.extras]
-docs = ["Sphinx (>=6.0)", "myst-parser (>=2.0.0)", "sphinx-rtd-theme (>=1.1.0)"]
-optional = ["python-socks", "wsaccel"]
-test = ["websockets"]
-
[[package]]
name = "werkzeug"
version = "3.1.3"
@@ -5706,4 +5693,4 @@ propcache = ">=0.2.1"
[metadata]
lock-version = "2.1"
python-versions = ">=3.11,<3.13"
-content-hash = "fc6be48ffd5af37cd5aaee567fcf5307dfd1bd8ba3dac98c380bcbe779df48e0"
+content-hash = "ea3527dab73a9299752b1009182b775e80c110741c58a69247c9424d89d0eb68"
diff --git a/start.sh b/start.sh
index db2d1dc6..eb3bf30e 100755
--- a/start.sh
+++ b/start.sh
@@ -25,12 +25,14 @@ start_service() {
echo ""
eval "$2=$pid" # stocker le PID dans la variable donnée
}
+cd "$PROJECT_ROOT/"
+docker compose up -d
cd "$PROJECT_ROOT/flowsint-api"
start_service "API server" poetry run uvicorn app.main:app --host 0.0.0.0 --port 5001 --reload
cd "$PROJECT_ROOT/flowsint-app"
-start_service "Frontend" yarn dev
+start_service "Frontend" npx electron-vite dev
cd "$PROJECT_ROOT/flowsint-core"
start_service "Celery worker" poetry run celery -A flowsint_core.core.celery worker --loglevel=info