Componente (cod real)
Reflectă pachetele efective din 03-development/glog/src/main/java/systems/esempla/glog/.
Verde = implementat & testat · galben punctat = de finalizat.
flowchart TB classDef done fill:#d7f0d7,stroke:#2e7d32,color:#14321a; classDef todo fill:#fff4d6,stroke:#b8860b,stroke-dasharray:5 4,color:#5a4500; classDef store fill:#efe6fb,stroke:#6a3fb3,color:#241043;
subgraph WEB["web / dto (zone app + admin)"] C1["AuditEventController\nPOST/GET /api/v1/app/audit-events"]:::done C2["AdminAuditEventController\n/integrity · /forward/replay"]:::done C3["GlobalExceptionHandler\nRFC 7807"]:::done C4["Operational\n/health/live,/ready,/metrics,/info,/openapi.json"]:::done end subgraph SEC["security / config"] SC["SecurityConfig\nOAuth2 Resource Server"]:::done TC["TenantContext\nclaim tenant == payload"]:::done end subgraph AMQP["amqp"] MQC["RabbitMqConfig\naudit.events + DLX"]:::done MQL["AuditEventAmqpConsumer"]:::done end subgraph SVC["service"] S1["AuditEventService\npipeline ingest"]:::done S2["IntegrityService\nhash chain"]:::done S3["IdempotencyStore"]:::done S4["ForwardOutboxService\nstrategy + replay"]:::done end subgraph FWD["forward"] F0["ForwardSink (interfață)"]:::done F1["WebhookSink (SIEM/OpenSearch)"]:::done F2["MLogSink (JOSE/mTLS = TODO)"]:::todo FO["AuditForwardOutbox + Repository"]:::done end subgraph REPO["repository"] R0["AuditEventRepository (interfață)"]:::done R1["JpaAuditEventRepository @Profile !test"]:::done R2["InMemoryAuditEventRepository @Profile test"]:::done end subgraph DOM["domain + persistence"] D1["AuditEvent @Entity (details JSONB)\n+ enums"]:::done D2[("PostgreSQL + Liquibase\n001/002/003")]:::store end
C1 --> S1 C2 --> S2 C2 --> S4 MQL --> S1 SC -. protejează .-> C1 & C2 S1 --> TC & S3 & S2 & R0 & S4 R0 --> R1 & R2 R1 --> D1 --> D2 S4 --> FO & F0 F0 --> F1 & F2 FO --> D2Tabel pachete
Section titled “Tabel pachete”| Pachet | Clasă | Rol | Stare |
|---|---|---|---|
| web | AuditEventController | ingest + citire (zona app) | ✅ |
| web | AdminAuditEventController | integrity + replay (zona admin) | ✅ |
| web.error | GlobalExceptionHandler | erori RFC 7807 | ✅ |
| security | SecurityConfig / TenantContext | OAuth2 + tenant guard | ✅ |
| amqp | RabbitMqConfig / AuditEventAmqpConsumer | ingest AMQP + DLX | ✅ |
| service | AuditEventService | pipeline ingest (REST+AMQP) | ✅ |
| service | IntegrityService | hash chain SHA-256 | ✅ |
| service | IdempotencyStore | dedup Idempotency-Key | ✅ |
| forward | ForwardOutboxService + sinks + outbox | forward + replay | ✅ (MLog real 🟡) |
| repository | AuditEventRepository (+JPA/+InMemory) | persistență | ✅ |
| domain | AuditEvent + enums | model (JSONB) | ✅ |