Skip to content

franamaro-dev/VeriStack

Repository files navigation

VeriStack

Microservices architecture for cryptographic data validation and fiscal workflow automation.

License: MIT Python 3.11+ FastAPI Docker n8n CI


What it solves

Fiscal-grade data integrity is hard: invoices, ledgers and audit chains need to be tamper-evident, signable and queryable without coupling business logic to the cryptography layer.

VeriStack splits that concern into independent, dockerized microservices that talk over a private network and are orchestrated via n8n for retries, alerts and batch jobs.


Architecture

flowchart LR
    Client[Client / Partner API] -->|REST| Gateway[FastAPI Gateway]
    Gateway --> Verify[Verification Service]
    Gateway --> Sign[Signing Service]
    Verify --> Hash[(Hash Chain Store)]
    Sign --> Keys[(Key Vault)]
    n8n[n8n Orchestrator] -->|webhook| Gateway
    n8n -->|alerts| Slack[Alerting]

    style Gateway fill:#009688,color:#fff
    style n8n fill:#EA4B71,color:#fff
Loading
Service Responsibility Stack
Gateway Auth, rate-limit, routing FastAPI + JWT
Verification Hash-chain validation, audit trail Python + SQLite/PG
Signing Cryptographic signing, key rotation Python + cryptography
Orchestration Retries, batch jobs, alerts n8n

Quickstart

git clone https://github.com/franamaro-dev/VeriStack.git
cd VeriStack
docker compose up --build

Gateway will be available at http://localhost:8000/docs (OpenAPI).

Run tests

pip install -r requirements.txt
pytest -v

See TESTING.md for fixtures and coverage strategy.


Tech stack

Layer Tools
API FastAPI, Pydantic v2
Crypto cryptography, hashlib, JWT
Persistence SQLite (dev), PostgreSQL (prod)
Orchestration n8n
Packaging Docker, docker-compose
Testing pytest, httpx

Project structure

.
├── app/                  # FastAPI services (gateway, verify, sign)
├── tests/                # pytest suite
├── docker-compose.yml    # multi-service orchestration
├── Dockerfile            # base image
├── requirements.txt
└── TESTING.md            # test strategy

Roadmap

  • XAdES signature module (RD 1007/2023 compliance)
  • Distributed hash chain (Merkle tree)
  • OpenTelemetry instrumentation
  • Helm chart for Kubernetes

License

MIT © Francisco Amaro Prieto


Built by Francisco Amaro — Backend Engineer & SOC L1 Analyst LinkedIn · Email

About

Arquitectura de microservicios para validación criptográfica y automatización de flujos fiscales (n8n + FastAPI + Docker).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors