v1.0.0.rc1
Pre-release
Pre-release
- [Fix] Fix two precision bugs in
Aggregators::State/Aggregators::Metricsprocess eviction and utilization, both caught by a Copilot PR review and confirmed on the merged pipeline refactor.evict_expired_processescomputed the ttl window via integer division (config.ttl / 1_000), truncating any non-multiple-of-1000 millisecond ttl and evicting processes up to ~999ms earlier than configured; it now uses float division.RefreshCurrentStats#callcomputed average utilization viautilization / (stats[:processes] + 0.0001), an epsilon guard against division by zero that also systematically underestimated utilization for any nonzero process count; it now divides exactly and returns0.0only when there are zero active processes. - [Fix] Fix the real cause of the intermittent, seemingly-unrelated CI-only Pro Explorer flakes finally surfaced by the
assert_okdiagnostic below: not a Kafka broker/timing race, but Ruby's object-shape warning (a controller class crossing 8 distinct instance-variable shapes) being turned into a hard failure by the test suite'sWarning.processhook. Controllers, like the Roda app classes already exempted, legitimately accumulate many shapes because they conditionally set a handful of instance variables depending on the specific request branch taken (e.g. Explorer's#showonly sets@safe_key/@safe_headers/@safe_payloadwhen the message isn't a compacted/system entry). Which controller happens to cross the threshold depends on minitest's random run order, which is why it surfaced as an unrelated-looking flake instead of a stable, reproducible failure. Widened the existingUi::Appshape-variation exception to cover controller classes too. - [Enhancement] Make
assert_oksurface the actual captured exception (class, message, backtrace) on a 500, not just the generic static error page body. Subscribes to the sameerror.occurredmonitor event the production error handler already dispatches web UI errors through, capturing the last one per test. This has been the main blocker in diagnosing rare CI-only flakes in the Pro Explorer controller specs, where a failure only ever showed the generic HTML error page with no indication of what actually broke. - [Enhancement] Remove the OSS "support Karafka Pro" banner that was rendered on every Web UI page for non-Pro users. It's no longer needed at this stage since users are already aware of the Pro offering.
- [Enhancement] Migrate the Web UI topic declarations to Karafka's new standalone
Karafka::App.declaratives.drawAPI (Karafka2.6.0.beta1). The Web UI topics are declared asactive false(Web UI manages their creation and runtime replication factor itself), replacing the deprecated routing-basedconfig(active: false)bridge that was previously called on each routing topic. - [Enhancement] Add
Warning.processblock to the test helper to turn Ruby warnings originating from the project code into test failures. - [Enhancement] Enable all opt-in Ruby warning categories in the test helper via
Warning.categories(available since Ruby 3.4), so any new categories added in future Ruby versions are automatically enabled without code changes. - [Enhancement] Replace sequential per-partition
query_watermark_offsetsconsumer calls inCounters#estimate_errors_countwith a single targetedtopic_infometadata call followed by a batchread_watermark_offsetsadmin call. This eliminates the consumer connection overhead and reduces Kafka roundtrips from up to N+1 sequential calls to 3 regardless of partition count. - [Enhancement] Allow for zero value in number of workers to support dynamic scaling of Karafka workers.
- [Enhancement] Align concurrency tracking with dynamic thread pool scaling. Workers count is now read from
Karafka::Server.workers.sizeinstead of the staticKarafka::App.config.concurrency, so the Web UI accurately reflects runtime thread pool changes. - [Enhancement] Track
poll_interval(max.poll.interval.ms) per subscription group alongsidepoll_ageto help users monitor how close they are to the polling timeout limit. Consumer schema version bumped to 1.7.0. - [Enhancement] Replace token-based CSRF protection (
route_csrfplugin) with header-based protection usingSec-Fetch-Siteheader (sec_fetch_site_csrfplugin). This eliminates the need for CSRF tokens by leveraging browser-enforced headers that cannot be forged from cross-origin requests. Modern browsers automatically include this header, providing simpler and more robust CSRF protection. - [Enhancement] Include a short spec file hash in generated test topic names for traceability. Topic names now follow the
it-{hash}-{uuid}format, making it easy to identify which test file created a given topic in Kafka logs. - [Change] Require Roda
>= 3.100(previously~> 3.69). - [Fix] Harden the
wait_for_offset_visibletest helper (used after a transactional produce) to also exercise the Web UI's own message-read path, not just the admin watermark offset. The admin watermark advancing only proves the broker appended the control record; the Web UI reads with a much shorterfetch.wait.max.msthan the admin client and could still intermittently raise or return stale results on that exact offset (e.g. the flaky Pro Explorersystem entryspec), even after the watermark-only wait introduced previously. The helper now also polls the sameKarafka::Web::Ui::Lib::Admin.read_topiccall the Web UI performs and requires it to complete without error before returning. - [Fix] Fix two more flaky Pro Explorer
#recentspecs (when getting recent for the whole topic/when recent is on the first partitionandwhen recent is on another partition). Both produced a message to one partition, then a fixedsleep(0.1)before producing the message that should be "most recent" to another partition and immediately requesting the endpoint, racing broker propagation under CI load the same way the already-fixed single-partition#recentspec did. Replaced the fixed sleep with await_for_messagepoll on the second produce's own offset, matching the existing pattern used by the sibling spec right below it. - [Fix] Stop a long, unbreakable page title (e.g. a long topic name on the Pro Explorer topic page) and the breadcrumbs bar above it from overflowing the page. A grid/flex item's default
min-width: autolet the title and breadcrumbs blow out past the viewport instead of shrinking, which pushed layout wide enough to force an unexpected page scrollbar. The title wrapper andbreadcrumbs-wrappernow setmin-width: 0, the title text wraps viaoverflow-wrap: anywhere, and the breadcrumbs list now wraps onto multiple lines instead of relying on an easy-to-miss horizontal scroll. - [Fix] Stop long, unbreakable flash messages (e.g. a long dotted/underscored topic name in a "successfully created" notice) from overflowing their alert box. DaisyUI's
.alertgrid track sized the message column to its content's intrinsic width, so long single-token strings pushed past the box edge instead of wrapping. The messagespannow setsoverflow-wrap: anywhereandmin-width: 0so it wraps within the alert instead. - [Fix] Stop long, dotted/underscored Pro Explorer, DLQ, and Topics topic-tile names from overflowing or overlapping their tile.
topic-tile-textnow setsoverflow-wrap: anywhereso unbreakable names wrap inside the tile instead of spilling out, and the topic-tile link in those three views now carries atitleattribute showing the full topic name on hover. - [Fix] Make the
create_topictest helper wait until a freshly created topic's partitions are actually readable (expected partition count visible and watermark offsets queryable), not just until the topic name appears in cluster metadata. This removes a flaky failure in multi-partition specs (e.g. the topics distribution controller) that intermittently 404'd because watermark offsets were read before the partition leaders had propagated. - [Fix] Stop the array paginator from offering a "Next" link to an empty page when the last page is exactly full.
Paginators::Arraysdecided "is there a next page?" from whether the current page was full, so any list whose total size was an exact multiple ofper_page(25/50/75/...) surfaced a Next link leading to an empty page. It now reports the last page based on whether a further slice actually exists. - [Fix] Compute the dashboard average batch size with float division so it is no longer floored.
Metrics::Aggregateddivided the per-window message delta by the batch delta using integer division, so e.g. 1000 messages over 47 batches charted as21instead of21.28, systematically under-reporting the average. It now uses float division rounded to 2 decimals. - [Fix] Include jobs in the
waitingstate when aggregating the dashboard "Pending" counter.State#refresh_current_statsnow resets and sumsstats[:waiting]from incoming consumer reports (previously it was never aggregated and stayed0), soCounters#pending(enqueued + waiting) no longer undercounts jobs sitting in advanced/recurring/scheduled-message schedulers.:waitingis now also validated by theAggregatedStatscontract. - [Fix] Add
initializetoStatus::Contextthat defines all instance variables upfront in a consistent order, giving every instance the same Ruby object shape and eliminating the:performanceshape-variation warning. - [Fix] Accept (and ignore) a block in
Karafka::Web::Producer#__getobj__to silence Ruby 3.4'sstrict_unused_blockwarning emitted viaSimpleDelegator#method_missingon every delegated producer call. - [Fix] Remove
cgias no longer needed. - [Fix] Exclude
test/directory from gem releases to reduce package size. - [Fix] Update LinksValidator regexes to match the new
it-{hash}-{uuid}test topic naming format, fixing test-order dependent failures in explorer controller specs. - [Fix] Fix alerts formatting for the distribution view.
- [Fix] Fix 500 error in the Pro Explorer when a message payload parses as valid JSON but contains strings with invalid UTF-8 byte sequences.
JSON.pretty_generatewould raiseJSON::GeneratorErroroutside of any error boundary and propagate as an unhandled 500. The pretty-print step is now wrapped in a dedicated@safe_pretty_payloadSafeRunner; on failure the raw bytes are displayed alongside a deserialization warning. - [Fix] Fix 500 error in the Pro Explorer message JSON export when a payload deserializes correctly but cannot be serialized back to JSON (for example when it contains strings with invalid UTF-8 byte sequences). The export endpoint now responds with 404 in such cases and the export action button is no longer rendered for such messages.
- [Fix] Normalize a batch of styling inconsistencies found while auditing #906: a
data-table-wrapertypo left the Cluster replication table unstyled,Cluster::_configrendered rawtrue/falseinstead of badges (unlike the identicalTopics::Configstable), a Recurring Tasks "Trigger" button's disabled state was computed but never applied to its class, several views carried dead pre-Tailwind Bootstrap classes (col-sm-*,col-lg-*,row,container-wrapper) with no effect, one Topics Configs action cell was missing theoptionscolumn class, a handful of breadcrumb/title labels had grammar or casing inconsistencies ("Cluster informations", "Consumers Groups Health", "Dead Letter Queue topics"), the OSS Routing topic list hand-rolled abadge-warningfor inactive topics instead of thebadge_secondaryused by the identical Pro table, the filtered-payload notice used unstyled Bootstrap-era markup instead of the sharedalert_box_warningprimitive,status-row-stoppingwas colored red (border-l-error) whilestatus_badgetreats "stopping" as the same warning tier as "quiet"/"quieting", three Pro Topics checklist notices (before deleting a topic, increasing partitions, or editing a config value) hand-rolled a barealertdiv with no severity color or icon instead of the sharedalert_box_warningprimitive used by their sibling warning boxes on the same pages,alert_box_primary/alert_box_secondarydisplayed the success checkmark icon (copy-pasted fromalert_box_success) instead of matching their non-boxinfo_circle/pause_circlesiblings, the internal style-guide page demoed the wrong pencil icon for edit actions, and a scheduled message's "Cancel dispatch" button used a passive error-status icon instead of thetrashicon already used for every other removal action. - [Fix] Continue normalizing styling inconsistencies from the #906 audit: Health and Recurring Tasks tab bars hand-rolled
col-span-12 mb-9instead of the sharedtab-container-wrapperclass, and the Scheduled Messages per-partition schedule heading usedh3/.h3where the equivalent per-group heading on Health pages usesh2/.h2. - [Fix] Retire the
.row-table/.row-table-wrappertable primitive, which had drifted to a single real caller (the Pro per-topic Errors table) against 45+ real uses of.data-table, and additionally used a different button-alignment convention (text-centervs..data-table'stext-right) than every other action column in the app. Switched that one table to.data-table, removed the now fully unused CSS utilities and their style-guide demo, and fixed a stale ".row-table" label left over in an unrelated.data-tabledemo section. - [Enhancement] Add a standardized
empty_statehelper/component (icon, message, optional description, and optional call-to-action) and replace the ad hocalert_info/alert_box_info"There are no X" messages across every empty-list view (Jobs, DLQ, Explorer, Health, Errors, Consumers, Recurring Tasks, Scheduled Messages, dashboard, and paginated tables) with it, for a consistent look across the Web UI. Demoed on the internal style-guide/uxpage. - [Fix] Fix unreadable
.btn-outline.btn-activebuttons (e.g. the dashboard time-range selector) in both the light and dark themes. The daisyUI 5.6 upgrade left the active state's background color computed from the same--btn-colorvariable as the outline's text color, so the two nearly matched; the button now switches to the color-variant's contrasting foreground color when active, matching its existing:hoverbehavior. - [Enhancement] Expand the internal
/uxstyle-guide page to cover every UI component actually used across the app, so upgrades (daisyUI, Tailwind, etc.) can be visually spot-checked in one place: plain.card/.card-body,.modal/dialog,.dropdown,.tooltip, the.btn-ghost/.btn-square/.btn-action/.btn-lockable/.confirm-actionbutton modifiers, the breadcrumbs component, and thestatus_badge/lag_trend_badge/kafka_state_badge/lso_risk_state_badge/truncate/lag_with_label/offset_with_labelhelper methods (previously only their raw CSS classes were demoed). Adds a small reusableModalOpenerJS component ([data-modal-open]) since the CSP disallows the inlineonclickhandler style used by the existing search modal trigger. - [Fix] Fix a flaky Pro Explorer spec (
when requested message exists but is a system entry) caused by theproducetest helper's transactional flow: it only waited a fixedsleep(0.1)for a transactional produce's commit control record to become visible before the test reads it back, which is too short under CI load and made the spec intermittently 404 or see stale content. Replaced the fixed sleep with await_for_offset_visiblepoll that waits until the control record's offset is actually part of the readable watermark range, mirroring the existingwait_for_message/create_topicreadiness-polling pattern instead of a fixed delay. - [Fix] Stop a misclick on a Pro-gated OSS element from fully navigating away to the standalone "Pro Feature" upsell page. This affected the sidebar (Health, Explorer, Cron, Schedules, Dead, Topics), the Consumers tabs (Performance, Controls, Commands), the dashboard's "Data transfers" chart tab, and several unguarded links with no visual gating indicator at all: the dashboard's "Total lag"/"Dead" counters, Cluster topic/partition names, per-message Explorer offset links on the Errors detail page, and consumer process IDs on the Consumers and Jobs list pages. Gated sidebar/tab items are now truly inert
disabledbuttons with an "Available in Karafka Pro" hover tooltip instead of<a href>links (or, for the dashboard chart tab, a JS-clickable<span>) pointing at the real Pro-only content; the previously-unguarded inline links are now plain text in the OSS templates, with a matching Pro-only view override (dashboard/_counters,cluster/_partition,errors/_detail) restoring the links for Pro users, keeping the OSS templates free of anyKarafka.pro?branching. Also fixes the sidebar's collapse/expand toggle showing the default arrow cursor instead of a pointer on hover, and hardensTabsManager(the chart-tab-switching JS) to no-op instead of throwing when a tab's target content or a previously-active tab is missing/disabled, which had broken tab-switching for the Utilization/RSS/Concurrency charts for anyone who had the now-disabled "Data transfers" tab persisted as their last-active tab. Closes #1106. - [Fix] Add
rel="noopener noreferrer"to everytarget="_blank"link across the Web UI (docs, Slack, GitHub, and "become Pro" links in the support, status, dashboard, and Pro topic-replication warning views). Without it, the opened external page could accesswindow.openerand redirect the original Web UI tab to an arbitrary page (reverse tabnabbing). - [Fix] Fix a flaky Pro Explorer spec (
ExplorerController#recent::when getting recent for the partition) that produced a message and immediately requested the "recent" endpoint with no readiness wait, occasionally racing the broker's propagation of the just-produced message under CI load. Added await_for_messagepoll before the request, matching the existing readiness-polling pattern used elsewhere in the suite. - [Enhancement] Replace the bare
assert(response.ok?)pattern with a newassert_oktest helper across the whole controller test suite (381 call sites). On failure it now prints the actual response status and a body excerpt instead of a generic "Expected false to be truthy", making intermittent CI-only non-200 failures actually diagnosable. - [Change] Switch to Karafka 2.6's new, group-type-agnostic
#group/group_idaccessors instead of#consumer_group/consumer_group_idwhen reading from Karafka's own routing and instrumentation APIs (topic.group,subscription_group.group,event[:group_id]), preparing for upcoming Kafka share group support (KIP-932).consumer_group/consumer_group_idremain as karafka-web's own internal naming (tracking payloads, commanding schema, UI labels) — only the calls into Karafka's own API surface changed. Closes #1022.