crypto-inventory 0.3.0 and the control-plane planner after the second run on a tree that is not ours (libsignal): BoringSSL, Noise hfs, libcrux Kyber, the libsignal Java/Node API; self-signed trust anchors are blocked, test code is LOW with its own scope
This commit is contained in:
1 parent
42b049ef04
commit
e453c0c42d
35 files changed
+675
-51
No files matched your search
@@ -44,9 +44,12 @@ function laPlanificator(g) {
|
||||
// 2026-10-18: contextul apelului merge la planificator; fara el regula "in cod" (X25519 din aplicatie nu se repara cu un gateway TLS)
|
||||
// era verde in proba functiei si moarta pe drumul real (planul Avano avea tot 65 de actiuni "auto prin gateway")
|
||||
api: g.api, language: g.language, protocolType: g.protocolType,
|
||||
// 2026-10-18 (libsignal): codul de test se deosebeste de productie dupa cale (regula sta in plan-migrare.mjs, intr-un singur loc)
|
||||
scope: scopulCaii(g.file),
|
||||
location: g.file ? `${g.file}:${g.line || '?'}` : undefined,
|
||||
};
|
||||
}
|
||||
let scopulCaii = () => 'production';
|
||||
|
||||
async function main() {
|
||||
const args = process.argv.slice(2);
|
||||
@@ -56,7 +59,9 @@ async function main() {
|
||||
if (!code) { console.error('usage: node control-plane.mjs --code <dir> [--scan scan.json] [--json]'); process.exit(2); }
|
||||
|
||||
const inv = await import(pathToFileURL(caleaInventarului()).href);
|
||||
const { planeaza } = await import(pathToFileURL(path.join(AICI, 'plan-migrare.mjs')).href);
|
||||
const plm = await import(pathToFileURL(path.join(AICI, 'plan-migrare.mjs')).href);
|
||||
const { planeaza } = plm;
|
||||
scopulCaii = plm.scopulCaii;
|
||||
|
||||
let rez; try { rez = inv.scan(code); } catch (e) { console.error('the inventory could not scan: ' + e.message); process.exit(2); }
|
||||
const clasificate = (rez.findings || []).map(laPlanificator);
|
||||
@@ -77,7 +82,7 @@ async function main() {
|
||||
if (jsonOut) { console.log(JSON.stringify(iesire, null, 1)); process.exit(0); }
|
||||
console.log(`AERE Control Plane - post-quantum migration plan for ${code}${scanFile ? ' + ' + scanFile : ''}`);
|
||||
console.log(` inventory: ${iesire.inventory.findings} uses, ${iesire.inventory.quantumVulnerable} quantum-vulnerable`);
|
||||
console.log(` plan: ${plan.summary.total} actions | ${JSON.stringify(plan.summary.byUrgency)} | auto=${plan.summary.autoAere} manual=${plan.summary.manual} blocked=${plan.summary.blocked}`);
|
||||
console.log(` plan: ${plan.summary.total} actions | ${JSON.stringify(plan.summary.byUrgency)} | auto=${plan.summary.autoAere} manual=${plan.summary.manual} blocked=${plan.summary.blocked} | in test code=${(plan.summary.byScope && plan.summary.byScope.test) || 0}`);
|
||||
for (const a of plan.actions) {
|
||||
console.log(` [${a.urgency.padEnd(8)}] ${a.asset}${a.location ? ' (' + a.location + ')' : ''}`);
|
||||
console.log(` ${a.problem} -> ${a.target} [${a.method}${a.product ? ' via ' + a.product : ''}]${a.blocker ? ' BLOCKED BY: ' + a.blocker : ''}`);
|
||||
|
||||
Reference in new issue
Block a user