Aere Quantum: a post-quantum TLS 1.3 gateway (X25519MLKEM768, optional ML-DSA client authentication), a hybrid KMS (X25519 + ML-KEM-768, Ed25519 + ML-DSA-65; root key from the environment or sealed by an HSM through PKCS#11) and an ML-DSA private CA (X.509 v3, RFC 9881). Zero dependencies, Node.js 24 with OpenSSL 3.5. Each with its test suite and a negative control.

This commit is contained in:
Aere Network committed 2026-09-29 16:24:04 +03:00
commit 7d814d1bb8
24 files changed
+7004

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
# Aere Cloud, Quantum Security Gateway. Imagine minima: Node 24 si un singur fisier, fara nicio dependinta.
# NECONSTRUITA si netrasa pe laptopul de dezvoltare (2026-09-25): versiunea OpenSSL din imagine e NEMASURATA aici.
# Gateway-ul o verifica singur la pornire (refuza sub OpenSSL 3.5) si o scrie in randul 'listening' din jurnal.
#
# docker build -t aere-pq-gateway .
# docker run --rm -p 443:8443 \
# -e AERE_PQGW_MODE=hybrid-preferred -e AERE_PQGW_UPSTREAM=http://app:8080 \
# -v /cale/catre/certificate:/etc/aere-pq-gateway:ro aere-pq-gateway
#
# Ruleaza ca utilizatorul neprivilegiat 'node' (uid 1000) din imaginea oficiala: cheia montata trebuie sa fie
# citibila de el, altfel gateway-ul refuza sa porneasca cu "cannot read KEY (EACCES)".
FROM node:24-alpine
WORKDIR /app
COPY pq-gateway.mjs /app/pq-gateway.mjs
ENV AERE_PQGW_LISTEN=:8443 \
AERE_PQGW_CERT=/etc/aere-pq-gateway/fullchain.pem \
AERE_PQGW_KEY=/etc/aere-pq-gateway/privkey.pem
USER node
EXPOSE 8443
STOPSIGNAL SIGTERM
CMD ["node", "/app/pq-gateway.mjs"]