Overview#

Reference · Operators

How the tables connect and what they cost.

What a keepalive is#

Once a minute shirudo status --otel sends one OTLP log record with the event name shirudo.keepalive. Its body is a compact JSON object, sent as a string, and its only attribute, shirudo.quote, is a TPM quote over the SHA-256 of that string:

attest=<base64 TPMS_ATTEST>;sig=<base64 TPMT_SIGNATURE>;ak=<base64 TPMT_PUBLIC>

A node is known by the name of its attestation key, ak_name, never by the host name it claims, and its records are ordered by the quote’s reset_count and clock, never by a wall clock.

How a keepalive moves through the schema#

A keepalive that a target sends enters the backend at otel.otel_logs, is checked once on its way into checked, and from there fans out on insert to keepalive, rejected, nodes, keepalive_latest and boot_first. Refreshed views then build node_ops, history_contradictions and node_status every minute and node_vulns every five. Each box links to its table.

Null stored reference derived read by the UI · solid: on insert · dashed: refreshed

Where the bytes go#

At a reference fleet of 10,000 nodes sending one keepalive a minute, following one tree of 65,000 operations, with 50 SBOMs of 500 findings each. keepalive is counted at its default retention of one hour; it grows by about 2.9 GB a day of retention at this fleet.

Table

Reference fleet

Bytes

otel.otel_logs

0 B

0

shirudo.checked

0 B

0

shirudo.keepalive

600k rows ≈ 120 MB at the default 1 hour

120 MB

shirudo.rejected

≈ 10 MB per misbehaving node

10 MB

shirudo.nodes

10,000 rows ≈ 5 MB

5 MB

shirudo.expected_builds

tens of rows, negligible

under 1 MB

shirudo.tree_pubs

hundreds of rows, negligible

under 1 MB

shirudo.tree_ops

65,000 rows ≈ 23 MB

23 MB

shirudo.upatch_fixes

negligible

under 1 MB

shirudo.label_sets

10,000 rows ≈ 2 MB

2 MB

shirudo.shield_catalog

thousands of rows, negligible

1 MB

shirudo.settings

negligible

under 1 MB

shirudo.enrollments

10,000 rows ≈ 2.5 MB

2 MB

shirudo.keepalive_latest

≈ 15 MB

15 MB

shirudo.boot_first

~3 boots each: 30k rows ≈ 5 MB

5 MB

shirudo.node_ops

650M rows ≈ 22 GB (README)

22 GB

shirudo.node_sets

1,000 upatches each: 10M rows ≈ 700 MB

700 MB

shirudo.history_contradictions

negligible

under 1 MB

shirudo.node_status

10,000 rows ≈ 7 MB, rewritten every minute

7 MB

shirudo.sbom_images

negligible

under 1 MB

shirudo.sbom_vulns

50 × 500 × 7 daily scans: 175k rows ≈ 15 MB

15 MB

shirudo.kernel_vulns

thousands of rows, negligible

under 1 MB

shirudo.node_vulns

10,000 × 500: 5M rows ≈ 300 MB, rewritten every 5 minutes

300 MB

Total, approximate

All tables at the reference fleet

about 23.2 GB

TODO

node_ops grows unbounded with the number of tree operations. The figure above is for 65,000.