Architecture
Les audit logs Finkare utilisent une hash chain SHA-256 pour garantir l’immutabilité et la traçabilité de chaque opération sensible. Chaque entrée contient le hash de l’entrée précédente, formant une chaîne cryptographique inviolable.Événements audités
Authentification
| Événement | Description |
|---|---|
CLIENT_CREATED | Création d’une nouvelle clé API |
CLIENT_UPDATED | Mise à jour d’un client (rotation de clé, scopes) |
CLIENT_DISABLED | Révocation d’une clé API |
AUTH_SUCCESS | Authentification réussie |
AUTH_FAILURE | Tentative d’authentification échouée |
TOKEN_ISSUED | Token OAuth émis |
TOKEN_REVOKED | Token OAuth révoqué |
Actions métier
| Événement | Description |
|---|---|
INVOICE_CREATED | Facture importée |
INVOICE_CANCELLED | Recouvrement annulé |
WORKFLOW_TRIGGERED | Action de workflow déclenchée (start, pause, resume, escalate) |
PAYMENT_RECEIVED | Paiement enregistré |
COMMUNICATION_SENT | Relance envoyée (email, SMS, LRAR, appel) |
ANTI_HARASSMENT_CORRECTION | Correction appliquée par validateCascadePlan() |
Administration
| Événement | Description |
|---|---|
WEBHOOK_CREATED | Webhook configuré |
WEBHOOK_DELETED | Webhook supprimé |
SECRET_ROTATED | Secret de webhook régénéré |
DATA_EXPORT | Export de données (RGPD) |
DATA_DELETION | Effacement de données (RGPD) |
Structure d’une entrée
Rétention
| Type de log | Durée de conservation | Justification |
|---|---|---|
| Audit métier | 5 ans | Obligations légales (Code de commerce) |
| Audit sécurité | 3 ans | Conformité SOC 2 |
| Corrections anti-harcèlement | 5 ans | Preuve de conformité CPCE |
| Logs techniques (requêtes API) | 12 mois | Monitoring et debug |
SOC 2 — Readiness
L’architecture des audit logs Finkare est conçue pour la conformité SOC 2 Type II :| Critère SOC 2 | Implémentation |
|---|---|
| CC6.1 — Accès logique | Authentification API Key / OAuth, scopes granulaires |
| CC6.2 — Restrictions d’accès | IP whitelist, rate limiting, CORS restrictif |
| CC7.2 — Monitoring | Audit logs immutables, hash chain SHA-256 |
| CC7.3 — Réponse aux incidents | Alerting automatique, rotation de secrets |
| CC8.1 — Gestion des changements | Versioning API, changelog public |