feat: 1.4.0 second firewall, egress analysis and HTML report
CI / Docker image (build and smoke test) (push) Skipped
CI / Format and vet (push) Successful in 28s
CI / Dependency audit (push) Successful in 16s
CI / Tests (Linux, race detector) (push) Successful in 1m3s
Release / Plan (reuse the published image?) (push) Successful in 4s
Release / ci (push) Skipped
Release / Build image (amd64) (push) Skipped
Release / Build image (arm64) (push) Skipped
Release / Publish tags (push) Successful in 13s
Release / Gitea release (push) Successful in 3s
CI / Docker image (build and smoke test) (push) Skipped
CI / Format and vet (push) Successful in 28s
CI / Dependency audit (push) Successful in 16s
CI / Tests (Linux, race detector) (push) Successful in 1m3s
Release / Plan (reuse the published image?) (push) Successful in 4s
Release / ci (push) Skipped
Release / Build image (amd64) (push) Skipped
Release / Build image (arm64) (push) Skipped
Release / Publish tags (push) Successful in 13s
Release / Gitea release (push) Successful in 3s
Optional second firewall (URUTAU_ENFORCE off/observe/on) through the host fail2ban, outbound traffic analysis (beaconing, mining, spam, DNS bypass, unauthorised scans) with authorised scanner workloads, host kit in deploy/host and a printable HTML report. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3adaa007ec
commit
c33cca22e3
59 files changed
+7364
-24
No files matched your search
@@ -26,6 +26,12 @@
|
||||
'rpt.print': 'Print',
|
||||
'rpt.json': 'Export JSON',
|
||||
'rpt.csv': 'Export CSV',
|
||||
'rpt.dl': 'Download report (HTML)',
|
||||
'rpt.pdf': 'Print / PDF',
|
||||
'rpt.opt.period': 'Report period',
|
||||
'rpt.opt.panel': 'Same as the dashboard',
|
||||
'rpt.opt.lang': 'Report language',
|
||||
'rpt.opt.hint': 'The HTML report is one self-contained file, ready to print on A4. Open it and use Print to save as PDF.',
|
||||
'rpt.cover.kicker': 'Executive report',
|
||||
'rpt.cover.title': 'Security report',
|
||||
'rpt.cover.period': 'Period',
|
||||
@@ -97,6 +103,12 @@
|
||||
'rpt.print': 'Imprimir',
|
||||
'rpt.json': 'Exportar JSON',
|
||||
'rpt.csv': 'Exportar CSV',
|
||||
'rpt.dl': 'Baixar relatório (HTML)',
|
||||
'rpt.pdf': 'Imprimir / PDF',
|
||||
'rpt.opt.period': 'Período do relatório',
|
||||
'rpt.opt.panel': 'Igual ao do painel',
|
||||
'rpt.opt.lang': 'Idioma do relatório',
|
||||
'rpt.opt.hint': 'O relatório HTML é um arquivo único, pronto para imprimir em A4. Abra e use Imprimir para salvar em PDF.',
|
||||
'rpt.cover.kicker': 'Relatório executivo',
|
||||
'rpt.cover.title': 'Relatório de segurança',
|
||||
'rpt.cover.period': 'Período',
|
||||
@@ -231,8 +243,34 @@
|
||||
return rows.map(function (r) { return r.map(csvCell).join(','); }).join('\r\n') + '\r\n';
|
||||
}
|
||||
|
||||
var opt = { range: '', lang: '' };
|
||||
function htmlUrl(inline) {
|
||||
var p = params(ctx0);
|
||||
p.format = 'html';
|
||||
if (opt.range) { delete p.from; delete p.to; p.range = opt.range; }
|
||||
p.lang = opt.lang || (ctx0 && ctx0.lang === 'en' ? 'en' : 'pt-BR');
|
||||
if (inline) p.inline = '1';
|
||||
return '/api/v1/report?' + new URLSearchParams(p).toString();
|
||||
}
|
||||
function select(label, key, choices) {
|
||||
var sel = U.el('select', { class: 'rpt-sel', 'aria-label': label });
|
||||
choices.forEach(function (c) { var o = U.el('option', { value: c[0] }, c[1]); if (opt[key] === c[0]) o.selected = true; sel.appendChild(o); });
|
||||
sel.addEventListener('change', function () { opt[key] = sel.value; });
|
||||
return h('label', 'rpt-opt', h('span', null, label), sel);
|
||||
}
|
||||
function toolbar() {
|
||||
var bar = h('div', 'rpt-bar');
|
||||
var dl = U.el('button', { type: 'button', class: 'btn' }, t('rpt.dl'));
|
||||
dl.addEventListener('click', function () {
|
||||
var a = document.createElement('a');
|
||||
a.href = htmlUrl(false); a.download = '';
|
||||
document.body.appendChild(a); a.click(); document.body.removeChild(a);
|
||||
});
|
||||
var pr = U.el('button', { type: 'button', class: 'btn' }, t('rpt.pdf'));
|
||||
pr.addEventListener('click', function () { window.open(htmlUrl(true), '_blank', 'noopener'); });
|
||||
bar.appendChild(select(t('rpt.opt.period'), 'range', [['', t('rpt.opt.panel')], ['24h', '24h'], ['7d', '7d'], ['30d', '30d'], ['90d', '90d']]));
|
||||
bar.appendChild(select(t('rpt.opt.lang'), 'lang', [['', ctx0 && ctx0.lang === 'en' ? 'English' : 'Português'], ['pt-BR', 'Português'], ['en', 'English']]));
|
||||
bar.appendChild(dl); bar.appendChild(pr);
|
||||
var b1 = U.el('button', { type: 'button', class: 'btn' }, t('rpt.print'));
|
||||
b1.addEventListener('click', function () { window.print(); });
|
||||
var b2 = U.el('button', { type: 'button', class: 'btn' }, t('rpt.json'));
|
||||
@@ -240,6 +278,7 @@
|
||||
var b3 = U.el('button', { type: 'button', class: 'btn' }, t('rpt.csv'));
|
||||
b3.addEventListener('click', function () { if (data) save(stamp('csv'), 'text/csv;charset=utf-8', '' + toCSV(data)); });
|
||||
bar.appendChild(b1); bar.appendChild(b2); bar.appendChild(b3);
|
||||
bar.appendChild(h('p', 'rpt-hint', t('rpt.opt.hint')));
|
||||
return bar;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user