Releases: deckhouse/prompp
Releases · deckhouse/prompp
v0.8.0-rc3
Enhancements
- Snapshot LSS type separation. Decoupled the read-only label set snapshot into a dedicated
SnapshotLSStype with its own variant, reducing the active head's variant footprint and improving type safety. - GOST-compliant build hardening. Enabled
FORTIFY_SOURCE=2, stack protector, position-independent code, and additional compiler warnings (null-dereference, division-by-zero, array-bounds) across all C++ code including third-party libraries. - GCC 14 and clang-tidy 21. Upgraded the C++ toolchain to GCC 14.2.0 and clang-tidy 21.1.8 with new
bugprone-*diagnostics enabled; all findings resolved. - Go
/sync/*runtime metrics. The Prometheus Go collector now exports mutex and semaphore contention statistics fromruntime/metrics(/sync/*) alongside the existing GC and scheduler metrics, making locker contention observable in production. - Jemalloc resident memory metric. Exposed jemalloc's resident set size as a new metric alongside the existing allocated/mapped stats, giving operators clearer visibility into the C++ allocator's memory footprint.
- Chunk recoder optimization. Switched the chunk recoder to a seek-based decode iterator and tuned the Prometheus
chunkencencoder with[[likely]]annotations, giving roughly a 10% speedup on the recoder benchmark. - Remote write data source refactor. Reworked the WAL/encoder pipeline — extracted
SegmentSamplesStorage, added a V2 WAL reader andDataSourceV2, and the shard now transparently switches between WAL format versions. - Merge-shard series sets. New generic
mergeShardSeriesSet/mergeShardChunkSeriesSetiterators stream across shards without an intermediate merge buffer, lowering query memory pressure on sharded heads. - Jemalloc arena pool recycling. Arenas returned to the free pool are now reset and purged instead of being destroyed, with updated jemalloc build options. New metrics report arena pool releases and reclaimed bytes (
prompp_common_jemalloc_arena_pool_*). Carried over from v0.7.11.
Fixes
- Remote-read snappy DoS (CVE-2026-42154). Backported the upstream fix (GHSA-8rm2-7qqf-34qm) —
/api/v1/readnow rejects snappy-compressed payloads whose declared decoded length exceeds the 32 MiB decode limit before allocation, preventing memory exhaustion via crafted small requests. - OpenTelemetry security update. Upgraded
go.opentelemetry.io/otel/sdkand theotlptracehttpexporter to v1.43.0 — mitigates a PATH hijacking CVE (GHSA-hfvc-g4fc-pqhx) in the BSD host-id detector and adds a 4 MiB response body limit to OTLP HTTP exporters, protecting against memory exhaustion from a misbehaving collector. - Close WAL on shard rotation. Shard rotation now explicitly closes the outgoing WAL via a dedicated
ClosedWalsentinel instead of leaking the handle, preventing stale WAL readers from racing with newly-rotated shards. - Go 1.26.3. Bumped Go to 1.26.3, pulling in stdlib security fixes from the 1.26.x series.
- aarch64 jemalloc page size. Aligned the jemalloc build with the aarch64 host page size so ARM64 builds no longer hit a configuration mismatch under the GCC 14 toolchain.
Other
- Bazel Bzlmod migration. Migrated
pp/to Bzlmod and refreshedrules_cc,rules_foreign_cc, andbazel_clang_tidyto resolve dependency conflicts that had blocked further updates of the C++ build stack.
v0.7.11
Enhancements
- Jemalloc arena pool recycling. Arenas returned to the free pool are reset and purged instead of being destroyed, with updated jemalloc build options. New metrics report arena pool releases and reclaimed bytes (
prompp_common_jemalloc_arena_pool_*).
Other
- GCC 14 C++ toolchain. The CI/devcontainer image and Bazel configuration on this branch build the C++ core with GCC 14.
v0.8.0-rc2
Enhancements
- Snapshot LSS type separation. Decoupled the read-only label set snapshot into a dedicated
SnapshotLSStype with its own variant, reducing the active head's variant footprint and improving type safety. - GOST-compliant build hardening. Enabled
FORTIFY_SOURCE=2, stack protector, position-independent code, and additional compiler warnings (null-dereference, division-by-zero, array-bounds) across all C++ code including third-party libraries. - GCC 14 and clang-tidy 21. Upgraded the C++ toolchain to GCC 14.2.0 and clang-tidy 21.1.8 with new
bugprone-*diagnostics enabled; all findings resolved. - Go
/sync/*runtime metrics. The Prometheus Go collector now exports mutex and semaphore contention statistics fromruntime/metrics(/sync/*) alongside the existing GC and scheduler metrics, making locker contention observable in production. - Jemalloc resident memory metric. Exposed jemalloc's resident set size as a new metric alongside the existing allocated/mapped stats, giving operators clearer visibility into the C++ allocator's memory footprint.
Fixes
- OpenTelemetry security update. Upgraded
go.opentelemetry.io/otel/sdkand theotlptracehttpexporter to v1.43.0 — mitigates a PATH hijacking CVE (GHSA-hfvc-g4fc-pqhx) in the BSD host-id detector and adds a 4 MiB response body limit to OTLP HTTP exporters, protecting against memory exhaustion from a misbehaving collector. - Close WAL on shard rotation. Shard rotation now explicitly closes the outgoing WAL via a dedicated
ClosedWalsentinel instead of leaking the handle, preventing stale WAL readers from racing with newly-rotated shards.
v0.7.10
Fixes
highestSentTimestampreported in milliseconds. Theprometheus_remote_storage_queue_highest_sent_timestamp_secondsmetric was emitted in milliseconds, causing the shard controller to compute a huge lag and falsely trigger thePrometheusRemoteWriteDesiredShardsalert.- Catalog sync with deleted records. When reading the catalog and compacting the log, records with
deletedAt != 0are now dropped eagerly instead of lingering in memory until the next cleanup pass. lastPriin the priority-weighted locker. Fixed thelastPripointer update inutil/locker/priweightedwhen the tail waiter is cancelled — the priority-prefix invariant could previously be violated, leading to potential hangs.- Go 1.25.9. Bumped Go from 1.25.8 to 1.25.9, pulling in stdlib security fixes for
crypto/x509(chain building and policy validation DoS),crypto/tls(TLS 1.3 KeyUpdate DoS),html/template(XSS via JS template literal context tracking),archive/tar(unbounded allocation on GNU sparse), andos(TOCTOU inRoot.Chmodon Linux). - npm dependency security updates. Updated
follow-redirects(auth header leak on cross-domain redirect) andlodash(prototype pollution and code injection in_.template) in the web UI.
v0.8.0-rc1
Enhancements
- Snapshot LSS type separation. Decoupled the read-only label set snapshot into a dedicated
SnapshotLSStype with its own variant, reducing the active head's variant footprint and improving type safety. - GOST-compliant build hardening. Enabled
FORTIFY_SOURCE=2, stack protector, position-independent code, and additional compiler warnings (null-dereference, division-by-zero, array-bounds) across all C++ code including third-party libraries. - GCC 14 and clang-tidy 21. Upgraded the C++ toolchain to GCC 14.2.0 and clang-tidy 21.1.8 with new
bugprone-*diagnostics enabled; all findings resolved.
Fixes
- npm dependency security update. Updated
lodashto 4.18.1 to fix prototype pollution and code injection vulnerabilities.
v0.7.9
Features
- WAL v2 and remote write encoding. Introduces a new WAL read/write path (v2) with refactored segment sample storage and remote-write protobuf encoding, version-aware segment handling when switching between WAL file formats, and related metrics and Go bindings updates.
Fixes
op_topin query strings. Fixed PromQL string serialization for theop_topaggregator so expressions round-trip correctly in rules and anywhere queries are printed.- Outdated corrupted head on GC. Catalog garbage collection now removes stale corrupted head directories instead of leaving them on disk indefinitely.
Enhancements
- Environment-driven defaults in configuration. Settings that were only applied via environment variables are now folded into default configuration, aligning operator defaults with the main configuration model.
v0.7.8
Fixes
- Jemalloc VmPTE growth. Tuned jemalloc configuration to prevent unbounded virtual address space growth when using custom arenas (create/destroy pattern). Added
retain:false,abort_conf:true, and setmuzzy_decay_ms:0, eliminating multi-GB page table overhead. - gRPC authorization bypass CVE. Updated
google.golang.org/grpcfrom v1.78.0 to v1.79.3 to fix an authorization bypass via missing leading slash in:path(GO-2026-4762). - npm dependency security update. Updated
picomatchto fix a high-severity ReDoS and method injection vulnerability.
v0.7.7
Features
- Custom PromQL functions. Added
op_defined,op_replace_nan,op_smoothie,op_zero_if_nonewindow functions andop_topaggregation operator for operational monitoring — checking metric freshness, replacing NaN values, smoothing time series, and top-K aggregation.
Performance
- Three-stage remote write parallelization. Remote write pipeline now uses a three-stage parallel architecture, improving throughput for high-volume metric delivery.
- Reworked remote write encoding. Remote write protobuf encoding redesigned with message boundary tracking and improved segment iteration, reducing encoding overhead.
- Jemalloc arena allocators. DataStorage now uses jemalloc arena-based allocators with size class awareness, improving memory allocation patterns and reducing fragmentation.
- Composite type independence. Refactored internal composite types (Symbol, LabelNameSet, LabelSet) to be independent of underlying filament storage, improving data access patterns.
- Removed unnecessary indirections. Eliminated
std::unique_ptroverhead from LabelSet storage and simplified the scrape adapter interface by removing the redundantAppendScraperHashdexmethod.
Fixes
- OpenTelemetry PATH hijacking CVE. Upgraded OpenTelemetry SDK to v1.40.0 to address a high-severity arbitrary code execution vulnerability via PATH hijacking.
- Go 1.25.8. Updated Go from 1.25.7 to 1.25.8; the release includes security fixes for
html/template,os, andnet/url. - npm dependency security updates. Updated vulnerable npm packages in the web UI, including
immutable(prototype pollution).
v0.7.6
Fixes
- Sample count in WAL batch segments. Fixed incorrect sample counting when adding segments to a batch: the segment now properly returns
sampleCountfromSamplesStorageand resets the counter, preventing miscounted ingestion metrics.
Features
- DefaultSampleAgeLimit feature flag. Added a feature flag to control the default sample age limit, allowing operators to enable or disable the age-based sample filtering without changing global configuration.
Enhancements
- Label limits applied at adapter level. The adapter now reads label limits from the global configuration via a new
ApplyConfigmethod and stores them atomically, ensuring label limits are enforced consistently without restarts. Configuration errors now cause an immediate exit to prevent silent misconfigurations.
v0.7.5
Fixes
- Platform-specific jemalloc page size for ARM64. On ARM64 systems (e.g. Raspberry Pi 5) the kernel page size can be 16KB or 64KB, while jemalloc was hardcoded to 4KB. This caused an immediate crash with "Unsupported system page size". The build now sets the appropriate lg-page for ARM64 (64KB) and keeps 4KB for x86_64.
- Vector erase bug. Fixed a bug in
BareBones::Vector::erasethat could cause incorrect behavior in optimized builds; the implementation now usesdestroy_n/uninitialized_default_construct_ninstead of manual loops.
Enhancements
- WALGoHeadHashdex.
WALGoHeadHashdexhas been introduced to optimize the addition of data from rules stored in the transaction head, avoiding unnecessary copying and allocation. - C++ malloc metrics. Added metrics for memory allocations from C++ code (atomic counters and optimized calculation), enabling better observability of allocator behavior.
- Remote write parallel encoding. Refactored remote write message encoding: encoding from a batch to a protobuf message is now parallelized, which speeds up the encoder.
- Go 1.25.7. Updated Go from 1.25.5 to 1.25.7; the release includes security fixes for crypto/tls, crypto/x509, and the go command, plus compiler fixes.
Performance
- More pools. Head and related code now use a pool provider for reusable objects, which has reduced the number of allocations.
Other
- CI: workflow_dispatch and golang lint image. Added manual trigger (
workflow_dispatch) to the CI image build workflow and corrected the golang lint image tag (gcc-tools-x86_64 → gcc-tools-amd64) to match the built image.