-
Notifications
You must be signed in to change notification settings - Fork 0
OPERATIONS
Andrii Sheiko edited this page Jun 23, 2026
·
10 revisions
- рекомендована версія Python для deployment і локальної розробки:
3.11+ -
rule-serviceпідтримуєPython 3.11+ -
local-agentпідтримуєPython 3.8+
/opt/rule-service/run-rule-builder.sh \
--canonical-cves \
--releases focal,jammy,noble \
--output-dir /srv/www/pycve/rules/opt/rule-service/run-rule-builder.sh \
--ubuntu-oval \
--releases focal,jammy,noble \
--output-dir /srv/www/pycve/rules/opt/rule-service/run-rule-builder.sh \
--debian-cves \
--releases bookworm,bullseye,trixie \
--output-dir /srv/www/pycve/rulesПовний build разом із rules:
/opt/rule-service/run-rule-builder.sh \
--canonical-cves \
--releases focal,jammy,noble \
--output-dir /srv/www/pycve/rules \
--write-priorityШвидкий refresh без rebuild rules:
/opt/rule-service/run-rule-builder.sh \
--output-dir /srv/www/pycve/rules \
--priority-onlyЗ ручними override:
/opt/rule-service/run-rule-builder.sh \
--output-dir /srv/www/pycve/rules \
--priority-only \
--manual-priority-file /srv/www/pycve/manual-priority.jsonБазовий режим:
/opt/local-agent/run-local-agent.sh \
--rules-base-url https://host/rulesТільки kernel:
/opt/local-agent/run-local-agent.sh \
--rules-base-url https://host/rules \
--kernel-onlyТільки packages:
/opt/local-agent/run-local-agent.sh \
--rules-base-url https://host/rules \
--packages-onlyТільки precise findings з published fixed version:
/opt/local-agent/run-local-agent.sh \
--rules-base-url https://host/rules \
--fixed-onlyПоказати більше CVE у stdout:
/opt/local-agent/run-local-agent.sh \
--rules-base-url https://host/rules \
--cve-limit 20Показати всі знайдені CVE:
/opt/local-agent/run-local-agent.sh \
--rules-base-url https://host/rules \
--show-all-cvesStatic host має віддавати:
/rules/<release>.json/rules/cve-priority.json
Наприклад, якщо були згенеровані focal, jammy і bookworm, server може віддавати:
https://host/rules/focal.jsonhttps://host/rules/jammy.jsonhttps://host/rules/bookworm.jsonhttps://host/rules/cve-priority.json
Ubuntu rules:
0 3 * * * /opt/rule-service/run-rule-builder.sh --canonical-cves --releases focal,jammy,noble --output-dir /srv/www/pycve/rules >> /var/log/pycve-rule-builder.log 2>&1Ubuntu rules via OVAL (якщо обрано замість --canonical-cves):
0 3 * * * /opt/rule-service/run-rule-builder.sh --ubuntu-oval --releases focal,jammy,noble --output-dir /srv/www/pycve/rules >> /var/log/pycve-rule-builder.log 2>&1Debian rules:
0 4 * * 1 /opt/rule-service/run-rule-builder.sh --debian-cves --releases bookworm,bullseye,trixie --output-dir /srv/www/pycve/rules >> /var/log/pycve-rule-builder.log 2>&1Priority refresh:
0 * * * * /opt/rule-service/run-rule-builder.sh --output-dir /srv/www/pycve/rules --priority-only >> /var/log/pycve-priority.log 2>&1Agent run:
*/15 * * * * /opt/local-agent/run-local-agent.sh --rules-base-url https://host/rules >> /var/log/local-agent.log 2>&1-
--priority-onlyне потребує source flag -
cve-priority.jsonне заміняє applicability rules -
--ubuntu-ovalє практичною альтернативою до--canonical-cves: дані еквівалентні за якістю для основних пакетів, один HTTP-запит на release, без rate limit — але кожен запуск завантажує повний файл (~150-200MB на release)
- якщо під час
--canonical-cvesbuild з’явилисяcanonical-feed.checkpoint.jsonіcanonical-feed.checkpoint.json.records.jsonl, це нормальний resume state - якщо build ще не завершився, ці файли не треба видаляти
-
--priority-onlyпрацює тільки від already built release rulesets у--output-dir - якщо
cve-priority.jsonне оновився через timeout до KEV/EPSS, applicability rules при цьому лишаються валідними