Skip to content

eBPF-based security platform

Makefile: build the quote checker for the local stack

John Fastabendc0127bb8c550
diff --git a/Documentation/contribute/testing/testing.rst b/Documentation/contribute/testing/testing.rst
index 5db38d6d..0862f43a 100644
--- a/Documentation/contribute/testing/testing.rst
+++ b/Documentation/contribute/testing/testing.rst
@@ -762,18 +762,18 @@ storage.
``make stack-up`` is shorthand for ``make oci telemetry``. Start the VM
with ``make vm``.
-When ``make quote-check`` has built
-``tools/quote-check/shirudo-quote-check``, ``make telemetry`` also turns
-that ClickHouse into a keepalive backend: it installs the checker as
-``tpm_quote_check`` and loads the schema of :src:`tools/backend/`, and
-its collector runs :src:`testing/vm/otelcol-stack.yaml`, which writes
-every log record into ``otel.otel_logs`` as well, where the backend reads
-the keepalives. The VM then shows in ``shirudo.node_status``, and
+``make telemetry`` and ``make stack-up`` first build
+``tools/quote-check/shirudo-quote-check``, as ``make quote-check`` does,
+and turn that ClickHouse into a keepalive backend with it: they install
+the checker as ``tpm_quote_check`` and load the schema of
+:src:`tools/backend/`, and the collector runs
+:src:`testing/vm/otelcol-stack.yaml`, which writes every log record into
+``otel.otel_logs`` as well, where the backend reads the keepalives. The
+VM then shows in ``shirudo.node_status``, and
:doc:`/operate/backend/xtop` reads them:
.. code-block:: console
- $ make quote-check
$ make stack-up
$ make vm
$ make xtop
@@ -896,10 +896,10 @@ telemetry`` loads the schema again. Appending a shield
to ``shirudo/local-tree`` with the command it prints and that key
delivers it to the VMs.
-Without the checker, ``make telemetry`` starts the telemetry stack alone and says so. A
-stack started before the checker was built keeps its collector: run
-``make stack-down``, which also removes the stack's data, before
-``make telemetry`` to add the backend.
+``make -C testing telemetry`` does not build the checker. Without it,
+it starts the telemetry stack alone and says so. A stack started that
+way keeps its collector: run ``make stack-down``, which also removes the
+stack's data, before ``make telemetry`` to add the backend.
``make vm`` prepares a stable CA even when neither service is running.
After initialization, it activates the signed ``config-local-stack``
diff --git a/Makefile b/Makefile
index 21da15da..27bc5235 100644
--- a/Makefile
+++ b/Makefile
@@ -199,3 +199,6 @@ distclean: clean
.PHONY: vm vm-console vm-ssh vm-enroll vm-sbom vm-stop vm-clean oci telemetry stack-up stack-down xtop shields
vm vm-console vm-ssh vm-enroll vm-sbom vm-stop vm-clean oci telemetry stack-up stack-down xtop shields:
+$(Q)$(MAKE) -C testing $@
+
+# The stack's ClickHouse is a keepalive backend only with the checker.
+telemetry stack-up: quote-check