eBPF-based security platform
testing: roll a shield out to a node and take it back, end to end
John Fastabend9d0430b089b7
diff --git a/.agents/skills/testing/SKILL.md b/.agents/skills/testing/SKILL.mdindex 858394a4..056741c7 100644--- a/.agents/skills/testing/SKILL.md+++ b/.agents/skills/testing/SKILL.md@@ -49,7 +49,12 @@ then t9110, which continues t9109's tree in segments, and t9112, on thehost against it and node B. Then a second fresh pair boots in theirplace, as `<name>-2-end2end-edge` and `-b`, the registry restarts empty, and`host.sh` runs t9111, the backward walk over sealed segments, against-them. Their output is `build/test-vm/end2end/t9109.log` to `t9112.log`.+them. On x86-64 a third fresh edge node then boots alone, as+`<name>-3-end2end-edge`, the registry restarts empty again, and `host.sh`+runs t9113 against it: the java-base64 shield published, appended to a+new tree, pulled and blocking `upatches/test/badDecoder.jar` in a JVM,+then deleted and gone. Their output is `build/test-vm/end2end/t9109.log`+to `t9113.log`.A test reaches the nodes with `node_sh b` or `node_sh edge` of`testing/end2end/node-lib.sh`, and does to them, the registry and thebackend what `testing/end2end/pipeline-lib.sh` offers. Their boot logsdiff --git a/Documentation/contribute/testing/test-coverage.rst b/Documentation/contribute/testing/test-coverage.rstindex 3812fe2d..3b93a5b5 100644--- a/Documentation/contribute/testing/test-coverage.rst+++ b/Documentation/contribute/testing/test-coverage.rst@@ -863,6 +863,17 @@ signed config image.challenge refused by another node, the answer verified with``--expect-credential``, and the key moving from ``untrusted`` to``enrolled`` in the backend+ * - ``t9113-shield-rollout``+ - A shield rolled out and taken back, run by ``host.sh`` last, on+ x86-64, on a third fresh edge node and an empty registry:+ ``put-shields`` and ``shields-put`` listing ``java-base64`` in+ ``shield_catalog``, ``bpm tree append`` by reference and+ ``--package-digest`` creating the tree, the node installing the+ agent at seq 1, a JVM its user manager starts refusing+ ``badDecoder.jar``'s input by the guard, then ``--op delete``, the+ agent retired at seq 2 and a JVM started after it without the+ guard, with ``5 head`` and ``6 set`` of the node's status at each+ stepUnit suites and fuzz targets~~~~~~~~~~~~~~~~~~~~~~~~~~~~diff --git a/Documentation/contribute/testing/testing.rst b/Documentation/contribute/testing/testing.rstindex 353ae711..f0bf67ed 100644--- a/Documentation/contribute/testing/testing.rst+++ b/Documentation/contribute/testing/testing.rst@@ -196,9 +196,9 @@ a Python companion with the same stem, such asbefore ``init``. They skip on the build host and run in a separate VMthat the ``tpm`` family boots without the production initrd.-``t9109`` to ``t9112`` carry target numbers but run on the host:+``t9109`` to ``t9113`` carry target numbers but run on the host::src:`testing/end2end/host.sh` runs them after node A's suite, ``t9109``,-``t9110``, ``t9112`` and then ``t9111``, against other nodes (see+``t9110``, ``t9112``, ``t9111`` and then ``t9113``, against other nodes (see:ref:`testing-two-nodes`), and node A's runner leaves them out.Run the tests@@ -871,15 +871,17 @@ by digest, and the registry and collectors use a throwaway CA. Figure 1shows the run in order... figure:: /images/contribute-end2end-run.svg- :alt: Eight phases in order, one lane each for the host, the- containers, the operator VM, node A, node B, the fresh edge node- and the second pair. 1: t9001 on the host, then the containers+ :alt: Ten phases in order, one lane each for the host, the+ containers, the operator VM, node A, node B, the fresh edge node,+ the second pair and the third node. 1: t9001 on the host, then the containersstart. 2: the operator VM publishes, the host loads the exampletree. 3: node A runs its tests while node B boots. 4: theoperator verifies node A and stops. 5: the edge node boots whilethe host runs check-otlp and checks node B. 6: t9109, t9110 andt9112 on the host. 7: the registry starts again empty and the- second pair boots. 8: t9111 on the host, then teardown.+ second pair boots. 8: t9111 on the host. 9, on x86-64 only: the+ registry starts again empty and a third fresh edge node boots.+ 10: t9113 on the host, then teardown.Figure 1. The end-to-end run in order, not to scale. Tinted bars runtests.@@ -915,8 +917,11 @@ shows the run in order.edge node and node B.#. Both nodes stop, the registry starts again without a volume, and asecond fresh edge node and node B boot.-#. ``t9111`` runs on the host against the second pair. Then the nodes- and the containers stop.+#. ``t9111`` runs on the host against the second pair, which then+ stops.+#. On x86-64, the registry starts again without a volume and a third+ fresh edge node boots alone; ``t9113`` runs on the host against it+ (:ref:`testing-shield`). Then the nodes and the containers stop.The operator VM boots from the runtime image with clang 23 and the builddependencies of the operator package added, which the runner prepares@@ -931,7 +936,7 @@ from the files git sees in the checkout and installs it. The operator VMand node A name the registry ``registry.test``, at QEMU's address forthe host, so the tree names it as node A reaches it. The host's ownbuild and the operator key it keeps still play the operator for the-keepalive backend's example tree and for ``t9109`` to ``t9112``, which+keepalive backend's example tree and for ``t9109`` to ``t9113``, whichrun on the host.To check the collector, :src:`testing/end2end/check-otlp.py` relies on@@ -976,9 +981,10 @@ operator key and loads it with the backend's tree ingest job, which runs``bpm tree show``. In the guest, ``t9107`` sends the example keepaliveswith their recorded quotes through that collector and queriesClickHouse, both through QEMU's address for the host. After node A,-``host.sh`` runs ``t9109`` to ``t9112`` against the same backend, see+``host.sh`` runs ``t9109`` to ``t9113`` against the same backend, see:ref:`testing-pipeline`, :ref:`testing-history`,-:ref:`testing-activation` and :ref:`testing-walk`. ``host.sh`` writes+:ref:`testing-activation`, :ref:`testing-walk` and+:ref:`testing-shield`. ``host.sh`` writesthe example tree's digest to ``build/test-vm/end2end/backend-tree.digest``when it publishes the tree, and removes it when the backend's treeingest job does not load the tree and when ``host.sh`` stops. Without@@ -1287,6 +1293,57 @@ of 5`` and ``6 set: pass``. :src:`testing/end2end/pipeline-lib.sh` holdswhat ``t9109`` to ``t9112`` do to the nodes, the registry andClickHouse.+.. _testing-shield:++A shield rolled out and taken back+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~++``t9113`` follows one shield from its publication to a node and back, as+an operator rolls a fix out for an advisory against a platform and takes+it back once the platform is fixed. The shield is ``java-base64`` of+:src:`upatches/java-base64/`, a Java agent, whose selector names+``x86_64``, so ``host.sh`` runs the test on x86-64 alone: last, against+a third fresh edge node, which has followed no tree, a registry that+holds none, and the same backend. Its output is+``build/test-vm/end2end/t9113.log``. The host has no JDK to rely on, so+the operator VM builds the agent's jar and ``badDecoder.jar`` of+:src:`upatches/test/` while it publishes, and ``host.sh`` copies both to+``build/test-vm/end2end/shield/``. The test:++#. checks that the node has no tree state and that the registry holds+ neither the tree nor an index of shields, and empties the keepalive+ backend;+#. runs ``badDecoder.jar`` in the node with+ :src:`testing/end2end/guarded-jvm.sh`, which starts the node's user+ manager again and the JVM as a service of it, the way a JVM gets its+ agents from ``environment.d``: the JDK refuses the input itself, exit+ status 1;+#. publishes the shield with :src:`tools/put-shields`, from a copy of+ the package without its ``build.sh``, so that the jar of the operator+ VM is the one signed, loads the catalog with+ :doc:`/operate/backend/shields-put`, and checks its row in+ ``shield_catalog``;+#. creates ``shirudo/pipeline-tree`` with ``bpm tree append`` of the+ shield by the reference and manifest digest ``put-shields`` printed,+ which is what xtop runs to create a tree, and loads it with the+ ingest job;+#. syncs the node, which reaches seq 1 with one ``tree_op`` event,+ installs the package's jar as ``/run/shirudo-java/java-base64.jar``+ and names it in+ ``/run/environment.d/shirudo.conf``, and runs ``badDecoder.jar``+ again: the guard refuses the input, exit status 0;+#. sends a keepalive and checks ``5 head: pass, seq 1 of 1`` and ``6+ set: pass, 1 loaded`` in the node's status;+#. appends the shield again with ``--op delete``, loads the tree, syncs+ the node, which reaches seq 2, replaces the jar with one whose agent+ does nothing and takes it out of ``shirudo.conf``, and runs+ ``badDecoder.jar`` a third time, which the JDK refuses again;+#. sends a keepalive and checks ``seq 2 of 2`` and ``0 loaded``.++It does not check that the node is ``healthy``: a user manager tries+``bpf()`` as it starts, which shirudo refuses and counts, and check 3+fails a node whose tamper counters rose since its first record.+Select test scripts~~~~~~~~~~~~~~~~~~~diff --git a/Documentation/figures/contribute-end2end-run.tex b/Documentation/figures/contribute-end2end-run.texindex 3265a877..bba8a40a 100644--- a/Documentation/figures/contribute-end2end-run.tex+++ b/Documentation/figures/contribute-end2end-run.tex@@ -13,23 +13,27 @@text opacity=1, rounded corners=3bp},bar/.style={box, rounded corners=3bp},phase/.style={draw=fig-grid, thin, dash pattern=on 3bp off 2.25bp}]- \useasboundingbox (0,0) rectangle (840,330);+ \useasboundingbox (0,0) rectangle (1016,372);% Phase boundaries; lanes start at y = 34 and are 42 high.- \foreach \x in {218, 314, 398, 476, 572, 666, 754}- \draw[phase] (\x,8) -- (\x,328);- \draw[axis] (118,30) -- (838,30);+ \foreach \x in {218, 314, 398, 476, 572, 666, 754, 842,+ 930}+ \draw[phase] (\x,8) -- (\x,370);+ \draw[axis] (118,30) -- (1014,30);% host\draw[run] (121,37) rectangle (166,73);\draw[bar] (221,37) rectangle (311,73);\draw[bar] (479,37) rectangle (569,73);\draw[run] (575,37) rectangle (663,73);- \draw[run] (757,37) rectangle (835,73);+ \draw[run] (757,37) rectangle (839,73);+ \draw[run] (933,37) rectangle (1011,73);% containers\draw[bar] (172,79) rectangle (663,115);\draw[bar] (669,79) rectangle (751,115);- \draw[bar] (757,79) rectangle (835,115);+ \draw[bar] (757,79) rectangle (839,115);+ \draw[bar] (845,79) rectangle (927,115);+ \draw[bar] (933,79) rectangle (1011,115);% operator VM\draw[bar] (221,121) rectangle (473,157);% node A@@ -39,15 +43,18 @@% fresh edge node\draw[bar] (479,247) rectangle (663,283);% second pair- \draw[bar] (669,289) rectangle (835,325);+ \draw[bar] (669,289) rectangle (839,325);+ % third edge node+ \draw[bar] (845,331) rectangle (1011,367);\begin{scope}[every node/.append style={anchor=base}]\foreach \x/\n in {168/1, 266/2, 356/3, 437/4, 524/5, 619/6,- 710/7, 796/8}+ 710/7, 798/8, 886/9, 972/10}\node[font=\figbody\bfseries, color=fig-muted] at (\x,22) {\n};\foreach \y/\t in {61/host, 103/containers, 145/operator VM,- 187/node A, 229/node B, 271/edge node, 313/second pair}+ 187/node A, 229/node B, 271/edge node, 313/second pair,+ 355/third node}\node[anchor=base west] at (0,\y) {\t};\begin{scope}[small]@@ -58,15 +65,18 @@\node at (524,66.5) {checks node B};\node at (619,52) {t9109, t9110,};\node at (619,66.5) {t9112};- \node at (796,52) {t9111,};- \node at (796,66.5) {teardown};+ \node at (798,59.5) {t9111};+ \node at (972,52) {t9113,};+ \node at (972,66.5) {teardown};\node at (417.5,101.5) {registry, two collectors, two ClickHouseservers};\node at (710,94) {registry};\node at (710,108.5) {empty again};- \node at (796,94) {stop at};- \node at (796,108.5) {the end};+ \node at (886,94) {registry};+ \node at (886,108.5) {empty again};+ \node at (972,94) {stop at};+ \node at (972,108.5) {the end};\node at (266,136) {operator.sh};\node at (266,150.5) {publishes};@@ -85,6 +95,9 @@\node at (752,304) {fresh edge node and};\node at (752,318.5) {node B boot};++ \node at (928,346) {fresh edge node boots,};+ \node at (928,360.5) {on x86-64 only};\end{scope}\end{scope}\end{tikzpicture}diff --git a/Documentation/images/contribute-end2end-run.svg b/Documentation/images/contribute-end2end-run.svgindex 4b7ede44..8ca3d7c3 100644--- a/Documentation/images/contribute-end2end-run.svg+++ b/Documentation/images/contribute-end2end-run.svg@@ -1,22 +1,5 @@-<svg xmlns='http://www.w3.org/2000/svg' width='840.0' height='330.0' viewBox='-72 -72 629.996 247.498' class='fig fig-f-ink' role='img'><!-- Documentation/figures/contribute-end2end-run.tex, sha256 3873e34b1d2790da9504442795b5f5c9cc608ce6c516ef6a7b3dc94bd2dca3b1 --><style>.fig-f-ink{fill:var(--fig-ink,#171b22)}.fig-s-ink{stroke:var(--fig-ink,#171b22)}.fig-f-muted{fill:var(--fig-muted,#5d6675)}.fig-s-muted{stroke:var(--fig-muted,#5d6675)}.fig-f-line{fill:var(--fig-line,#8a93a0)}.fig-s-line{stroke:var(--fig-line,#8a93a0)}.fig-f-grid{fill:var(--fig-grid,#e2e6eb)}.fig-s-grid{stroke:var(--fig-grid,#e2e6eb)}.fig-f-axis{fill:var(--fig-axis,#c3c9d1)}.fig-s-axis{stroke:var(--fig-axis,#c3c9d1)}.fig-f-accent{fill:var(--fig-accent,#8b1e3f)}.fig-s-accent{stroke:var(--fig-accent,#8b1e3f)}.fig-f-s1{fill:var(--fig-s1,#2a78d6)}.fig-s-s1{stroke:var(--fig-s1,#2a78d6)}.fig-f-s2{fill:var(--fig-s2,#eb6834)}.fig-s-s2{stroke:var(--fig-s2,#eb6834)}.fig-f-s3{fill:var(--fig-s3,#1baf7a)}.fig-s-s3{stroke:var(--fig-s3,#1baf7a)}.fig-f-s4{fill:var(--fig-s4,#eda100)}.fig-s-s4{stroke:var(--fig-s4,#eda100)}.fig-f-free{fill:var(--fig-free,#dde2e8)}.fig-s-free{stroke:var(--fig-free,#dde2e8)}.fig-f-on{fill:var(--fig-on,#ffffff)}.fig-s-on{stroke:var(--fig-on,#ffffff)}@media (prefers-color-scheme:dark){.fig-f-ink{fill:var(--fig-ink,#e4e8ee)}.fig-s-ink{stroke:var(--fig-ink,#e4e8ee)}.fig-f-muted{fill:var(--fig-muted,#9ba5b3)}.fig-s-muted{stroke:var(--fig-muted,#9ba5b3)}.fig-f-line{fill:var(--fig-line,#8a93a0)}.fig-s-line{stroke:var(--fig-line,#8a93a0)}.fig-f-grid{fill:var(--fig-grid,#262d37)}.fig-s-grid{stroke:var(--fig-grid,#262d37)}.fig-f-axis{fill:var(--fig-axis,#39414c)}.fig-s-axis{stroke:var(--fig-axis,#39414c)}.fig-f-accent{fill:var(--fig-accent,#e8899f)}.fig-s-accent{stroke:var(--fig-accent,#e8899f)}.fig-f-s1{fill:var(--fig-s1,#3987e5)}.fig-s-s1{stroke:var(--fig-s1,#3987e5)}.fig-f-s2{fill:var(--fig-s2,#d95926)}.fig-s-s2{stroke:var(--fig-s2,#d95926)}.fig-f-s3{fill:var(--fig-s3,#199e70)}.fig-s-s3{stroke:var(--fig-s3,#199e70)}.fig-f-s4{fill:var(--fig-s4,#c98500)}.fig-s-s4{stroke:var(--fig-s4,#c98500)}.fig-f-free{fill:var(--fig-free,#2f3640)}.fig-s-free{stroke:var(--fig-free,#2f3640)}.fig-f-on{fill:var(--fig-on,#ffffff)}.fig-s-on{stroke:var(--fig-on,#ffffff)}}</style>+<svg xmlns='http://www.w3.org/2000/svg' width='1016.0' height='372.0' viewBox='-72 -72 761.995 278.998' class='fig fig-f-ink' role='img'><!-- Documentation/figures/contribute-end2end-run.tex, sha256 5e3f4df91d89e5a28ae56dff55023c9df90dc8ac4087c94e64986e9d794c87cb --><style>.fig-f-ink{fill:var(--fig-ink,#171b22)}.fig-s-ink{stroke:var(--fig-ink,#171b22)}.fig-f-muted{fill:var(--fig-muted,#5d6675)}.fig-s-muted{stroke:var(--fig-muted,#5d6675)}.fig-f-line{fill:var(--fig-line,#8a93a0)}.fig-s-line{stroke:var(--fig-line,#8a93a0)}.fig-f-grid{fill:var(--fig-grid,#e2e6eb)}.fig-s-grid{stroke:var(--fig-grid,#e2e6eb)}.fig-f-axis{fill:var(--fig-axis,#c3c9d1)}.fig-s-axis{stroke:var(--fig-axis,#c3c9d1)}.fig-f-accent{fill:var(--fig-accent,#8b1e3f)}.fig-s-accent{stroke:var(--fig-accent,#8b1e3f)}.fig-f-s1{fill:var(--fig-s1,#2a78d6)}.fig-s-s1{stroke:var(--fig-s1,#2a78d6)}.fig-f-s2{fill:var(--fig-s2,#eb6834)}.fig-s-s2{stroke:var(--fig-s2,#eb6834)}.fig-f-s3{fill:var(--fig-s3,#1baf7a)}.fig-s-s3{stroke:var(--fig-s3,#1baf7a)}.fig-f-s4{fill:var(--fig-s4,#eda100)}.fig-s-s4{stroke:var(--fig-s4,#eda100)}.fig-f-free{fill:var(--fig-free,#dde2e8)}.fig-s-free{stroke:var(--fig-free,#dde2e8)}.fig-f-on{fill:var(--fig-on,#ffffff)}.fig-s-on{stroke:var(--fig-on,#ffffff)}@media (prefers-color-scheme:dark){.fig-f-ink{fill:var(--fig-ink,#e4e8ee)}.fig-s-ink{stroke:var(--fig-ink,#e4e8ee)}.fig-f-muted{fill:var(--fig-muted,#9ba5b3)}.fig-s-muted{stroke:var(--fig-muted,#9ba5b3)}.fig-f-line{fill:var(--fig-line,#8a93a0)}.fig-s-line{stroke:var(--fig-line,#8a93a0)}.fig-f-grid{fill:var(--fig-grid,#262d37)}.fig-s-grid{stroke:var(--fig-grid,#262d37)}.fig-f-axis{fill:var(--fig-axis,#39414c)}.fig-s-axis{stroke:var(--fig-axis,#39414c)}.fig-f-accent{fill:var(--fig-accent,#e8899f)}.fig-s-accent{stroke:var(--fig-accent,#e8899f)}.fig-f-s1{fill:var(--fig-s1,#3987e5)}.fig-s-s1{stroke:var(--fig-s1,#3987e5)}.fig-f-s2{fill:var(--fig-s2,#d95926)}.fig-s-s2{stroke:var(--fig-s2,#d95926)}.fig-f-s3{fill:var(--fig-s3,#199e70)}.fig-s-s3{stroke:var(--fig-s3,#199e70)}.fig-f-s4{fill:var(--fig-s4,#c98500)}.fig-s-s4{stroke:var(--fig-s4,#c98500)}.fig-f-free{fill:var(--fig-free,#2f3640)}.fig-s-free{stroke:var(--fig-free,#2f3640)}.fig-f-on{fill:var(--fig-on,#ffffff)}.fig-s-on{stroke:var(--fig-on,#ffffff)}}</style><defs>-<use id='contribute-end2end-run-g5-65' href='#contribute-end2end-run-g1-65' transform='scale(1.081)'/>-<use id='contribute-end2end-run-g5-66' href='#contribute-end2end-run-g1-66' transform='scale(1.081)'/>-<use id='contribute-end2end-run-g5-77' href='#contribute-end2end-run-g1-77' transform='scale(1.081)'/>-<use id='contribute-end2end-run-g5-86' href='#contribute-end2end-run-g1-86' transform='scale(1.081)'/>-<use id='contribute-end2end-run-g5-97' href='#contribute-end2end-run-g1-97' transform='scale(1.081)'/>-<use id='contribute-end2end-run-g5-99' href='#contribute-end2end-run-g1-99' transform='scale(1.081)'/>-<use id='contribute-end2end-run-g5-100' href='#contribute-end2end-run-g1-100' transform='scale(1.081)'/>-<use id='contribute-end2end-run-g5-101' href='#contribute-end2end-run-g1-101' transform='scale(1.081)'/>-<use id='contribute-end2end-run-g5-103' href='#contribute-end2end-run-g1-103' transform='scale(1.081)'/>-<use id='contribute-end2end-run-g5-104' href='#contribute-end2end-run-g1-104' transform='scale(1.081)'/>-<use id='contribute-end2end-run-g5-105' href='#contribute-end2end-run-g1-105' transform='scale(1.081)'/>-<use id='contribute-end2end-run-g5-110' href='#contribute-end2end-run-g1-110' transform='scale(1.081)'/>-<use id='contribute-end2end-run-g5-111' href='#contribute-end2end-run-g1-111' transform='scale(1.081)'/>-<use id='contribute-end2end-run-g5-112' href='#contribute-end2end-run-g1-112' transform='scale(1.081)'/>-<use id='contribute-end2end-run-g5-114' href='#contribute-end2end-run-g1-114' transform='scale(1.081)'/>-<use id='contribute-end2end-run-g5-115' href='#contribute-end2end-run-g1-115' transform='scale(1.081)'/>-<use id='contribute-end2end-run-g5-116' href='#contribute-end2end-run-g1-116' transform='scale(1.081)'/><path id='contribute-end2end-run-g1-28' d='M1.041 0H1.779V-4.11H3.705V0H4.442V-4.755H1.779V-6.174H2.801V-6.819H2.083C1.382-6.819 1.041-6.368 1.041-5.714V-4.755H.267V-4.11H1.041V0ZM4.073-5.87C4.387-5.87 4.525-6.036 4.525-6.285V-6.405C4.525-6.654 4.387-6.819 4.073-6.819S3.622-6.654 3.622-6.405V-6.285C3.622-6.036 3.76-5.87 4.073-5.87Z'/><path id='contribute-end2end-run-g1-44' d='M1.253-1.078C.866-1.078 .691-.857 .691-.534V-.405C.691-.157 .802 .028 1.051 .083C.949 .516 .728 .839 .359 1.226H.977C1.502 .774 1.815 .092 1.815-.405V-.534C1.815-.857 1.64-1.078 1.253-1.078Z'/><path id='contribute-end2end-run-g1-45' d='M3.041-2.405V-3.198H.636V-2.405H3.041Z'/>@@ -24,6 +7,10 @@<path id='contribute-end2end-run-g1-48' d='M2.765 .111C4.304 .111 4.976-1.115 4.976-3.216S4.304-6.543 2.765-6.543S.553-5.317 .553-3.216S1.226 .111 2.765 .111ZM2.765-.562C1.76-.562 1.364-1.447 1.364-2.691V-3.741C1.364-4.986 1.76-5.87 2.765-5.87S4.165-4.986 4.165-3.741V-2.691C4.165-1.447 3.769-.562 2.765-.562Z'/><path id='contribute-end2end-run-g1-49' d='M5.041 0V-.682H3.382V-6.432H2.175L.47-4.838L.922-4.35L2.543-5.861H2.608V-.682H.811V0H5.041Z'/><path id='contribute-end2end-run-g1-50' d='M4.912-.682H1.53L3.262-2.239C4.082-2.977 4.672-3.677 4.672-4.672C4.672-5.769 3.953-6.543 2.7-6.543C1.456-6.543 .885-5.787 .636-5.032L1.327-4.764C1.502-5.373 1.871-5.852 2.663-5.852S3.852-5.363 3.852-4.654V-4.543C3.852-3.926 3.391-3.281 2.792-2.728L.691-.793V0H4.912V-.682Z'/>+<path id='contribute-end2end-run-g1-51' d='M1.705-3.705V-3.032H2.461C3.364-3.032 3.843-2.599 3.843-1.843V-1.769C3.843-1.014 3.364-.581 2.461-.581C1.677-.581 1.299-.922 .968-1.428L.387-.986C.783-.433 1.355 .111 2.47 .111C3.778 .111 4.654-.654 4.654-1.76C4.654-2.728 3.99-3.244 3.299-3.382V-3.419C3.981-3.594 4.534-4.092 4.534-4.921C4.534-5.962 3.668-6.543 2.58-6.543C1.548-6.543 .986-6.008 .664-5.492L1.235-5.05C1.502-5.538 1.898-5.852 2.562-5.852C3.244-5.852 3.714-5.511 3.714-4.838V-4.774C3.714-4.156 3.271-3.705 2.405-3.705H1.705Z'/>+<path id='contribute-end2end-run-g1-52' d='M4.193 0V-1.263H5.124V-1.908H4.193V-6.432H3.041L.35-1.944V-1.263H3.456V0H4.193ZM3.41-5.833H3.456V-1.908H1.078L3.41-5.833Z'/>+<path id='contribute-end2end-run-g1-54' d='M2.774 .111C4.064 .111 4.912-.756 4.912-2.018C4.912-3.235 4.119-4 3.013-4C2.23-4 1.769-3.603 1.465-3.078L1.419-3.096C1.769-4.589 2.534-5.428 3.907-6.432H2.912C1.88-5.76 .617-4.267 .617-2.359C.617-.829 1.438 .111 2.774 .111ZM2.765-.562C1.917-.562 1.419-1.051 1.419-1.917V-1.991C1.419-2.857 1.917-3.345 2.765-3.345S4.11-2.857 4.11-1.991V-1.917C4.11-1.051 3.612-.562 2.765-.562Z'/>+<path id='contribute-end2end-run-g1-56' d='M2.765 .111C4.23 .111 4.995-.691 4.995-1.751C4.995-2.626 4.469-3.133 3.695-3.345V-3.419C4.368-3.649 4.801-4.193 4.801-4.93C4.801-5.907 4.046-6.543 2.765-6.543S.728-5.907 .728-4.93C.728-4.193 1.161-3.649 1.834-3.419V-3.345C1.06-3.133 .534-2.626 .534-1.751C.534-.691 1.299 .111 2.765 .111ZM2.765-.562C1.871-.562 1.355-.986 1.355-1.714V-1.908C1.355-2.636 1.871-3.06 2.765-3.06S4.175-2.636 4.175-1.908V-1.714C4.175-.986 3.659-.562 2.765-.562ZM2.765-3.705C1.963-3.705 1.53-4.064 1.53-4.718V-4.857C1.53-5.511 1.963-5.87 2.765-5.87S4-5.511 4-4.857V-4.718C4-4.064 3.566-3.705 2.765-3.705Z'/><path id='contribute-end2end-run-g1-57' d='M4.912-4.073C4.912-5.603 4.092-6.543 2.755-6.543C1.465-6.543 .617-5.677 .617-4.414C.617-3.198 1.41-2.433 2.516-2.433C3.299-2.433 3.76-2.829 4.064-3.354L4.11-3.336C3.76-1.843 2.995-1.004 1.622 0H2.617C3.649-.673 4.912-2.166 4.912-4.073ZM2.765-3.087C1.917-3.087 1.419-3.576 1.419-4.442V-4.516C1.419-5.382 1.917-5.87 2.765-5.87S4.11-5.382 4.11-4.516V-4.442C4.11-3.576 3.612-3.087 2.765-3.087Z'/><path id='contribute-end2end-run-g1-61' d='M4.912-3.428V-4.055H.617V-3.428H4.912ZM4.912-1.585V-2.212H.617V-1.585H4.912Z'/><path id='contribute-end2end-run-g1-63' d='M2.359-1.917V-2.912C3.17-3.069 4.055-3.622 4.055-4.801C4.055-5.861 3.336-6.543 2.202-6.543C1.051-6.543 .442-5.843 .212-5.05L.894-4.792C1.041-5.409 1.465-5.87 2.175-5.87C2.829-5.87 3.262-5.465 3.262-4.838V-4.709C3.262-3.935 2.654-3.474 1.65-3.428V-1.917H2.359ZM2.009 .111C2.396 .111 2.571-.101 2.571-.424V-.544C2.571-.866 2.396-1.078 2.009-1.078S1.447-.866 1.447-.544V-.424C1.447-.101 1.622 .111 2.009 .111Z'/>@@ -56,6 +43,7 @@<path id='contribute-end2end-run-g1-119' d='M1.557 0H2.451L3.115-2.285L3.52-3.732H3.539L3.953-2.285L4.617 0H5.529L6.792-4.755H6.101L5.585-2.7L5.096-.617H5.078L4.488-2.7L3.87-4.755H3.216L2.617-2.7L2.037-.617H2.018L1.511-2.7L1.004-4.755H.286L1.557 0Z'/><path id='contribute-end2end-run-g1-120' d='M.194 0H1.014L2.35-1.862H2.378L3.612 0H4.479L2.765-2.451L4.442-4.755H3.622L2.368-2.986H2.341L1.133-4.755H.267L1.954-2.396L.194 0Z'/><path id='contribute-end2end-run-g1-121' d='M2.562-1.521L2.304-.746H2.258L2.037-1.521L.894-4.755H.157L1.935 .184L1.576 1.198H.829V1.843H1.207C1.908 1.843 2.101 1.677 2.313 1.106L4.442-4.755H3.714L2.562-1.521Z'/>+<path id='contribute-end2end-run-g3-48' d='M2.989 .12C4.762 .12 5.579-1.205 5.579-3.477S4.762-7.073 2.989-7.073S.399-5.748 .399-3.477S1.215 .12 2.989 .12ZM2.989-.986C2.102-.986 1.793-1.704 1.793-2.849V-4.105C1.793-5.25 2.102-5.968 2.989-5.968S4.184-5.25 4.184-4.105V-2.849C4.184-1.704 3.875-.986 2.989-.986Z'/><path id='contribute-end2end-run-g3-49' d='M5.699 0V-1.066H4.105V-6.954H2.122L.399-4.902L1.215-4.214L2.73-6.007H2.819V-1.066H.907V0H5.699Z'/><path id='contribute-end2end-run-g3-50' d='M5.44-1.106H2.042L3.507-2.311C4.473-3.108 5.26-3.846 5.26-5.001C5.26-6.197 4.423-7.073 2.959-7.073C1.544-7.073 .797-6.266 .498-5.34L1.634-4.902C1.793-5.469 2.132-5.938 2.849-5.938C3.417-5.938 3.875-5.599 3.875-4.991V-4.862C3.875-4.254 3.537-3.776 2.799-3.128L.618-1.215V0H5.44V-1.106Z'/><path id='contribute-end2end-run-g3-51' d='M1.923-4.144V-3.049H2.61C3.437-3.049 3.905-2.71 3.905-2.072V-2.002C3.905-1.355 3.477-.956 2.71-.956C1.933-.956 1.514-1.355 1.205-1.913L.239-1.176C.677-.498 1.355 .12 2.71 .12C4.244 .12 5.27-.697 5.27-1.923C5.27-2.909 4.623-3.467 3.816-3.616V-3.676C4.543-3.826 5.151-4.364 5.151-5.26C5.151-6.376 4.194-7.073 2.79-7.073C1.614-7.073 .956-6.565 .488-5.918L1.325-5.161C1.664-5.689 2.142-5.998 2.75-5.998C3.377-5.998 3.776-5.649 3.776-5.081V-5.011C3.776-4.513 3.407-4.144 2.61-4.144H1.923Z'/>@@ -64,32 +52,56 @@<path id='contribute-end2end-run-g3-54' d='M3.019 .12C4.553 .12 5.539-.877 5.539-2.281C5.539-3.597 4.663-4.433 3.507-4.433C2.63-4.433 2.192-3.945 1.933-3.407L1.853-3.427C2.162-4.842 3.118-5.778 4.752-6.954H2.979C1.813-6.167 .488-4.603 .488-2.61C.488-.946 1.425 .12 3.019 .12ZM3.019-.917C2.281-.917 1.843-1.335 1.843-2.092V-2.242C1.843-2.999 2.281-3.417 3.019-3.417C3.746-3.417 4.194-2.999 4.194-2.242V-2.092C4.194-1.335 3.746-.917 3.019-.917Z'/><path id='contribute-end2end-run-g3-55' d='M3.059 0L5.41-5.828V-6.954H.588V-4.613H1.704V-5.888H4.105L1.684 0H3.059Z'/><path id='contribute-end2end-run-g3-56' d='M2.989 .12C4.613 .12 5.529-.737 5.529-1.903C5.529-2.799 4.981-3.367 4.154-3.597V-3.676C4.842-3.925 5.32-4.463 5.32-5.27C5.32-6.326 4.483-7.073 2.989-7.073S.658-6.326 .658-5.27C.658-4.463 1.136-3.925 1.823-3.676V-3.597C.996-3.367 .448-2.799 .448-1.903C.448-.737 1.365 .12 2.989 .12ZM2.989-.907C2.242-.907 1.813-1.275 1.813-1.893V-2.102C1.813-2.72 2.242-3.088 2.989-3.088S4.164-2.72 4.164-2.102V-1.893C4.164-1.275 3.736-.907 2.989-.907ZM2.989-4.065C2.291-4.065 1.903-4.403 1.903-4.981V-5.141C1.903-5.709 2.291-6.047 2.989-6.047S4.075-5.709 4.075-5.141V-4.981C4.075-4.403 3.686-4.065 2.989-4.065Z'/>+<path id='contribute-end2end-run-g3-57' d='M5.489-4.344C5.489-6.007 4.553-7.073 2.959-7.073C1.425-7.073 .438-6.077 .438-4.672C.438-3.357 1.315-2.521 2.471-2.521C3.347-2.521 3.786-3.009 4.045-3.547L4.125-3.527C3.816-2.112 2.859-1.176 1.225 0H2.999C4.164-.787 5.489-2.351 5.489-4.344ZM2.959-3.537C2.232-3.537 1.783-3.955 1.783-4.712V-4.862C1.783-5.619 2.232-6.037 2.959-6.037C3.696-6.037 4.134-5.619 4.134-4.862V-4.712C4.134-3.955 3.696-3.537 2.959-3.537Z'/>+<use id='contribute-end2end-run-g5-65' href='#contribute-end2end-run-g1-65' transform='scale(1.081)'/>+<use id='contribute-end2end-run-g5-66' href='#contribute-end2end-run-g1-66' transform='scale(1.081)'/>+<use id='contribute-end2end-run-g5-77' href='#contribute-end2end-run-g1-77' transform='scale(1.081)'/>+<use id='contribute-end2end-run-g5-86' href='#contribute-end2end-run-g1-86' transform='scale(1.081)'/>+<use id='contribute-end2end-run-g5-97' href='#contribute-end2end-run-g1-97' transform='scale(1.081)'/>+<use id='contribute-end2end-run-g5-99' href='#contribute-end2end-run-g1-99' transform='scale(1.081)'/>+<use id='contribute-end2end-run-g5-100' href='#contribute-end2end-run-g1-100' transform='scale(1.081)'/>+<use id='contribute-end2end-run-g5-101' href='#contribute-end2end-run-g1-101' transform='scale(1.081)'/>+<use id='contribute-end2end-run-g5-103' href='#contribute-end2end-run-g1-103' transform='scale(1.081)'/>+<use id='contribute-end2end-run-g5-104' href='#contribute-end2end-run-g1-104' transform='scale(1.081)'/>+<use id='contribute-end2end-run-g5-105' href='#contribute-end2end-run-g1-105' transform='scale(1.081)'/>+<use id='contribute-end2end-run-g5-110' href='#contribute-end2end-run-g1-110' transform='scale(1.081)'/>+<use id='contribute-end2end-run-g5-111' href='#contribute-end2end-run-g1-111' transform='scale(1.081)'/>+<use id='contribute-end2end-run-g5-112' href='#contribute-end2end-run-g1-112' transform='scale(1.081)'/>+<use id='contribute-end2end-run-g5-114' href='#contribute-end2end-run-g1-114' transform='scale(1.081)'/>+<use id='contribute-end2end-run-g5-115' href='#contribute-end2end-run-g1-115' transform='scale(1.081)'/>+<use id='contribute-end2end-run-g5-116' href='#contribute-end2end-run-g1-116' transform='scale(1.081)'/></defs><g id='contribute-end2end-run-page1'><g stroke-miterlimit='10' transform='matrix(.996 0 0 -.996 -72 -72)' stroke-width='1.12921' class='fig-f-ink fig-s-ink'><g stroke-width='0.7528' stroke-dasharray='3.01125,2.25842' stroke-dashoffset='0.0' class='fig-s-grid'>-<path d='M164.112-6.022V-246.921' fill='none'/>+<path d='M164.112-6.022V-278.539' fill='none'/></g><g stroke-width='0.7528' stroke-dasharray='3.01125,2.25842' stroke-dashoffset='0.0' class='fig-s-grid'>-<path d='M236.382-6.022V-246.921' fill='none'/>+<path d='M236.382-6.022V-278.539' fill='none'/></g><g stroke-width='0.7528' stroke-dasharray='3.01125,2.25842' stroke-dashoffset='0.0' class='fig-s-grid'>-<path d='M299.617-6.022V-246.921' fill='none'/>+<path d='M299.617-6.022V-278.539' fill='none'/></g><g stroke-width='0.7528' stroke-dasharray='3.01125,2.25842' stroke-dashoffset='0.0' class='fig-s-grid'>-<path d='M358.336-6.022V-246.921' fill='none'/>+<path d='M358.336-6.022V-278.539' fill='none'/></g><g stroke-width='0.7528' stroke-dasharray='3.01125,2.25842' stroke-dashoffset='0.0' class='fig-s-grid'>-<path d='M430.606-6.022V-246.921' fill='none'/>+<path d='M430.606-6.022V-278.539' fill='none'/></g><g stroke-width='0.7528' stroke-dasharray='3.01125,2.25842' stroke-dashoffset='0.0' class='fig-s-grid'>-<path d='M501.37-6.022V-246.921' fill='none'/>+<path d='M501.37-6.022V-278.539' fill='none'/></g><g stroke-width='0.7528' stroke-dasharray='3.01125,2.25842' stroke-dashoffset='0.0' class='fig-s-grid'>-<path d='M567.617-6.022V-246.921' fill='none'/>+<path d='M567.617-6.022V-278.539' fill='none'/>+</g>+<g stroke-width='0.7528' stroke-dasharray='3.01125,2.25842' stroke-dashoffset='0.0' class='fig-s-grid'>+<path d='M633.864-6.022V-278.539' fill='none'/>+</g>+<g stroke-width='0.7528' stroke-dasharray='3.01125,2.25842' stroke-dashoffset='0.0' class='fig-s-grid'>+<path d='M700.111-6.022V-278.539' fill='none'/></g><g stroke-width='0.7528' class='fig-s-axis'>-<path d='M88.831-22.584H630.853' fill='none'/>+<path d='M88.831-22.584H763.347' fill='none'/></g><g fill-opacity='0.12' class='fig-s-s1 fig-f-s1'><path d='M91.09-30.865V-51.944C91.09-53.607 92.438-54.955 94.101-54.955H121.955C123.618-54.955 124.966-53.607 124.966-51.944V-30.865C124.966-29.202 123.618-27.854 121.955-27.854H94.101C92.438-27.854 91.09-29.202 91.09-30.865ZM124.966-54.955'/>@@ -104,7 +116,10 @@<path d='M432.864-30.865V-51.944C432.864-53.607 434.213-54.955 435.876-54.955H496.1C497.763-54.955 499.111-53.607 499.111-51.944V-30.865C499.111-29.202 497.763-27.854 496.1-27.854H435.876C434.213-27.854 432.864-29.202 432.864-30.865ZM499.111-54.955'/></g><g fill-opacity='0.12' class='fig-s-s1 fig-f-s1'>-<path d='M569.875-30.865V-51.944C569.875-53.607 571.224-54.955 572.887-54.955H625.583C627.246-54.955 628.594-53.607 628.594-51.944V-30.865C628.594-29.202 627.246-27.854 625.583-27.854H572.887C571.224-27.854 569.875-29.202 569.875-30.865ZM628.594-54.955'/>+<path d='M569.875-30.865V-51.944C569.875-53.607 571.224-54.955 572.887-54.955H628.594C630.257-54.955 631.606-53.607 631.606-51.944V-30.865C631.606-29.202 630.257-27.854 628.594-27.854H572.887C571.224-27.854 569.875-29.202 569.875-30.865ZM631.606-54.955'/>+</g>+<g fill-opacity='0.12' class='fig-s-s1 fig-f-s1'>+<path d='M702.37-30.865V-51.944C702.37-53.607 703.718-54.955 705.381-54.955H758.077C759.74-54.955 761.089-53.607 761.089-51.944V-30.865C761.089-29.202 759.74-27.854 758.077-27.854H705.381C703.718-27.854 702.37-29.202 702.37-30.865ZM761.089-54.955'/></g><g fill-opacity='0.08' class='fig-s-line fig-f-line'><path d='M129.483-62.483V-83.562C129.483-85.225 130.831-86.573 132.494-86.573H496.1C497.763-86.573 499.111-85.225 499.111-83.562V-62.483C499.111-60.82 497.763-59.472 496.1-59.472H132.494C130.831-59.472 129.483-60.82 129.483-62.483ZM499.111-86.573'/>@@ -113,7 +128,13 @@<path d='M503.628-62.483V-83.562C503.628-85.225 504.976-86.573 506.64-86.573H562.347C564.01-86.573 565.359-85.225 565.359-83.562V-62.483C565.359-60.82 564.01-59.472 562.347-59.472H506.64C504.976-59.472 503.628-60.82 503.628-62.483ZM565.359-86.573'/></g><g fill-opacity='0.08' class='fig-s-line fig-f-line'>-<path d='M569.875-62.483V-83.562C569.875-85.225 571.224-86.573 572.887-86.573H625.583C627.246-86.573 628.594-85.225 628.594-83.562V-62.483C628.594-60.82 627.246-59.472 625.583-59.472H572.887C571.224-59.472 569.875-60.82 569.875-62.483ZM628.594-86.573'/>+<path d='M569.875-62.483V-83.562C569.875-85.225 571.224-86.573 572.887-86.573H628.594C630.257-86.573 631.606-85.225 631.606-83.562V-62.483C631.606-60.82 630.257-59.472 628.594-59.472H572.887C571.224-59.472 569.875-60.82 569.875-62.483ZM631.606-86.573'/>+</g>+<g fill-opacity='0.08' class='fig-s-line fig-f-line'>+<path d='M636.122-62.483V-83.562C636.122-85.225 637.471-86.573 639.134-86.573H694.841C696.505-86.573 697.853-85.225 697.853-83.562V-62.483C697.853-60.82 696.505-59.472 694.841-59.472H639.134C637.471-59.472 636.122-60.82 636.122-62.483ZM697.853-86.573'/>+</g>+<g fill-opacity='0.08' class='fig-s-line fig-f-line'>+<path d='M702.37-62.483V-83.562C702.37-85.225 703.718-86.573 705.381-86.573H758.077C759.74-86.573 761.089-85.225 761.089-83.562V-62.483C761.089-60.82 759.74-59.472 758.077-59.472H705.381C703.718-59.472 702.37-60.82 702.37-62.483ZM761.089-86.573'/></g><g fill-opacity='0.08' class='fig-s-line fig-f-line'><path d='M166.37-94.101V-115.18C166.37-116.843 167.719-118.191 169.382-118.191H353.067C354.73-118.191 356.078-116.843 356.078-115.18V-94.101C356.078-92.438 354.73-91.09 353.067-91.09H169.382C167.719-91.09 166.37-92.438 166.37-94.101ZM356.078-118.191'/>@@ -128,7 +149,10 @@<path d='M360.595-188.955V-210.033C360.595-211.696 361.943-213.045 363.606-213.045H496.1C497.763-213.045 499.111-211.696 499.111-210.033V-188.955C499.111-187.292 497.763-185.943 496.1-185.943H363.606C361.943-185.943 360.595-187.292 360.595-188.955ZM499.111-213.045'/></g><g fill-opacity='0.08' class='fig-s-line fig-f-line'>-<path d='M503.628-220.573V-241.651C503.628-243.314 504.976-244.662 506.64-244.662H625.583C627.246-244.662 628.594-243.314 628.594-241.651V-220.573C628.594-218.91 627.246-217.561 625.583-217.561H506.64C504.976-217.561 503.628-218.91 503.628-220.573ZM628.594-244.662'/>+<path d='M503.628-220.573V-241.651C503.628-243.314 504.976-244.662 506.64-244.662H628.594C630.257-244.662 631.606-243.314 631.606-241.651V-220.573C631.606-218.91 630.257-217.561 628.594-217.561H506.64C504.976-217.561 503.628-218.91 503.628-220.573ZM631.606-244.662'/>+</g>+<g fill-opacity='0.08' class='fig-s-line fig-f-line'>+<path d='M636.122-252.191V-273.269C636.122-274.932 637.471-276.28 639.134-276.28H758.077C759.74-276.28 761.089-274.932 761.089-273.269V-252.191C761.089-250.527 759.74-249.179 758.077-249.179H639.134C637.471-249.179 636.122-250.527 636.122-252.191ZM761.089-276.28'/></g><g stroke='none' transform='matrix(1.004 0 0 -1.004 195.73 -88.832)' class='fig-f-muted'><use x='-72' y='-72' href='#contribute-end2end-run-g3-49'/>@@ -151,9 +175,16 @@<g stroke='none' transform='matrix(1.004 0 0 -1.004 603.752 -88.832)' class='fig-f-muted'><use x='-72' y='-72' href='#contribute-end2end-run-g3-55'/></g>-<g stroke='none' transform='matrix(1.004 0 0 -1.004 668.494 -88.832)' class='fig-f-muted'>+<g stroke='none' transform='matrix(1.004 0 0 -1.004 669.999 -88.832)' class='fig-f-muted'><use x='-72' y='-72' href='#contribute-end2end-run-g3-56'/></g>+<g stroke='none' transform='matrix(1.004 0 0 -1.004 736.246 -88.832)' class='fig-f-muted'>+<use x='-72' y='-72' href='#contribute-end2end-run-g3-57'/>+</g>+<g stroke='none' transform='matrix(1.004 0 0 -1.004 797.977 -88.832)' class='fig-f-muted'>+<use x='-72' y='-72' href='#contribute-end2end-run-g3-49'/>+<use x='-66' y='-72' href='#contribute-end2end-run-g3-48'/>+</g><g transform='matrix(1.004 0 0 -1.004 72.27 -118.191)' stroke='none' class='fig-f-ink'><use x='-72' y='-72' href='#contribute-end2end-run-g5-104'/><use x='-66.32' y='-72' href='#contribute-end2end-run-g5-111'/>@@ -220,6 +251,17 @@<use x='-26.09' y='-72' href='#contribute-end2end-run-g5-105'/><use x='-23.59' y='-72' href='#contribute-end2end-run-g5-114'/></g>+<g transform='matrix(1.004 0 0 -1.004 72.27 -339.517)' stroke='none' class='fig-f-ink'>+<use x='-72' y='-72' href='#contribute-end2end-run-g5-116'/>+<use x='-68.49' y='-72' href='#contribute-end2end-run-g5-104'/>+<use x='-62.81' y='-72' href='#contribute-end2end-run-g5-105'/>+<use x='-60.31' y='-72' href='#contribute-end2end-run-g5-114'/>+<use x='-56.7' y='-72' href='#contribute-end2end-run-g5-100'/>+<use x='-48.54' y='-72' href='#contribute-end2end-run-g5-110'/>+<use x='-42.86' y='-72' href='#contribute-end2end-run-g5-111'/>+<use x='-37.26' y='-72' href='#contribute-end2end-run-g5-100'/>+<use x='-31.46' y='-72' href='#contribute-end2end-run-g5-101'/>+</g><g transform='matrix(1.004 0 0 -1.004 167.527 -117.062)' stroke='none' class='fig-f-ink'><use x='-72' y='-72' href='#contribute-end2end-run-g1-116'/><use x='-68.753' y='-72' href='#contribute-end2end-run-g1-57'/>@@ -300,15 +342,22 @@<use x='-57.653' y='-72' href='#contribute-end2end-run-g1-49'/><use x='-52.103' y='-72' href='#contribute-end2end-run-g1-50'/></g>-<g transform='matrix(1.004 0 0 -1.004 657.471 -111.416)' stroke='none' class='fig-f-ink'>+<g transform='matrix(1.004 0 0 -1.004 660.239 -117.062)' stroke='none' class='fig-f-ink'><use x='-72' y='-72' href='#contribute-end2end-run-g1-116'/><use x='-68.753' y='-72' href='#contribute-end2end-run-g1-57'/><use x='-63.203' y='-72' href='#contribute-end2end-run-g1-49'/><use x='-57.653' y='-72' href='#contribute-end2end-run-g1-49'/><use x='-52.103' y='-72' href='#contribute-end2end-run-g1-49'/>+</g>+<g transform='matrix(1.004 0 0 -1.004 789.965 -111.416)' stroke='none' class='fig-f-ink'>+<use x='-72' y='-72' href='#contribute-end2end-run-g1-116'/>+<use x='-68.753' y='-72' href='#contribute-end2end-run-g1-57'/>+<use x='-63.203' y='-72' href='#contribute-end2end-run-g1-49'/>+<use x='-57.653' y='-72' href='#contribute-end2end-run-g1-49'/>+<use x='-52.103' y='-72' href='#contribute-end2end-run-g1-51'/><use x='-46.553' y='-72' href='#contribute-end2end-run-g1-44'/></g>-<g transform='matrix(1.004 0 0 -1.004 651.719 -122.332)' stroke='none' class='fig-f-ink'>+<g transform='matrix(1.004 0 0 -1.004 784.213 -122.332)' stroke='none' class='fig-f-ink'><use x='-72' y='-72' href='#contribute-end2end-run-g1-116'/><use x='-68.79' y='-72' href='#contribute-end2end-run-g1-101'/><use x='-63.712' y='-72' href='#contribute-end2end-run-g1-97'/>@@ -385,7 +434,29 @@<use x='-28.756' y='-72' href='#contribute-end2end-run-g1-105'/><use x='-26.444' y='-72' href='#contribute-end2end-run-g1-110'/></g>-<g transform='matrix(1.004 0 0 -1.004 657.169 -143.034)' stroke='none' class='fig-f-ink'>+<g transform='matrix(1.004 0 0 -1.004 723.492 -143.034)' stroke='none' class='fig-f-ink'>+<use x='-72' y='-72' href='#contribute-end2end-run-g1-114'/>+<use x='-68.652' y='-72' href='#contribute-end2end-run-g1-101'/>+<use x='-63.573' y='-72' href='#contribute-end2end-run-g1-103'/>+<use x='-58.689' y='-72' href='#contribute-end2end-run-g1-105'/>+<use x='-56.377' y='-72' href='#contribute-end2end-run-g1-115'/>+<use x='-51.937' y='-72' href='#contribute-end2end-run-g1-116'/>+<use x='-48.69' y='-72' href='#contribute-end2end-run-g1-114'/>+<use x='-45.203' y='-72' href='#contribute-end2end-run-g1-121'/>+</g>+<g transform='matrix(1.004 0 0 -1.004 713.757 -153.95)' stroke='none' class='fig-f-ink'>+<use x='-72' y='-72' href='#contribute-end2end-run-g1-101'/>+<use x='-66.922' y='-72' href='#contribute-end2end-run-g1-109'/>+<use x='-58.847' y='-72' href='#contribute-end2end-run-g1-112'/>+<use x='-53.537' y='-72' href='#contribute-end2end-run-g1-116'/>+<use x='-50.29' y='-72' href='#contribute-end2end-run-g1-121'/>+<use x='-43.492' y='-72' href='#contribute-end2end-run-g1-97'/>+<use x='-38.552' y='-72' href='#contribute-end2end-run-g1-103'/>+<use x='-33.696' y='-72' href='#contribute-end2end-run-g1-97'/>+<use x='-28.756' y='-72' href='#contribute-end2end-run-g1-105'/>+<use x='-26.444' y='-72' href='#contribute-end2end-run-g1-110'/>+</g>+<g transform='matrix(1.004 0 0 -1.004 789.664 -143.034)' stroke='none' class='fig-f-ink'><use x='-72' y='-72' href='#contribute-end2end-run-g1-115'/><use x='-67.56' y='-72' href='#contribute-end2end-run-g1-116'/><use x='-64.35' y='-72' href='#contribute-end2end-run-g1-111'/>@@ -393,7 +464,7 @@<use x='-51.622' y='-72' href='#contribute-end2end-run-g1-97'/><use x='-46.683' y='-72' href='#contribute-end2end-run-g1-116'/></g>-<g transform='matrix(1.004 0 0 -1.004 655.716 -153.95)' stroke='none' class='fig-f-ink'>+<g transform='matrix(1.004 0 0 -1.004 788.21 -153.95)' stroke='none' class='fig-f-ink'><use x='-72' y='-72' href='#contribute-end2end-run-g1-116'/><use x='-68.753' y='-72' href='#contribute-end2end-run-g1-104'/><use x='-63.499' y='-72' href='#contribute-end2end-run-g1-101'/>@@ -541,6 +612,41 @@<use x='-30.172' y='-72' href='#contribute-end2end-run-g1-111'/><use x='-24.992' y='-72' href='#contribute-end2end-run-g1-116'/></g>+<g transform='matrix(1.004 0 0 -1.004 723.245 -332.741)' stroke='none' class='fig-f-ink'>+<use x='-72' y='-72' href='#contribute-end2end-run-g1-102'/>+<use x='-69.003' y='-72' href='#contribute-end2end-run-g1-114'/>+<use x='-65.655' y='-72' href='#contribute-end2end-run-g1-101'/>+<use x='-60.576' y='-72' href='#contribute-end2end-run-g1-115'/>+<use x='-56.072' y='-72' href='#contribute-end2end-run-g1-104'/>+<use x='-48.635' y='-72' href='#contribute-end2end-run-g1-101'/>+<use x='-43.556' y='-72' href='#contribute-end2end-run-g1-100'/>+<use x='-38.191' y='-72' href='#contribute-end2end-run-g1-103'/>+<use x='-33.363' y='-72' href='#contribute-end2end-run-g1-101'/>+<use x='-26.102' y='-72' href='#contribute-end2end-run-g1-110'/>+<use x='-20.848' y='-72' href='#contribute-end2end-run-g1-111'/>+<use x='-15.668' y='-72' href='#contribute-end2end-run-g1-100'/>+<use x='-10.303' y='-72' href='#contribute-end2end-run-g1-101'/>+<use x='-3.041' y='-72' href='#contribute-end2end-run-g1-98'/>+<use x='2.324' y='-72' href='#contribute-end2end-run-g1-111'/>+<use x='7.504' y='-72' href='#contribute-end2end-run-g1-111'/>+<use x='12.684' y='-72' href='#contribute-end2end-run-g1-116'/>+<use x='15.93' y='-72' href='#contribute-end2end-run-g1-115'/>+<use x='20.389' y='-72' href='#contribute-end2end-run-g1-44'/>+</g>+<g transform='matrix(1.004 0 0 -1.004 739.331 -343.657)' stroke='none' class='fig-f-ink'>+<use x='-72' y='-72' href='#contribute-end2end-run-g1-111'/>+<use x='-66.82' y='-72' href='#contribute-end2end-run-g1-110'/>+<use x='-59.383' y='-72' href='#contribute-end2end-run-g1-120'/>+<use x='-54.693' y='-72' href='#contribute-end2end-run-g1-56'/>+<use x='-49.143' y='-72' href='#contribute-end2end-run-g1-54'/>+<use x='-43.593' y='-72' href='#contribute-end2end-run-g1-45'/>+<use x='-39.903' y='-72' href='#contribute-end2end-run-g1-54'/>+<use x='-34.353' y='-72' href='#contribute-end2end-run-g1-52'/>+<use x='-26.62' y='-72' href='#contribute-end2end-run-g1-111'/>+<use x='-21.44' y='-72' href='#contribute-end2end-run-g1-110'/>+<use x='-16.186' y='-72' href='#contribute-end2end-run-g1-108'/>+<use x='-13.762' y='-72' href='#contribute-end2end-run-g1-121'/>+</g></g></g></svg>diff --git a/testing/end2end/guarded-jvm.sh b/testing/end2end/guarded-jvm.shnew file mode 100755index 00000000..1f9e47d9--- /dev/null+++ b/testing/end2end/guarded-jvm.sh@@ -0,0 +1,40 @@+#!/bin/sh+# SPDX-License-Identifier: BSD-2-Clause+# Copyright (c) 2026 Authors of shirudo+#+# testing/end2end/guarded-jvm.sh <jar> -- run the jar in a JVM that a user+# manager of this node starts now, with the Java agents loaded at this+# moment and no other, and print what it printed and its exit status.++set -eu++[ $# -eq 1 ] || { echo "usage: $0 <jar>" >&2; exit 2; }+JVM_USER=shirudo-e2e-guard+id -u "$JVM_USER" >/dev/null 2>&1 ||+ useradd --create-home --user-group "$JVM_USER"+uid=$(id -u "$JVM_USER")+home=/home/$JVM_USER+unit=$home/.config/systemd/user++install -o "$JVM_USER" -m 0644 "$1" "$home/guarded.jar"+install -d -o "$JVM_USER" -g "$JVM_USER" "$home/.config" \+ "$home/.config/systemd" "$unit"+cat >"$unit/guarded-jvm.service" <<'UNIT'+[Service]+Type=oneshot+ExecStart=/bin/sh -c 'java -jar %h/guarded.jar; echo "status $$?"'+StandardOutput=truncate:%h/guarded-jvm.out+StandardError=inherit+UNIT+chown "$JVM_USER:" "$unit/guarded-jvm.service"++# A manager reads environment.d when it starts, so one that ran before+# the last sync has the agents of before it.+loginctl enable-linger "$JVM_USER"+systemctl restart "user@$uid.service"+runuser -u "$JVM_USER" -- env XDG_RUNTIME_DIR="/run/user/$uid" \+ systemctl --user start guarded-jvm.service || {+ journalctl "_UID=$uid" --no-pager | tail -n 30 >&2+ exit 1+}+cat "$home/guarded-jvm.out"diff --git a/testing/end2end/host.sh b/testing/end2end/host.shindex 26deebdf..c32bf3ac 100755--- a/testing/end2end/host.sh+++ b/testing/end2end/host.sh@@ -10,7 +10,9 @@# collector and node B. A fresh edge node boots in node A's place and t9109,# t9110 and t9112 run here against it and node B. A second fresh edge node# and node B then take their place, on a registry that holds no tree, and-# t9111 runs against them.+# t9111 runs against them. On x86-64, which the java-base64 shield+# selects, a third fresh edge node takes theirs, the registry empty again,+# and t9113 runs against it.set -eu@@ -147,11 +149,12 @@ PY}# Run the test end2end/$1.sh on the host against the fresh edge node and-# node B, with the keepalive backend, into $W/<number>.log. t9110 continues+# node B, or the edge node alone, with the keepalive backend, into+# $W/<number>.log. t9110 continues# what t9109 left in both nodes and the tree, so they run in that order.host_test() {log=$W/${1%%-*}.log- say "${1%%-*}, on the host, against the fresh edge node and node B"+ say "${1%%-*}, on the host, against the nodes of this round"rc=0(cd testing && E2E=$W END2END_BACKEND=$BACKEND END2END_KEYS=$KEYS \NODES_DIR=$NODES_DIR NODES_HOST=$NODES_HOST \@@ -190,6 +193,22 @@ second_pair() {die "the second pair is not labelled role=edge and role=core"}+# Boot a third fresh edge node for t9113, alone, once the second pair has+# stopped. It follows the same tree as the others, so the registry starts+# again and holds neither that tree nor a shield.+third_node() {+ NODE_ROUND=-3+ rm -rf -- "$NODES_DIR/node-edge" "$NODES_DIR/node-b"+ docker rm -fv "$STACK_NAME-registry" >/dev/null 2>&1 || :+ stack_oci || die "the registry did not come up a third time"+ say "a third fresh edge node, in $E2E_VM$NODE_ROUND-end2end-edge"+ node_boot edge+ node_wait edge 0 || {+ tail -n 40 "$W/node-edge$NODE_ROUND.log" >&2+ die "the third edge node did not boot; see $W/node-edge$NODE_ROUND.log"+ }+}+# Publish the example tree of the keepalive fixtures, signed with the# operator key, at oci://$REGISTRY/$1:stable. Its operations name# artifacts that do not exist, so bpm tree append cannot write it: the@@ -250,6 +269,10 @@ if [ $# -eq 1 ]; thensay "the operator builds, pushes and publishes kernel-obs"operator "$OPERATOR_SH" publishoperator cat "$OPERATOR_OUT/nonce" >"$W/nonce"+ mkdir -p "$W/shield"+ for jar in java-base64.jar badDecoder.jar; do+ operator cat "$OPERATOR_OUT/shield/$jar" >"$W/shield/$jar"+ donesay "the keepalive backend of tools/backend loads the example tree"operator cat "$OPERATOR_OUT/pkg/kernel-obs-1.0.0.bee" >"$BEE"publish_document shirudo/fleet-base >"$W/backend-tree.digest" ||@@ -385,4 +408,11 @@ node_clean edgenode_down b ""node_clean b+if [ "$(uname -m)" = x86_64 ]; then+ third_node+ host_test t9113-shield-rollout+ node_down edge ""+ node_clean edge+fi+say "ok"diff --git a/testing/end2end/operator.sh b/testing/end2end/operator.shindex b46136e2..44df03ba 100755--- a/testing/end2end/operator.sh+++ b/testing/end2end/operator.sh@@ -61,6 +61,18 @@ publish_java() {payload "$W/pkg/e2e-java-1.0.0/upatches/e2e-java.upatch" >"$W/java-payload"}+# The jars of t9113, built here because javac is here: the agent of the+# java-base64 shield, which the host signs into its package, and the+# program that shows whether a JVM runs it.+build_shield_jars() {+ say "build the java-base64 agent and badDecoder"+ "$REPO/upatches/java-base64/build.sh" --jar-only+ "$REPO/upatches/test/build.sh"+ mkdir -p "$W/shield"+ cp "$REPO/upatches/java-base64/java-base64.jar" \+ "$REPO/upatches/test/badDecoder.jar" "$W/shield/"+}+publish() {[ -s "$BPM_OCI_CA_FILE" ] || die "no CA of the registry: $BPM_OCI_CA_FILE"[ -s "$POLICY_FIXTURE" ] || die "no policy exec graph fixture: $POLICY_FIXTURE"@@ -85,6 +97,7 @@ role = ["edge"]' "$W/pkg/kernel-obs/Beefile"tar --no-same-owner -xzf "$bee" -C "$W/pkg"payload "$W/pkg/kernel-obs-1.0.0/upatches/kernel-obs.upatch" >"$W/payload"publish_java+ build_shield_jarspayload "$POLICY_FIXTURE" >"$W/policy-payload"openssl rand -hex 16 >"$W/nonce"}diff --git a/testing/end2end/t9113-shield-rollout.sh b/testing/end2end/t9113-shield-rollout.shnew file mode 100755index 00000000..8c1e981f--- /dev/null+++ b/testing/end2end/t9113-shield-rollout.sh@@ -0,0 +1,220 @@+#!/bin/sh+# SPDX-License-Identifier: BSD-2-Clause+# Copyright (c) 2026 Authors of shirudo+#+# t9113 -- a shield rolled out and taken back, as an operator does it for+# an advisory against a platform: the java-base64 shield is published to+# a namespace and listed by the backend as available, a new tree takes it+# by its reference and digest, the node pulls it and a JVM a user manager+# starts refuses the crafted input by the guard. The operator then+# deletes it from the tree, as once the platform is fixed, and the node+# retires it: a JVM started after that runs without the guard.+#+# end2end/host.sh runs it on the host after t9111, as root, against a+# third fresh edge node and a registry that holds no tree, with the two+# jars the operator VM built in $E2E/shield.++cd "$(dirname "$0")/.."+. ./test-lib.sh++REPO=$(cd .. && pwd)+E2E=${E2E:-$REPO/build/test-vm/end2end}+S=$REPO/shirudo+CHECKS=$PWD/end2end/pipeline_checks.py+REGISTRY=${REGISTRY:-127.0.0.1:15443}+STACK_NAME=${STACK_NAME:-shirudo-end2end}+NAMESPACE=oci://$REGISTRY/shields+REPOSITORY=shirudo/pipeline-tree+TREE=oci://$REGISTRY/$REPOSITORY+TREE_ID=pipeline-tree+SHIELD=java-base64+VERSION=1.0.0+RUNTIME=/usr/local/bin/shirudo-runtime+STATE=/var/lib/shirudo/bpm/upatch-tree+AGENT=/run/shirudo-java/$SHIELD.jar+CLICKHOUSE_CLIENT="docker exec -i $STACK_NAME-backend-clickhouse clickhouse-client"+export CLICKHOUSE_CLIENT++[ -n "${END2END_BACKEND-}" ] && [ -n "${END2END_KEYS-}" ] ||+ test_skip_all "end2end/host.sh runs it after t9111, with a keepalive backend"+BACKEND=$END2END_BACKEND+KEYS=$END2END_KEYS+command -v docker >/dev/null 2>&1 || test_skip_all "no docker"+command -v python3 >/dev/null 2>&1 || test_skip_all "no python3"+[ -s "$E2E/ca.pem" ] || test_skip_all "no registry and collector CA in $E2E"+[ -s "$E2E/shield/$SHIELD.jar" ] && [ -s "$E2E/shield/badDecoder.jar" ] ||+ test_skip_all "the operator VM built no jars in $E2E/shield"+. ./vm/stack-lib.sh+. ./end2end/node-lib.sh+. ./end2end/pipeline-lib.sh+node_wait edge 0 || test_skip_all "the fresh edge node is not up"+W=$(mktemp -d)+trap 'rm -rf "$W"' EXIT+# The node mounts the checkout, and E2E with it.+NODE_JAR=/mnt/shirudo-src/${E2E#"$REPO"/}/shield/badDecoder.jar++# Append the shield to the tree by the reference and digest of the command+# put-shields printed, as an add or with $1 as --op.+append() {+ read -r _shirudo _bpm _tree _append reference _option digest _rest \+ <"$W/append" &&+ "$S" bpm tree append "$reference" --package-digest "$digest" "$TREE" \+ --keys-dir "$KEYS" --tree-id "$TREE_ID" ${1:+--op "$1"} >&2+}++ingest() {+ "$BACKEND/jobs/tree-ingest" --shirudo "$S" --cert "$KEYS/cert.der" \+ "$TREE" >&2+}++# The status the registry answers a GET of the manifest $1 with.+manifest_status() {+ curl -s -o /dev/null -w "%{http_code}" --cacert "$E2E/ca.pem" \+ -H "Accept: application/vnd.oci.image.manifest.v1+json" \+ "https://$REGISTRY/v2/$1"+}++# Sync the node and check that it is at seq $1 of $1 with tree_op events+# $2 in its eventlog.+sync_to() {+ unit_ok edge shirudo-bpm-tree-sync.service &&+ on edge cat "$STATE/state.json" >"$W/state.json" &&+ test "$(python3 -c "import json, sys+state = json.load(open(sys.argv[1]))+print(state[\"last_seq\"], state[\"head_seq\"])" "$W/state.json")" = "$1 $1" &&+ on edge "$RUNTIME attest --nonce=$(openssl rand -hex 16)" >"$W/evidence" &&+ test "$(python3 "$CHECKS" tree-events "$W/evidence")" = "$2"+}++# The SHA-256 of the jar the node has installed for the shield.+agent_sha256() {+ on edge "sha256sum $AGENT" | cut -d " " -f 1+}++# Run badDecoder in a JVM a user manager of the node starts now, and+# write what it printed to $W/jvm.+jvm() {+ on edge "sh /workspace/shirudo/testing/end2end/guarded-jvm.sh $NODE_JAR" \+ >"$W/jvm"+}++# Send a keepalive, refresh the backend's status and check the node's+# lines 5 and 6 of it: seq $1 of $1 at generation $1, $2 upatches loaded.+# Not its health: a user manager tries bpf() as it starts, which shirudo+# refuses and counts, and check 3 fails a node whose tamper counters rose.+report() {+ unit_ok edge shirudo-keepalive.service &&+ ch_wait "SELECT last_seq FROM shirudo.keepalive_latest FINAL" "$1" &&+ test "$(ch "SELECT count() FROM shirudo.rejected")" = 0 &&+ refresh node_status_mv &&+ ch "SELECT line FROM shirudo.node_status ARRAY JOIN log AS line" >"$W/log" &&+ grep -qx "5 head: pass, seq $1 of $1, generation $1" "$W/log" &&+ grep -qx "6 set: pass, $2 loaded" "$W/log"+}++test_expect_success 'the node has followed no tree, and the registry holds no tree and no shield' '+ on edge "[ ! -e $STATE/state.json ] && [ ! -e $STATE/outcomes ]" &&+ on edge "[ ! -e $AGENT ]" &&+ test "$(manifest_status "$REPOSITORY/manifests/stable")" = 404 &&+ test "$(manifest_status shields/bpm-index/manifests/stable)" = 404+'++test_expect_success 'the backend starts empty' '+ ch "DROP DATABASE IF EXISTS shirudo SYNC" &&+ ch "DROP DATABASE IF EXISTS otel SYNC" &&+ stack_backend_schema "$BACKEND" &&+ ch "INSERT INTO shirudo.settings (stale_seconds, stuck_seconds, window)+ VALUES (600, 3600, 7)" &&+ version=$(on edge "$RUNTIME version --version-id") &&+ ch "INSERT INTO shirudo.expected_builds (version_id, note)+ VALUES ('\''$version'\'', '\''t9113'\'')" &&+ test "$(ch "SELECT count() FROM shirudo.shield_catalog")" = 0+'++test_expect_success 'the node trusts the CA and reaches the registry' '+ node_reach edge+'++test_expect_success 'without the shield, the JDK refuses the crafted input itself' '+ jvm &&+ grep -q "^badDecoder: no guard, the JDK refused: " "$W/jvm" &&+ grep -qx "status 1" "$W/jvm"+'++# The package is staged without its build.sh, so that put-shields signs+# the jar the operator VM built: the host needs no JDK.+test_expect_success 'the operator publishes the shield, and the backend lists it as available' '+ mkdir -p "$W/pkg/$SHIELD" &&+ cp "$REPO/upatches/$SHIELD/Beefile" "$E2E/shield/$SHIELD.jar" "$W/pkg/$SHIELD/" &&+ SHIRUDO=$S "$REPO/tools/put-shields" --version "$VERSION" --keys-dir "$KEYS" \+ --catalog "$W/shields.json" --new-index "$NAMESPACE" "$W/pkg/$SHIELD" \+ >"$W/append" &&+ read -r _shirudo _bpm _tree _append reference _option digest _rest \+ <"$W/append" &&+ test "$reference" = "$NAMESPACE/$SHIELD:$VERSION" &&+ "$BACKEND/jobs/shields-put" "$W/shields.json" >&2 &&+ printf "%s\t%s\t%s\t%s\n" "$reference" "$SHIELD" "${digest#sha256:}" \+ "['\''CVE-2026-114938'\'']" >"$W/catalog" &&+ ch_cmp "SELECT reference, id, manifest_digest, fixes+ FROM shirudo.shield_catalog FINAL" "$W/catalog" &&+ test "$(ch "SELECT count() FROM shirudo.tree_ops")" = 0+'++test_expect_success 'the operator creates the tree with the shield' '+ append &&+ test "$(manifest_status "$REPOSITORY/manifests/stable")" = 200 &&+ ingest &&+ printf "%s\t1\tadd\t%s\n" "$TREE_ID" "$SHIELD" >"$W/ops" &&+ ch_cmp "SELECT tree_id, seq, op, id FROM shirudo.tree_ops FINAL+ ORDER BY seq" "$W/ops"+'++test_expect_success 'the node pulls the tree and installs the agent' '+ sync_to 1 1 &&+ sha256sum "$E2E/shield/$SHIELD.jar" | cut -d " " -f 1 >"$W/jar" &&+ test "$(agent_sha256)" = "$(cat "$W/jar")" &&+ on edge "grep -qF -- -javaagent:$AGENT /run/environment.d/shirudo.conf"+'++test_expect_success 'a JVM a user manager starts refuses the crafted input by the guard' '+ jvm &&+ grep -qx "Picked up JAVA_TOOL_OPTIONS: -javaagent:$AGENT" "$W/jvm" &&+ grep -qx "badDecoder: refused by the guard" "$W/jvm" &&+ grep -qx "status 0" "$W/jvm"+'++test_expect_success 'the backend sees the node at the head of the tree, the shield loaded' '+ report 1 1+'++test_expect_success 'the operator deletes the shield from the tree' '+ append delete &&+ ingest &&+ printf "%s\t1\tadd\t%s\n%s\t2\tdelete\t%s\n" "$TREE_ID" "$SHIELD" \+ "$TREE_ID" "$SHIELD" >"$W/ops" &&+ ch_cmp "SELECT tree_id, seq, op, id FROM shirudo.tree_ops FINAL+ ORDER BY seq" "$W/ops"+'++# An unload leaves a jar whose agent does nothing in the place of the+# shield's, for the JVMs that still name it.+test_expect_success 'the node pulls the delete and retires the agent' '+ sync_to 2 "1 2" &&+ sha256sum "$E2E/shield/$SHIELD.jar" | cut -d " " -f 1 >"$W/jar" &&+ retired=$(agent_sha256) &&+ test -n "$retired" && test "$retired" != "$(cat "$W/jar")" &&+ on edge "! grep -qsF -- $AGENT /run/environment.d/shirudo.conf"+'++test_expect_success 'a JVM started after it runs without the guard' '+ jvm &&+ ! grep -q "JAVA_TOOL_OPTIONS" "$W/jvm" &&+ grep -q "^badDecoder: no guard, the JDK refused: " "$W/jvm" &&+ grep -qx "status 1" "$W/jvm"+'++test_expect_success 'the backend sees the node at the delete, nothing loaded' '+ report 2 0+'++test_donediff --git a/testing/functional/build/t1007-test-vm-cli.sh b/testing/functional/build/t1007-test-vm-cli.shindex 7fa7e228..fdcddacc 100755--- a/testing/functional/build/t1007-test-vm-cli.sh+++ b/testing/functional/build/t1007-test-vm-cli.sh@@ -957,14 +957,18 @@ test_expect_success 'the runners split the tests by number' 'test -e end2end/t9110-keepalive-history.sh &&test -e end2end/t9111-pipeline-segments.sh &&test -e end2end/t9112-activation.sh &&+ test -e end2end/t9113-shield-rollout.sh &&grep -Fqx " end2end/t9109-pipeline.sh | end2end/t9110-keepalive-history.sh) continue ;;" \run-target-tests.sh &&grep -Fqx " end2end/t9111-pipeline-segments.sh | end2end/t9112-activation.sh) continue ;;" \run-target-tests.sh &&grep -Fqx "host_test t9109-pipeline" end2end/host.sh &&grep -Fqx "host_test t9110-keepalive-history" end2end/host.sh &&+ grep -Fqx " end2end/t9113-shield-rollout.sh) continue ;;" \+ run-target-tests.sh &&grep -Fqx "host_test t9111-pipeline-segments" end2end/host.sh &&- grep -Fqx "host_test t9112-activation" end2end/host.sh+ grep -Fqx "host_test t9112-activation" end2end/host.sh &&+ grep -Fqx " host_test t9113-shield-rollout" end2end/host.sh'test_expect_success 'test-vm rejects unknown policy modes before boot' 'diff --git a/testing/run-target-tests.sh b/testing/run-target-tests.shindex 456291d1..ef1ac8a2 100755--- a/testing/run-target-tests.sh+++ b/testing/run-target-tests.sh@@ -72,11 +72,12 @@ for t in "$dir"/t[0-9]1[0-9][0-9]-*.sh; do[ -e "$t" ] || continuefound=1test_matches "$t" || continue- # end2end/host.sh runs t9109 to t9112 itself, on the host after node+ # end2end/host.sh runs t9109 to t9113 itself, on the host after node# A's suite, against fresh edge nodes and nodes B.case "$t" inend2end/t9109-pipeline.sh | end2end/t9110-keepalive-history.sh) continue ;;end2end/t9111-pipeline-segments.sh | end2end/t9112-activation.sh) continue ;;+ end2end/t9113-shield-rollout.sh) continue ;;end2end/t9107-keepalive-backend.sh)# host.sh records the example tree when it publishes it to# its backend and removes the record when it stops, so a run