identity: the SD-JWT form of an AERE hybrid identity is judged on its ML-DSA-65 half by default, the Ed25519 half only on explicit request, and every verdict says postQuantum (rule sdjwt.hybrid-half); pq-pki: the signature algorithm a certificate or a revocation list declares must be its issuer key's (ALG_KEY, CRL_ALG_KEY); agents: an equivocation proof requires the agent's ML-DSA-65 key; pq-gateway: the status names the path to the backend and hybrid-only refuses a plain-HTTP backend; conformance 241 rules, 631 vectors

This commit is contained in:
Aere Network committed 2026-10-19 05:19:21 +03:00
1 parent 3ff21f7758
commit 0c8f1de3fd
122 files changed
+1205 -262

No files matched your search

+13 -3
View File
@@ -100,8 +100,9 @@ control "upstream cazut: niciun raspuns (agatare)" "(i)" \
"raspundeJson(req, res, cod, corpEroare(cod, e), true);" "if (Boolean(process.env.AERE_NU)) raspundeJson(req, res, cod, corpEroare(cod, e), true);"
control "timeout raportat ca 502" "(i2)" \
"const cod = e && e.aereTimeout ? 504 : 502;" "const cod = 502;"
# 2026-10-19: ancora cu cele doua spatii din fata (forma de pe un rand propriu), unica dupa ce starea drumului catre upstream (C8) a primit aceeasi cheie
control "hybrid-preferred pretinde hibrid garantat" "(j)" \
"hybridKeyExchangeOnEveryConnection: false," "hybridKeyExchangeOnEveryConnection: true,"
" hybridKeyExchangeOnEveryConnection: false," " hybridKeyExchangeOnEveryConnection: true,"
control "hybrid-preferred ca lista plata (fara tuplu, fara HelloRetryRequest)" "(j2)" \
"'hybrid-preferred': 'X25519MLKEM768/X25519:P-256'," "'hybrid-preferred': 'X25519MLKEM768:X25519:P-256',"
control "corpul bufferat intreg inainte de trimitere" "(k)" \
@@ -113,9 +114,18 @@ control "upgrade refuzat de upstream trimis fara Connection: close" "(d2)" \
control "upgrade catre upstream cazut: niciun raspuns pe socket" "(i3)" \
"if (!socket.destroyed) scrieBrut(socket, cod, corpEroare(cod, e));" "if (Boolean(process.env.AERE_NU)) scrieBrut(socket, cod, corpEroare(cod, e));"
control "drumul catre upstream https fara preferinta hibrida" "(q)" \
"ecdhCurve: GRUPURI['hybrid-preferred'], ...(caSus ?" "ecdhCurve: 'X25519', ...(caSus ?"
"ecdhCurve: GRUPURI[modSus], ...(caSus ?" "ecdhCurve: 'X25519', ...(caSus ?"
control "upgrade catre upstream https fara CA-ul configurat" "(d3)" \
"ecdhCurve: GRUPURI['hybrid-preferred'], ...caUpgrade }" "ecdhCurve: GRUPURI['hybrid-preferred'] }"
"ecdhCurve: GRUPURI[modSus], ...caUpgrade }" "ecdhCurve: GRUPURI[modSus] }"
# 2026-10-19 (AIP-25 C8): drumul catre serviciul din spate spus in stare, si modul hybrid-only al lui
control "C8: strangerile catre upstream nenumarate (starea tace din nou)" "(q)" \
"if (susHttps) s.once('secureConnect', () => numaraStrangereSus(s));" "if (Boolean(process.env.AERE_NU)) s.once('secureConnect', () => numaraStrangereSus(s));"
control "C8: o strangere clasica numarata drept post-cuantica" "(q3)" \
"filter(([k]) => /MLKEM/.test(k) === pq)" "filter(([k]) => /MLKEM|X25519/.test(k) === pq)"
control "C8: UPSTREAM_MODE hybrid-only fara efect (oferta ramane hybrid-preferred)" "(q4)" \
"const modSus = cfg.upstreamMode || 'hybrid-preferred';" "const modSus = 'hybrid-preferred';"
control "C8: UPSTREAM_MODE hybrid-only primit cu un upstream http" "(p)" \
"if (upstreamMode === 'hybrid-only' && u.protocol !== 'https:') throw" "if (Boolean(process.env.AERE_NU)) throw"
control "plecarea clientului numarata ca 502 (cerere)" "(s)" \
"if (res.headersSent || res.destroyed) { res.destroy(); return; }" ""
control "plecarea clientului numarata ca 502 (upgrade)" "(s)" \