diff --git a/.cursorignore b/.cursorignore index d07058b..2d43d93 100644 --- a/.cursorignore +++ b/.cursorignore @@ -42,10 +42,18 @@ certs/ **/*.docker* # Cache et build -**/*.node_modules/ -**/*.dist/ -**/*build/ -**/*target/ +**/node_modules/ +**/dist/ +**/build/ +**/target/ +**/.next/ +**/.turbo/ +**/coverage/ +**/.pytest_cache/ +**/.cache/ +**/.pnpm-store/ +**/.venv/ +**/vendor/ **/*.*.o **/*.so **/*.dylib @@ -68,6 +76,8 @@ certs/ # Backup des projets existants **/*backup* +**/backups/ +**/*backups* **/*wallet* @@ -76,4 +86,10 @@ certs/ **/*node_modules* **/*cursor* **/*pid* -**/*next* \ No newline at end of file +**/*next* + +# Dossiers de logs communs +log/ +logs/ +**/log/ +**/logs/ \ No newline at end of file diff --git a/.dockerignore b/.dockerignore index d07058b..2d43d93 100644 --- a/.dockerignore +++ b/.dockerignore @@ -42,10 +42,18 @@ certs/ **/*.docker* # Cache et build -**/*.node_modules/ -**/*.dist/ -**/*build/ -**/*target/ +**/node_modules/ +**/dist/ +**/build/ +**/target/ +**/.next/ +**/.turbo/ +**/coverage/ +**/.pytest_cache/ +**/.cache/ +**/.pnpm-store/ +**/.venv/ +**/vendor/ **/*.*.o **/*.so **/*.dylib @@ -68,6 +76,8 @@ certs/ # Backup des projets existants **/*backup* +**/backups/ +**/*backups* **/*wallet* @@ -76,4 +86,10 @@ certs/ **/*node_modules* **/*cursor* **/*pid* -**/*next* \ No newline at end of file +**/*next* + +# Dossiers de logs communs +log/ +logs/ +**/log/ +**/logs/ \ No newline at end of file diff --git a/.gitignore b/.gitignore index d07058b..2d43d93 100644 --- a/.gitignore +++ b/.gitignore @@ -42,10 +42,18 @@ certs/ **/*.docker* # Cache et build -**/*.node_modules/ -**/*.dist/ -**/*build/ -**/*target/ +**/node_modules/ +**/dist/ +**/build/ +**/target/ +**/.next/ +**/.turbo/ +**/coverage/ +**/.pytest_cache/ +**/.cache/ +**/.pnpm-store/ +**/.venv/ +**/vendor/ **/*.*.o **/*.so **/*.dylib @@ -68,6 +76,8 @@ certs/ # Backup des projets existants **/*backup* +**/backups/ +**/*backups* **/*wallet* @@ -76,4 +86,10 @@ certs/ **/*node_modules* **/*cursor* **/*pid* -**/*next* \ No newline at end of file +**/*next* + +# Dossiers de logs communs +log/ +logs/ +**/log/ +**/logs/ \ No newline at end of file diff --git a/.gitmodules b/.gitmodules index 94e6daa..f6dfdf8 100644 --- a/.gitmodules +++ b/.gitmodules @@ -40,8 +40,8 @@ url = git@github.com:Sosthene00/rust-silentPayments.git branch = add-utils [submodule "blindbit-oracle"] path = 4NK_modules/blindbit-oracle - url = https://github.com/setavenger/blindbit-oracle.git - branch = master + url = git.4nkweb.com/4nk/blindbit-oracle + branch = fixed-source [submodule "4NK_vault"] path = 4NK_modules/4NK_vault url = git@git.4nkweb.com:4nk/4NK_vault.git diff --git a/4NK_modules/4NK_vault b/4NK_modules/4NK_vault index f1558d5..ae15752 160000 --- a/4NK_modules/4NK_vault +++ b/4NK_modules/4NK_vault @@ -1 +1 @@ -Subproject commit f1558d5eb58ef2d176d1edbd5bc3cecad5a748c7 +Subproject commit ae157527f0478e8975a4d1943822c2de4ebb16d6 diff --git a/4NK_modules/ihm_client b/4NK_modules/ihm_client index 6733f79..e72b3d5 160000 --- a/4NK_modules/ihm_client +++ b/4NK_modules/ihm_client @@ -1 +1 @@ -Subproject commit 6733f79b83012cc0c8dc851fee20fa1890bbc77f +Subproject commit e72b3d56ab6d8636795f90be3845e46d469d7191 diff --git a/4NK_modules/sdk_relay b/4NK_modules/sdk_relay index b151d6b..abc9694 160000 --- a/4NK_modules/sdk_relay +++ b/4NK_modules/sdk_relay @@ -1 +1 @@ -Subproject commit b151d6b53ebb3e10cea976c4ef50c99a2085019b +Subproject commit abc9694d5b2590b66521def0ad1e30502d3fbbee diff --git a/IA_agents/README.md b/IA_agents/README.md index 843ec9f..413b97b 100644 --- a/IA_agents/README.md +++ b/IA_agents/README.md @@ -37,6 +37,25 @@ Ce répertoire contient toute la documentation nécessaire pour les agents IA tr - [`prompts/prompt-deploy.md`](prompts/prompt-deploy.md) - Prompt de déploiement complet - **Scripts centralisés** : Tous les scripts d'agents IA sont maintenant dans `projects/lecoffre/lecoffre_node/scripts/` +## 🔐 Synchronisation des configurations (Vault) + +```bash +bash projects/lecoffre/lecoffre_node/scripts/sync-vault-full.sh +``` +Résultats attendus: +- `vault/confs2/` (miroir local) +- `confs/` (copie centralisée) +- `projects/lecoffre/lecoffre_node/confs/` (réplication projet) + +## 🧹 Standardisation des fichiers ignore + +```bash +bash projects/lecoffre/lecoffre_node/scripts/sync-ignore-files.sh +``` +Portée: +- `4NK_modules/*` (exclu: `4NK_vault`) +- `projects/*/*` + ## 🚨 RÈGLES CRITIQUES ### **🚫 INTERDICTIONS ABSOLUES** diff --git a/IA_agents/blindbit-oracle-deployment.md b/IA_agents/blindbit-oracle-deployment.md index 53d70ee..14f5ca0 100644 --- a/IA_agents/blindbit-oracle-deployment.md +++ b/IA_agents/blindbit-oracle-deployment.md @@ -255,3 +255,5 @@ docker logs blindbit-oracle | grep -i "error" + + diff --git a/IA_agents/blindbit-oracle-integration-summary.md b/IA_agents/blindbit-oracle-integration-summary.md index e81c916..5174191 100644 --- a/IA_agents/blindbit-oracle-integration-summary.md +++ b/IA_agents/blindbit-oracle-integration-summary.md @@ -187,3 +187,5 @@ blindbit: + + diff --git a/IA_agents/env-centralisation-policy.md b/IA_agents/env-centralisation-policy.md index 80887a8..3ce13e4 100644 --- a/IA_agents/env-centralisation-policy.md +++ b/IA_agents/env-centralisation-policy.md @@ -266,3 +266,5 @@ La nouvelle structure des variables d'environnement améliore la sécurité, la + + diff --git a/IA_agents/prompts/prompt-confs/prompt.md b/IA_agents/prompts/prompt-confs/prompt.md index d297c74..fc4fe2f 100644 --- a/IA_agents/prompts/prompt-confs/prompt.md +++ b/IA_agents/prompts/prompt-confs/prompt.md @@ -18,5 +18,3 @@ Centraliser toutes les configurations dans `4NK_env/confs//` et faire po - Conserver `confs/` hors du contrôle de versions sensible si nécessaire; veiller aux secrets. - Utiliser des chemins absolus côté host pour les volumes afin d’éviter les ambiguïtés. - Vérifier la lisibilité/permissions des fichiers montés (ro si possible). - - diff --git a/IA_agents/prompts/prompt-data/prompt.md b/IA_agents/prompts/prompt-data/prompt.md index 4c2dc7d..48a1d00 100644 --- a/IA_agents/prompts/prompt-data/prompt.md +++ b/IA_agents/prompts/prompt-data/prompt.md @@ -23,5 +23,3 @@ Centraliser toutes les données applicatives dans `4NK_env/data//` pour - Pas de liens symboliques pour la donnée persistée; préférer des références directes. - Éviter d’intégrer `data/` au dépôt; conserver l’ignore dans `.gitignore`, `.cursorignore`, `.dockerignore`. - Couvrir par une sauvegarde régulière via `projects/lecoffre/lecoffre_node/scripts/backup_all.sh` (section data). - - diff --git a/IA_agents/prompts/prompt-deploy/prompt.md b/IA_agents/prompts/prompt-deploy/prompt.md index 59d6c22..eb0d4f8 100644 --- a/IA_agents/prompts/prompt-deploy/prompt.md +++ b/IA_agents/prompts/prompt-deploy/prompt.md @@ -335,4 +335,8 @@ sh projects/lecoffre/lecoffre_node/scripts/quick-health-check.sh ### Notes - Les chemins sont relatifs au répertoire racine `4NK_env`. -- Après remplacement de `confs/` et `env/` par la sortie du vault, les montages `confs//...` et `env//.env` sont déjà référencés dans `lecoffre_node/docker-compose.yml`. \ No newline at end of file +- Après remplacement de `confs/` et `env/` par la sortie du vault, les montages `confs//...` et `env//.env` sont déjà référencés dans `lecoffre_node/docker-compose.yml`. + +### Standardisation des fichiers ignore +- Script: `projects/lecoffre/lecoffre_node/scripts/sync-ignore-files.sh` +- Rôle: propage `.gitignore`, `.cursorignore`, `.dockerignore` vers tous les modules (hors `4NK_vault`) et sous‑projets. \ No newline at end of file diff --git a/IA_agents/prompts/prompt-docs/prompt.md b/IA_agents/prompts/prompt-docs/prompt.md index 65594e3..fd3ee89 100644 --- a/IA_agents/prompts/prompt-docs/prompt.md +++ b/IA_agents/prompts/prompt-docs/prompt.md @@ -38,5 +38,3 @@ grep -R "\bdocs/\b" /home/debian/4NK_env | grep -v "/home/debian/4NK_env/docs/" ## État actuel - Scan effectué. Exclusions ci-dessus appliquées. - Centralisation uniquement des autres contenus de documentation si présents. - - diff --git a/IA_agents/prompts/prompt-scripts/prompt.md b/IA_agents/prompts/prompt-scripts/prompt.md index ecc6594..8373ca3 100644 --- a/IA_agents/prompts/prompt-scripts/prompt.md +++ b/IA_agents/prompts/prompt-scripts/prompt.md @@ -28,5 +28,3 @@ Uniformiser l'emplacement et l'usage des scripts d'exploitation pour tous les pr ### Étapes suivantes - Étendre la centralisation aux autres projets si un dossier `scripts/` est ajouté. - Supprimer définitivement les anciens dossiers uniquement après transformation en liens (déjà effectué ici). - - diff --git a/README.md b/README.md index 27a605d..235ce1c 100644 --- a/README.md +++ b/README.md @@ -109,6 +109,38 @@ cd lecoffre_node - **context.md** : Contexte général des projets 4NK et LeCoffre - **flux.md** : Architecture des flux et services +## 🔐 Synchronisation des configurations (Vault) + +Les configurations sont synchronisées depuis le dépôt sécurisé du Vault, puis répliquées pour les déploiements. + +```bash +# Synchroniser les configurations +bash projects/lecoffre/lecoffre_node/scripts/sync-vault-full.sh + +# Résultat attendu +# - Miroir local: vault/confs2/ +# - Copie centralisée: confs/ +# - Réplication projet: projects/lecoffre/lecoffre_node/confs/ +``` + +Notes: +- Rebuild propre de `vault/sdk-client` avant la synchronisation. +- Fallback automatique sur `vault/confs2/` si le miroir `vault/confs/` est absent. +- Aucun secret n'est committé; toutes les valeurs sensibles restent externalisées. + +## 🧹 Standardisation des fichiers ignore + +Les fichiers `.gitignore`, `.cursorignore`, `.dockerignore` sont centralisés et propagés. + +```bash +# Propager les fichiers ignore +bash projects/lecoffre/lecoffre_node/scripts/sync-ignore-files.sh + +# Portée +# - 4NK_modules/* (exclu: 4NK_vault) +# - projects/*/* +``` + ### Documentation spécifique - **lecoffre_node/README-AUTONOMOUS.md** : Architecture autonome LeCoffre - **doc_api/** : Documentation API 4NK diff --git a/docs/4NK_DAO_TECHNICAL_SPECIFICATION.md b/docs/4NK_DAO_TECHNICAL_SPECIFICATION.md index f360587..91368ea 100644 --- a/docs/4NK_DAO_TECHNICAL_SPECIFICATION.md +++ b/docs/4NK_DAO_TECHNICAL_SPECIFICATION.md @@ -2400,3 +2400,5 @@ fn create_governance_process( **Code de référence:** https://git.4nkweb.com/4nk/dao-reference **Contact:** dao@4nkweb.com + + diff --git a/docs/4NK_IDENTITY_AND_PROCESS_SPEC.md b/docs/4NK_IDENTITY_AND_PROCESS_SPEC.md index 3351862..eb5141c 100644 --- a/docs/4NK_IDENTITY_AND_PROCESS_SPEC.md +++ b/docs/4NK_IDENTITY_AND_PROCESS_SPEC.md @@ -1511,3 +1511,5 @@ Cette architecture permet des cas d'usage variés: **Basé sur l'analyse du code source 4NK (sdk_client, sdk_common, sdk_relay, sdk_storage, ihm_client)** + + diff --git a/docs/4NK_IDENTITY_PROCESS_SUMMARY.md b/docs/4NK_IDENTITY_PROCESS_SUMMARY.md index 43160df..58a037d 100644 --- a/docs/4NK_IDENTITY_PROCESS_SUMMARY.md +++ b/docs/4NK_IDENTITY_PROCESS_SUMMARY.md @@ -672,3 +672,5 @@ Le système 4NK offre une infrastructure décentralisée complète pour: **Contact:** dev@4nkweb.com + + diff --git a/docs/ARCHITECTURE_ANALYSIS.md b/docs/ARCHITECTURE_ANALYSIS.md index 9d40fd0..41eb30f 100644 --- a/docs/ARCHITECTURE_ANALYSIS.md +++ b/docs/ARCHITECTURE_ANALYSIS.md @@ -313,3 +313,5 @@ Le projet LeCoffre est une plateforme de gestion de documents sécurisée pour l **Document créé le 2025-01-27** **Version** : 1.0 **Usage** : Documentation architecturale complète pour les agents IA et l'équipe de développement + + diff --git a/docs/DEEP_ARCHITECTURE_ANALYSIS.md b/docs/DEEP_ARCHITECTURE_ANALYSIS.md index c19ac31..b456fab 100644 --- a/docs/DEEP_ARCHITECTURE_ANALYSIS.md +++ b/docs/DEEP_ARCHITECTURE_ANALYSIS.md @@ -420,3 +420,5 @@ Le projet LeCoffre est une plateforme de gestion de documents sécurisée pour l **Document créé le 2025-01-27** **Version** : 2.0 **Usage** : Analyse architecturale approfondie pour les agents IA et l'équipe de développement + + diff --git a/docs/DEPLOYMENT_GUIDE.md b/docs/DEPLOYMENT_GUIDE.md index 771e143..469579e 100644 --- a/docs/DEPLOYMENT_GUIDE.md +++ b/docs/DEPLOYMENT_GUIDE.md @@ -328,3 +328,5 @@ docker logs **Document créé le 2025-01-27** **Version** : 2.0 **Usage** : Guide de déploiement complet pour les agents IA et l'équipe de développement + + diff --git a/docs/DOCUMENTATION_SYNTHESIS.md b/docs/DOCUMENTATION_SYNTHESIS.md index b05e893..779be5f 100644 --- a/docs/DOCUMENTATION_SYNTHESIS.md +++ b/docs/DOCUMENTATION_SYNTHESIS.md @@ -215,3 +215,5 @@ Cette synthèse présente l'organisation complète de la documentation mise à j **Document créé le 2025-01-27** **Version** : 2.0 **Usage** : Synthèse complète de la documentation mise à jour + + diff --git a/docs/TECHNICAL_REFERENCE.md b/docs/TECHNICAL_REFERENCE.md index 5b065ba..57f7106 100644 --- a/docs/TECHNICAL_REFERENCE.md +++ b/docs/TECHNICAL_REFERENCE.md @@ -404,3 +404,5 @@ env_logger = "0.10" **Document créé le 2025-01-27** **Version** : 2.0 **Usage** : Référence technique complète pour les développeurs et agents IA + + diff --git a/docs/VARIABLES-ENVIRONNEMENT-NOUVELLE-STRUCTURE.md b/docs/VARIABLES-ENVIRONNEMENT-NOUVELLE-STRUCTURE.md index 607e633..779e780 100644 --- a/docs/VARIABLES-ENVIRONNEMENT-NOUVELLE-STRUCTURE.md +++ b/docs/VARIABLES-ENVIRONNEMENT-NOUVELLE-STRUCTURE.md @@ -192,3 +192,5 @@ Les scripts ont été mis à jour pour utiliser la nouvelle structure : + + diff --git a/projects/lecoffre/lecoffre-back-mini b/projects/lecoffre/lecoffre-back-mini index cdf91d4..a1670cf 160000 --- a/projects/lecoffre/lecoffre-back-mini +++ b/projects/lecoffre/lecoffre-back-mini @@ -1 +1 @@ -Subproject commit cdf91d453fa561343f0dcf8423fdec2d24115ba2 +Subproject commit a1670cfc35f1e5d668e43c2e83eac03a096ca210 diff --git a/projects/lecoffre/lecoffre-front b/projects/lecoffre/lecoffre-front index 842250a..277e19b 160000 --- a/projects/lecoffre/lecoffre-front +++ b/projects/lecoffre/lecoffre-front @@ -1 +1 @@ -Subproject commit 842250abfdec19bf81c95e3c506857deda11456f +Subproject commit 277e19ba76aa312e3b21ae06ad324d0651742279 diff --git a/projects/lecoffre/lecoffre_node b/projects/lecoffre/lecoffre_node index 8514579..43aead6 160000 --- a/projects/lecoffre/lecoffre_node +++ b/projects/lecoffre/lecoffre_node @@ -1 +1 @@ -Subproject commit 851457987ada285c333017cf039718f475fa9735 +Subproject commit 43aead62848113695c67884ec0ae67ba5e62b734 diff --git a/scripts/.gitkeep b/scripts/.gitkeep new file mode 100644 index 0000000..6a04314 --- /dev/null +++ b/scripts/.gitkeep @@ -0,0 +1 @@ +./ \ No newline at end of file diff --git a/scripts/lecoffre_node/blindbit-maintenance.sh b/scripts/lecoffre_node/blindbit-maintenance.sh index fb8288d..23d646b 100755 --- a/scripts/lecoffre_node/blindbit-maintenance.sh +++ b/scripts/lecoffre_node/blindbit-maintenance.sh @@ -232,3 +232,5 @@ done + + diff --git a/scripts/lecoffre_node/collect-blindbit-logs.sh b/scripts/lecoffre_node/collect-blindbit-logs.sh index cbd640a..b1056c0 100755 --- a/scripts/lecoffre_node/collect-blindbit-logs.sh +++ b/scripts/lecoffre_node/collect-blindbit-logs.sh @@ -115,3 +115,5 @@ echo "Test API: api_test_${TIMESTAMP}.txt" + + diff --git a/scripts/lecoffre_node/quick-health-check.sh b/scripts/lecoffre_node/quick-health-check.sh index 8ddba5e..06dce44 100755 --- a/scripts/lecoffre_node/quick-health-check.sh +++ b/scripts/lecoffre_node/quick-health-check.sh @@ -93,3 +93,5 @@ echo -e "${CYAN}========================================${NC}" + + diff --git a/scripts/lecoffre_node/wait-bitcoin-ready.sh b/scripts/lecoffre_node/wait-bitcoin-ready.sh index f2bf5c8..13e8e4a 100755 --- a/scripts/lecoffre_node/wait-bitcoin-ready.sh +++ b/scripts/lecoffre_node/wait-bitcoin-ready.sh @@ -31,3 +31,5 @@ exit 1 + + diff --git a/scripts/lecoffre_node/wait-tor-bootstrap.sh b/scripts/lecoffre_node/wait-tor-bootstrap.sh index d380286..d5c90cb 100755 --- a/scripts/lecoffre_node/wait-tor-bootstrap.sh +++ b/scripts/lecoffre_node/wait-tor-bootstrap.sh @@ -31,3 +31,5 @@ exit 1 + +