Files
2026-11-18 14:08:39 +01:00
..
2026-11-18 14:08:39 +01:00
2026-11-18 14:08:39 +01:00

qBuild the optional test helper with -DBUILD_SECURITY_TESTS=ON. The helper exercises response formatting, framing, session handling, and argument quoting using the production implementation.

Build and run the C++ server checks on a Unix-like host (no Python dependency):

cmake -S . -B build -DBUILD_SECURITY_TESTS=ON
cmake --build build --target elogd_server_tests -j 4
ctest --test-dir build --output-on-failure

To see every check as it runs, use ./build/elogd_server_tests ./build. The runner starts a daemon on a temporary loopback port, uses temporary logbook/configuration data, and stops the daemon afterward. It checks clickjacking headers, login, imports, previews, uploads, and handling of a malformed request. A successful run reports 15 passed checks; failures return a nonzero exit code and print the server log. The source/resource directory is recorded at build time; an optional second argument overrides it if the source tree has moved.

For sanitizer checks, configure both compiler and executable linker flags with -fsanitize=address,undefined -fno-omit-frame-pointer.

Compatibility notes for these fixes:

  • Reverse proxies must be listed by their connection IPv4 address in [global] Trusted proxies and must replace client-supplied forwarded headers.
  • Previously issued pending-registration links need to be reissued; new registrations use a separate pending activation token. Existing active accounts are unaffected.
  • Outbound HTTPS now requires a trusted certificate matching the remote hostname. OpenSSL's normal certificate trust configuration applies.