commit | 6fa92ac53f2cbeb3b2e63dea9f87b1b19a680434 | [log] [tgz] |
---|---|---|
author | Serge Bazanski <serge@monogon.tech> | Tue Nov 28 17:42:26 2023 +0100 |
committer | Serge Bazanski <serge@monogon.tech> | Wed Nov 29 10:27:26 2023 +0000 |
tree | 4ba7bb0c1308b670c6e72718ea422a8c0d937883 | |
parent | 7a5422e2718017958c0c408cd6f363d33f41fefb [diff] |
metropolis/node: sanitize served logs to remove invalid UTF-8 characters Ideally we would instead either use bytes instead of a string, or never allow submitting log lines which are invalid UTF-8. And some day we might still prohibit that - but for now let's add this failsafe anyway. Fixes #277. Change-Id: I3d057f4bd1de0ce86e9724e2234b2a40efea8507 Reviewed-on: https://review.monogon.dev/c/monogon/+/2406 Tested-by: Jenkins CI Reviewed-by: Tim Windelschmidt <tim@monogon.tech>
This is the main repository containing the source code for the Monogon Platform.
This is pre-release software - take a look, and check back later!
Our build environment is self-contained and requires only minimal host dependencies:
/dev/kvm
(if you want to run tests).Our docs assume that Bazelisk is available as bazel
on your PATH.
Refer to SETUP.md for detailed instructions.
Build CLI and node image:
bazel build //metropolis/cli/dbg //:launch --config dbg
Launch an ephemeral test node:
bazel test //:launch --config dbg --test_output=streamed
Run a kubectl command while the test is running:
bazel-bin/metropolis/cli/dbg/dbg_/dbg kubectl describe node
Run full test suite:
bazel test --config dbg //...