Skip to content

Fix bucket quota and replication numeric handling; update vulnerable URI decoder - #74

Merged
Vonng merged 13 commits into
mainfrom
codex/triage-console-20261104
Nov 4, 2026
Merged

Vonng merged 13 commits into
mainfrom
codex/triage-console-20261104

Conversation

@Vonng

@Vonng Vonng commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Bucket quotas set through the Console now remain visible in the bucket list, and quota/retention forms validate complete numeric inputs before creating or updating a bucket. List and detail handlers use the same modern size / legacy quota precedence. Unchanged quota edits avoid rewriting rounded display values; invalid quota and nonpositive retention inputs are rejected before conversion.

All three replication forms now share bandwidth validation: 1000 Ei can no longer become 1 byte/s through exponent-prefix parsing, fractional scalars work, zero remains unlimited, unit changes revalidate, and synchronous replication ignores the hidden limit. Browser bandwidth writes stay within the exact integer range; the backend also rejects negative limits. Dashboard fixes preserve fractional syscall rates, label API requests as four-minute counts, and parse complete byte strings with bounded display units.

The development-only decode-uri-component resolution is updated to 0.5.1 for GHSA-qr28-fpjm-wq7f. Production and high-severity dependency audits pass without additional exceptions. Source changes and optimized embedded GUI assets are separate DCO-signed commits.

Validation: go test ./..., make verifiers, immutable Yarn install, TypeScript checking, all 689 frontend unit/browser-harness tests (including all three replication forms), Prettier, dead-code checks, production warning check, and bundle budgets pass. Initial Login JavaScript is 237.89 KB gzip against the 259 KB gate. Exact int64 quota precision and remaining calculateBytes behavior are tracked separately in #75 and #76.

This changes Console source and embedded assets. No release, container publication, deployment, or SILO Server dependency update is included; embedded Server delivery requires that separate step.

Fixes #72.
Fixes #73.

Vonng added 12 commits October 29, 2026 10:52
Reuse the Summary quota normalization for bucket-list responses: prefer a
positive Size and otherwise fall back to the legacy Quota field. Preserve
quota writes, response schemas, type and nil/empty serialization.

Add handler JSON regressions covering modern and legacy quotas, conflicting
fields, empty/zero values, and nil quota/details.

Refs #72

Signed-off-by: Feng Ruohang <[email protected]>
Use a reversible editor value with a byte fallback and skip unchanged writes. Validate enabled input before conversion, reject negative API amounts, and preserve existing zero and disabled quota semantics.

Cover real form submissions, unit changes, fractional inputs and SDK quota requests with regression tests.

Signed-off-by: Feng Ruohang <[email protected]>
Require a positive int32 validity in the form and reject nonpositive values before the API uint conversion. Default only absent configuration to one, while leaving server policy limits and existing mode/unit behavior intact. Cover real form submits and backend conversion boundaries.

Signed-off-by: Feng Ruohang <[email protected]>
Describe the existing increase queries as requests and errors over the preceding four minutes in English and Chinese. Preserve panel IDs, queries, time windows and raw series. Exercise the actual Prometheus request path at multiple graph steps to guard those contracts.

Signed-off-by: Feng Ruohang <[email protected]>
Use the existing bounded-precision formatter only for the syscall panel. Cover small rates and unchanged raw series, CPU formatting and file-descriptor counts.

Signed-off-by: Feng Ruohang <[email protected]>
Read decimal and exponent values without parseInt truncation, report invalid/nonfinite data as unavailable and stop at the last supported unit. Retain real zero, binary units, existing rounding and numeric chart-tick inputs. Add regression coverage for each boundary.

Signed-off-by: Feng Ruohang <[email protected]>
Reject unsupported quota values before building the create request, preserve fractional byte conversions, and revalidate unit changes. Cover the create thunk and existing quota editor with regression tests.

Refs: #73
Signed-off-by: Feng Ruohang <[email protected]>
Require a positive integer within the signed int32 range for bucket creation and share the boundary with the existing retention editor. Cover rejected values and the upper boundary in the create request harness.

Refs: #73
Signed-off-by: Feng Ruohang <[email protected]>
@Vonng Vonng changed the title Fix bucket quota consistency, numeric validation, and dashboard units Fix bucket quota and replication numeric handling; update vulnerable URI decoder Nov 4, 2026

Vonng commented Nov 4, 2026

Copy link
Copy Markdown
Member Author

Validated final head 1f3819cc258d9e26d0a511e556161cbc55ca6910 against an isolated real SILO deployment using the final standalone binary and its embedded production assets. CLI-set 100 GiB and Console-written 110 GiB produce identical list/detail/mcli quota bytes; creating a 0.5 GiB quota stores 536870912 bytes; negative quota PUT returns 400. A Chromium smoke test renders both list values and verifies that saving the unchanged quota editor sends no PUT. The updated head's required vulnerability checks are green; the full CI matrix is still running.

The broader review also found two independent backend creation error paths, now tracked with real reproductions in #77 and #78. Those are outside this numeric-form/display repair.

@Vonng
Vonng merged commit 3d1dd56 into main Nov 4, 2026
40 of 41 checks passed
@Vonng
Vonng deleted the codex/triage-console-20261104 branch November 9, 2026 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix bucket creation quota and retention numeric validation Bugreport: the quota parameter gets lost somewhere, when sets from web-console

1 participant